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 DownloadSaveInfo::DownloadSaveInfo() | 9 DownloadSaveInfo::DownloadSaveInfo() |
10 : offset(0), prompt_for_save_location(false) { | 10 : offset(0), prompt_for_save_location(false) { |
11 } | 11 } |
12 | 12 |
13 DownloadSaveInfo::~DownloadSaveInfo() { | 13 DownloadSaveInfo::~DownloadSaveInfo() { |
14 } | 14 } |
15 | 15 |
| 16 DownloadSaveInfo::DownloadSaveInfo(DownloadSaveInfo&& that) |
| 17 : file_path(std::move(that.file_path)), |
| 18 suggested_name(std::move(that.suggested_name)), |
| 19 file(std::move(that.file)), |
| 20 offset(that.offset), |
| 21 hash_state(std::move(that.hash_state)), |
| 22 hash_of_partial_file(std::move(that.hash_of_partial_file)), |
| 23 prompt_for_save_location(that.prompt_for_save_location) {} |
| 24 |
16 } // namespace content | 25 } // namespace content |
OLD | NEW |