diff options
author | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-08 22:49:59 +0000 |
---|---|---|
committer | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-08 22:49:59 +0000 |
commit | bde0e4fc9eb40a768c8fb94d8aae1a95288f2499 (patch) | |
tree | 56f67046b2c4c351231dc5e6f77ddb6df6c5c4ce /chrome/browser/download/chrome_download_manager_delegate.h | |
parent | 18134fc48b55833ff91d72ddb459cf19bc607a9f (diff) | |
download | chromium_src-bde0e4fc9eb40a768c8fb94d8aae1a95288f2499.zip chromium_src-bde0e4fc9eb40a768c8fb94d8aae1a95288f2499.tar.gz chromium_src-bde0e4fc9eb40a768c8fb94d8aae1a95288f2499.tar.bz2 |
Various minor cleanups to the download system:
Make DownloadItemImpl::Interrupt() private.
Make DownloadItemImpl::DelayedDownloadOpened() private.
Remove vestiges of DownloadFileManager still in code.
R=benjhayden@chromium.org
TBR=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11377010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/chrome_download_manager_delegate.h')
-rw-r--r-- | chrome/browser/download/chrome_download_manager_delegate.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/download/chrome_download_manager_delegate.h b/chrome/browser/download/chrome_download_manager_delegate.h index 2cadbe9..ac60ef7 100644 --- a/chrome/browser/download/chrome_download_manager_delegate.h +++ b/chrome/browser/download/chrome_download_manager_delegate.h @@ -73,7 +73,9 @@ class ChromeDownloadManagerDelegate virtual bool ShouldCompleteDownload( content::DownloadItem* item, const base::Closure& complete_callback) OVERRIDE; - virtual bool ShouldOpenDownload(content::DownloadItem* item) OVERRIDE; + virtual bool ShouldOpenDownload( + content::DownloadItem* item, + const content::DownloadOpenDelayedCallback& callback) OVERRIDE; virtual bool GenerateFileHash() OVERRIDE; virtual void AddItemToPersistentStore(content::DownloadItem* item) OVERRIDE; virtual void UpdateItemInPersistentStore( @@ -237,7 +239,8 @@ class ChromeDownloadManagerDelegate scoped_ptr<DownloadHistory> download_history_; // Maps from pending extension installations to DownloadItem IDs. - typedef base::hash_map<extensions::CrxInstaller*, int> CrxInstallerMap; + typedef base::hash_map<extensions::CrxInstaller*, + content::DownloadOpenDelayedCallback> CrxInstallerMap; CrxInstallerMap crx_installers_; content::NotificationRegistrar registrar_; |