OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/download/download_types.h" | 5 #include "chrome/browser/download/download_types.h" |
6 | 6 |
7 DownloadBuffer::DownloadBuffer() { | 7 DownloadBuffer::DownloadBuffer() { |
8 } | 8 } |
9 | 9 |
10 DownloadBuffer::~DownloadBuffer() { | 10 DownloadBuffer::~DownloadBuffer() { |
11 } | 11 } |
12 | 12 |
13 DownloadSaveInfo::DownloadSaveInfo() { | 13 DownloadSaveInfo::DownloadSaveInfo() { |
14 } | 14 } |
15 | 15 |
16 DownloadSaveInfo::DownloadSaveInfo(const DownloadSaveInfo& info) | 16 DownloadSaveInfo::DownloadSaveInfo(const DownloadSaveInfo& info) |
17 : file_path(info.file_path), | 17 : file_path(info.file_path), |
18 file_stream(info.file_stream) { | 18 file_stream(info.file_stream), |
| 19 suggested_name(info.suggested_name) { |
19 } | 20 } |
20 | 21 |
21 DownloadSaveInfo::~DownloadSaveInfo() { | 22 DownloadSaveInfo::~DownloadSaveInfo() { |
22 } | 23 } |
23 | 24 |
24 DownloadSaveInfo& DownloadSaveInfo::operator=(const DownloadSaveInfo& info) { | 25 DownloadSaveInfo& DownloadSaveInfo::operator=(const DownloadSaveInfo& info) { |
25 file_path = info.file_path; | 26 file_path = info.file_path; |
26 file_stream = info.file_stream; | 27 file_stream = info.file_stream; |
| 28 suggested_name = info.suggested_name; |
27 return *this; | 29 return *this; |
28 } | 30 } |
OLD | NEW |