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

Unified Diff: content/browser/download/download_file_impl.cc

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DownloadSaveInfo::offset is now int64. Created 9 years, 1 month 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: content/browser/download/download_file_impl.cc
diff --git a/content/browser/download/download_file_impl.cc b/content/browser/download/download_file_impl.cc
index f998432675513b7af860553678a6419650528959..29cefe1717b381417fcf5bfd8909a3887c08b50b 100644
--- a/content/browser/download/download_file_impl.cc
+++ b/content/browser/download/download_file_impl.cc
@@ -21,6 +21,7 @@ DownloadFileImpl::DownloadFileImpl(
info->url(),
info->referrer_url,
info->received_bytes,
+ info->save_info.hash_state,
info->save_info.file_stream),
id_(info->download_id),
request_handle_(request_handle),
@@ -78,6 +79,10 @@ bool DownloadFileImpl::GetSha256Hash(std::string* hash) {
return file_.GetSha256Hash(hash);
}
+std::string DownloadFileImpl::GetSha256HashState() {
+ return file_.GetSha256HashState();
+}
+
// DownloadFileInterface implementation.
void DownloadFileImpl::CancelDownloadRequest() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));

Powered by Google App Engine
This is Rietveld 408576698