| Index: chrome/browser/download/chrome_download_manager_delegate.h
|
| diff --git a/chrome/browser/download/chrome_download_manager_delegate.h b/chrome/browser/download/chrome_download_manager_delegate.h
|
| index 21cc3406b9f5c0279d4ce07044aa0994399eb308..015f4c8f66ce3a692ed57c04f6ca58139ee51610 100644
|
| --- a/chrome/browser/download/chrome_download_manager_delegate.h
|
| +++ b/chrome/browser/download/chrome_download_manager_delegate.h
|
| @@ -65,7 +65,9 @@ class ChromeDownloadManagerDelegate
|
| virtual content::WebContents*
|
| GetAlternativeWebContentsToNotifyForDownload() OVERRIDE;
|
| virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE;
|
| - virtual bool ShouldCompleteDownload(content::DownloadItem* item) OVERRIDE;
|
| + virtual bool ShouldCompleteDownload(
|
| + content::DownloadItem* item,
|
| + const base::Closure& complete_callback) OVERRIDE;
|
| virtual bool ShouldOpenDownload(content::DownloadItem* item) OVERRIDE;
|
| virtual bool GenerateFileHash() OVERRIDE;
|
| virtual void AddItemToPersistentStore(content::DownloadItem* item) OVERRIDE;
|
| @@ -157,6 +159,11 @@ class ChromeDownloadManagerDelegate
|
| // Open the given item with a web intent dispatch.
|
| void OpenWithWebIntent(const content::DownloadItem* item);
|
|
|
| + // Internal gateway for ShouldCompleteDownload().
|
| + void ShouldCompleteDownloadInternal(
|
| + content::DownloadItem* item,
|
| + const base::Closure& user_complete_callback);
|
| +
|
| Profile* profile_;
|
| int next_download_id_;
|
| scoped_ptr<DownloadPrefs> download_prefs_;
|
|
|