| OLD | NEW |
| 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 |
| OLD | NEW |