Bug 392152: notify front-end when clearing DM history, so that it can clear the active list, r=sdwilsh

This commit is contained in:
gavin@gavinsharp.com 2007-10-01 17:08:31 -07:00
parent dad1140140
commit 9374b535be

View File

@ -171,12 +171,15 @@ interface nsIDownloadManager : nsISupports {
/**
* Whether or not there are downloads that can be cleaned up (removed)
* i.e. downloads that have completed, have failed or have been canceled.
* i.e. downloads that have completed, have failed or have been canceled.
*/
readonly attribute boolean canCleanUp;
/**
* Removes completed, failed, and canceled downloads from the list.
* Removes completed, failed, and canceled downloads from the list.
*
* Also notifies observers of the "download-manager-clear-history"
* topic, to allow any DM consumers to react to the removals.
*/
void cleanUp();