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

Unified Diff: content/browser/download/save_package.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/save_package.cc
diff --git a/content/browser/download/save_package.cc b/content/browser/download/save_package.cc
index cf22feb74860cae1bd1b67e8510f525e33833240..e3ad65219bd37ad27fd6d906e40582768ef7ac68 100644
--- a/content/browser/download/save_package.cc
+++ b/content/browser/download/save_package.cc
@@ -706,7 +706,7 @@ void SavePackage::SaveFinished(int32 save_id, int64 size, bool is_success) {
// Inform the DownloadItem to update UI.
// We use the received bytes as number of saved files.
if (download_)
- download_->Update(completed_count());
+ download_->Update(completed_count(), "");
if (save_item->save_source() == SaveFileCreateInfo::SAVE_FILE_FROM_DOM &&
save_item->url() == page_url_ && !save_item->received_bytes()) {
@@ -748,7 +748,7 @@ void SavePackage::SaveFailed(const GURL& save_url) {
// Inform the DownloadItem to update UI.
// We use the received bytes as number of saved files.
if (download_)
- download_->Update(completed_count());
+ download_->Update(completed_count(), "");
if (save_type_ == SAVE_AS_ONLY_HTML ||
save_item->save_source() == SaveFileCreateInfo::SAVE_FILE_FROM_DOM) {

Powered by Google App Engine
This is Rietveld 408576698