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