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

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

Issue 2660783002: Range request support for parallel download in DownloadRequestCore. (Closed)
Patch Set: Work on feedbacks. Created 3 years, 10 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
« no previous file with comments | « content/public/browser/download_save_info.h ('k') | content/public/browser/download_url_parameters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8e686f3b312abbf493e2ecf1568f996a3705fc75 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 int64_t DownloadSaveInfo::kLengthFullContent = 0;
+
DownloadSaveInfo::DownloadSaveInfo()
- : offset(0), prompt_for_save_location(false) {
-}
+ : offset(0), length(kLengthFullContent), 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) {}
« no previous file with comments | « content/public/browser/download_save_info.h ('k') | content/public/browser/download_url_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698