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..8ec3d34f48434c65bbf292e938e6d50d94eeff48 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,14 @@ class ChromeDownloadManagerDelegate |
// Open the given item with a web intent dispatch. |
void OpenWithWebIntent(const content::DownloadItem* item); |
+ // Internal gateways for ShouldCompleteDownload(). |
+ bool IsDownloadReadyForCompletion( |
+ content::DownloadItem* item, |
+ const base::Closure& internal_complete_callback); |
+ void ShouldCompleteDownloadInternal( |
+ int download_id, |
+ const base::Closure& user_complete_callback); |
+ |
Profile* profile_; |
int next_download_id_; |
scoped_ptr<DownloadPrefs> download_prefs_; |