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

Unified Diff: content/browser/download/download_item_impl.h

Issue 2832223004: interrupt and resume download with CONTENT_LENGTH_MISMATCH errors (Closed)
Patch Set: fix tests Created 3 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: content/browser/download/download_item_impl.h
diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h
index 4a6e31919f3ed0e0db75ccf0bb60c3dec74a9fc4..90dda1d3d38b68645513add228c437fddd281c36 100644
--- a/content/browser/download/download_item_impl.h
+++ b/content/browser/download/download_item_impl.h
@@ -713,6 +713,10 @@ class CONTENT_EXPORT DownloadItemImpl
std::unique_ptr<DownloadJob> job_;
+ // Value of |received_bytes_| at the time the download was interrupted with
+ // CONTENT_LENGTH_MISMATCH.
+ int64_t received_bytes_at_length_mismatch = -1;
+
base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
« no previous file with comments | « content/browser/download/download_interrupt_reasons_impl.cc ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698