summaryrefslogtreecommitdiffstats
path: root/content/shell
diff options
context:
space:
mode:
authornoelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-10 19:09:37 +0000
committernoelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-10 19:09:37 +0000
commitac4af82ff0e12f045f2b0b4625718ed4e56ed21e (patch)
treeb28b9bc762a85bc85e99e56b65e956cd56e5952d /content/shell
parent80394db7b2a5bb1dbe696fa8a07489ac42bb8bb7 (diff)
downloadchromium_src-ac4af82ff0e12f045f2b0b4625718ed4e56ed21e.zip
chromium_src-ac4af82ff0e12f045f2b0b4625718ed4e56ed21e.tar.gz
chromium_src-ac4af82ff0e12f045f2b0b4625718ed4e56ed21e.tar.bz2
Store the download file hash in the DownloadItem. This will be useful
for the improved SafeBrowsing download protection later. BUG=102540 TEST=No visible change. Run DownloadItemTest, DownloadManagerTest Review URL: http://codereview.chromium.org/8511020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r--content/shell/shell_download_manager_delegate.cc4
-rw-r--r--content/shell/shell_download_manager_delegate.h3
2 files changed, 2 insertions, 5 deletions
diff --git a/content/shell/shell_download_manager_delegate.cc b/content/shell/shell_download_manager_delegate.cc
index 0118914..718ae3b4 100644
--- a/content/shell/shell_download_manager_delegate.cc
+++ b/content/shell/shell_download_manager_delegate.cc
@@ -164,9 +164,7 @@ bool ShellDownloadManagerDelegate::GenerateFileHash() {
return false;
}
-void ShellDownloadManagerDelegate::OnResponseCompleted(
- DownloadItem* item,
- const std::string& hash) {
+void ShellDownloadManagerDelegate::OnResponseCompleted(DownloadItem* item) {
}
void ShellDownloadManagerDelegate::AddItemToPersistentStore(
diff --git a/content/shell/shell_download_manager_delegate.h b/content/shell/shell_download_manager_delegate.h
index 8dda1c8..55b4416 100644
--- a/content/shell/shell_download_manager_delegate.h
+++ b/content/shell/shell_download_manager_delegate.h
@@ -35,8 +35,7 @@ class ShellDownloadManagerDelegate
virtual bool ShouldCompleteDownload(DownloadItem* item) OVERRIDE;
virtual bool ShouldOpenDownload(DownloadItem* item) OVERRIDE;
virtual bool GenerateFileHash() OVERRIDE;
- virtual void OnResponseCompleted(DownloadItem* item,
- const std::string& hash) OVERRIDE;
+ virtual void OnResponseCompleted(DownloadItem* item) OVERRIDE;
virtual void AddItemToPersistentStore(DownloadItem* item) OVERRIDE;
virtual void UpdateItemInPersistentStore(DownloadItem* item) OVERRIDE;
virtual void UpdatePathForItemInPersistentStore(