Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1295)

Unified Diff: chrome/browser/download/chrome_download_manager_delegate.h

Issue 10069014: Save Page As MHTML (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 e5ee17dffb732aa0f92b0d3a75591949954ce948..21cc3406b9f5c0279d4ce07044aa0994399eb308 100644
--- a/chrome/browser/download/chrome_download_manager_delegate.h
+++ b/chrome/browser/download/chrome_download_manager_delegate.h
@@ -51,6 +51,10 @@ class ChromeDownloadManagerDelegate
// Returns true if the given item is for an extension download.
static bool IsExtensionDownload(const content::DownloadItem* item);
+ // Should be called before the first call to ShouldCompleteDownload() to
+ // disable SafeBrowsing checks for |item|.
+ static void DisableSafeBrowsing(content::DownloadItem* item);
+
virtual void Shutdown() OVERRIDE;
virtual content::DownloadId GetNextId() OVERRIDE;
virtual bool ShouldStartDownload(int32 download_id) OVERRIDE;
@@ -83,7 +87,7 @@ class ChromeDownloadManagerDelegate
const FilePath& suggested_path,
const FilePath::StringType& default_extension,
bool can_save_as_complete,
- content::SaveFilePathPickedCallback callback) OVERRIDE;
+ const content::SavePackagePathPickedCallback& callback) OVERRIDE;
DownloadPrefs* download_prefs() { return download_prefs_.get(); }
DownloadHistory* download_history() { return download_history_.get(); }
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_download_observer.cc ('k') | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698