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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/download_save_info.h" 5 #include "content/public/browser/download_save_info.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 // static
10 const int64_t DownloadSaveInfo::kLengthFullContent = 0;
11
9 DownloadSaveInfo::DownloadSaveInfo() 12 DownloadSaveInfo::DownloadSaveInfo()
10 : offset(0), prompt_for_save_location(false) { 13 : offset(0), length(kLengthFullContent), prompt_for_save_location(false) {}
11 }
12 14
13 DownloadSaveInfo::~DownloadSaveInfo() { 15 DownloadSaveInfo::~DownloadSaveInfo() {
14 } 16 }
15 17
16 DownloadSaveInfo::DownloadSaveInfo(DownloadSaveInfo&& that) 18 DownloadSaveInfo::DownloadSaveInfo(DownloadSaveInfo&& that)
17 : file_path(std::move(that.file_path)), 19 : file_path(std::move(that.file_path)),
18 suggested_name(std::move(that.suggested_name)), 20 suggested_name(std::move(that.suggested_name)),
19 file(std::move(that.file)), 21 file(std::move(that.file)),
20 offset(that.offset), 22 offset(that.offset),
23 length(that.length),
21 hash_state(std::move(that.hash_state)), 24 hash_state(std::move(that.hash_state)),
22 hash_of_partial_file(std::move(that.hash_of_partial_file)), 25 hash_of_partial_file(std::move(that.hash_of_partial_file)),
23 prompt_for_save_location(that.prompt_for_save_location) {} 26 prompt_for_save_location(that.prompt_for_save_location) {}
24 27
25 } // namespace content 28 } // namespace content
OLDNEW
« 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