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

Unified Diff: content/public/browser/download_save_info.cc

Issue 2660783002: Range request support for parallel download in DownloadRequestCore. (Closed)
Patch Set: Strong validator for all range request. Created 3 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: content/public/browser/download_save_info.cc
diff --git a/content/public/browser/download_save_info.cc b/content/public/browser/download_save_info.cc
index eabc761ec677cba4d374419d5aee75aeafd006c3..3e3e719c8ed0270dd3dc049e6af74afebecbc172 100644
--- a/content/public/browser/download_save_info.cc
+++ b/content/public/browser/download_save_info.cc
@@ -6,9 +6,11 @@
namespace content {
+// static
+const int DownloadSaveInfo::kLengthUnknown = -1;
+
DownloadSaveInfo::DownloadSaveInfo()
- : offset(0), prompt_for_save_location(false) {
-}
+ : offset(0), length(kLengthUnknown), prompt_for_save_location(false) {}
DownloadSaveInfo::~DownloadSaveInfo() {
}
@@ -18,6 +20,7 @@ DownloadSaveInfo::DownloadSaveInfo(DownloadSaveInfo&& that)
suggested_name(std::move(that.suggested_name)),
file(std::move(that.file)),
offset(that.offset),
+ length(that.length),
hash_state(std::move(that.hash_state)),
hash_of_partial_file(std::move(that.hash_of_partial_file)),
prompt_for_save_location(that.prompt_for_save_location) {}

Powered by Google App Engine
This is Rietveld 408576698