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

Unified Diff: chrome/browser/download/download_file.cc

Issue 6023006: Add support to sha256 hash the downloaded file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/download_file.cc
===================================================================
--- chrome/browser/download/download_file.cc (revision 70630)
+++ chrome/browser/download/download_file.cc (working copy)
@@ -14,18 +14,19 @@
#include "chrome/browser/history/download_create_info.h"
DownloadFile::DownloadFile(const DownloadCreateInfo* info,
- DownloadManager* download_manager)
+ DownloadManager* download_manager,
+ bool calculate_hash)
: BaseFile(info->save_info.file_path,
info->url,
info->referrer_url,
info->received_bytes,
- info->save_info.file_stream),
+ info->save_info.file_stream,
+ calculate_hash),
id_(info->download_id),
child_id_(info->child_id),
request_id_(info->request_id),
download_manager_(download_manager) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
-
}
DownloadFile::~DownloadFile() {

Powered by Google App Engine
This is Rietveld 408576698