зеркало из https://github.com/mozilla/gecko-dev.git
Download manager. Not part of build.
This commit is contained in:
Родитель
4785893294
Коммит
ca2e741ad8
|
@ -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 );
|
||||||
|
|
Загрузка…
Ссылка в новой задаче