Download manager. Not part of build.

This commit is contained in:
blakeross%telocity.com 2002-02-23 03:15:26 +00:00
Родитель 4785893294
Коммит ca2e741ad8
3 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -312,6 +312,8 @@ nsDownloadManager::AddDownload(nsIDownloadItem* aDownloadItem)
nsresult rv = GetDownloadsContainer(getter_AddRefs(downloads)); nsresult rv = GetDownloadsContainer(getter_AddRefs(downloads));
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
// such assumptions are pretty much okay because the client presumably used
// createDownload to create the download item, which creates a new instance of DownloadItem
DownloadItem* item = NS_STATIC_CAST(DownloadItem*, aDownloadItem); DownloadItem* item = NS_STATIC_CAST(DownloadItem*, aDownloadItem);
item->SetDownloadManager(this); item->SetDownloadManager(this);

Просмотреть файл

@ -109,7 +109,6 @@ protected:
nsresult GetDialogListener(nsIWebProgressListener** aInternalListener); nsresult GetDialogListener(nsIWebProgressListener** aInternalListener);
private: private:
nsIRDFDataSource* mDataSource;
nsDownloadManager* mDownloadManager; nsDownloadManager* mDownloadManager;
nsString mPrettyName; nsString mPrettyName;

Просмотреть файл

@ -61,7 +61,6 @@ nsDownloadProgressListener.prototype = {
{ {
if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP)
{ {
this.downloadItem = null;
// we are done downloading... // we are done downloading...
// Indicate completion in status area. // Indicate completion in status area.
var msg = getString( "completeMsg", this.doc ); var msg = getString( "completeMsg", this.doc );