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

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

Issue 2832223004: interrupt and resume download with CONTENT_LENGTH_MISMATCH errors (Closed)
Patch Set: 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..82c0f272e5e21d57a408e955804976be6bc225f0 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_;
+ // The bytes received if the download was interrupted with
+ // CONTENT_LENGTH_MISMATCH error. -1 if the download never get this error.
+ int64_t received_bytes_if_content_length_mismatch_;
+
base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);

Powered by Google App Engine
This is Rietveld 408576698