| 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 "chrome/browser/history/download_history_info.h" | 5 #include "chrome/browser/history/download_history_info.h" |
| 6 | 6 |
| 7 #include "chrome/browser/download/download_item.h" | |
| 8 | |
| 9 DownloadHistoryInfo::DownloadHistoryInfo() | |
| 10 : received_bytes(0), | |
| 11 total_bytes(0), | |
| 12 state(0), | |
| 13 db_handle(0) { | |
| 14 } | |
| 15 | |
| 16 DownloadHistoryInfo::DownloadHistoryInfo(const FilePath& path, | 7 DownloadHistoryInfo::DownloadHistoryInfo(const FilePath& path, |
| 17 const GURL& url, | 8 const GURL& url, |
| 18 const GURL& referrer, | 9 const GURL& referrer, |
| 19 const base::Time& start, | 10 const base::Time& start, |
| 20 int64 received, | 11 int64 received, |
| 21 int64 total, | 12 int64 total, |
| 22 int32 download_state, | 13 int32 download_state, |
| 23 int64 handle) | 14 int32 ident) |
| 24 : path(path), | 15 : path(path), |
| 25 url(url), | 16 url(url), |
| 26 referrer_url(referrer), | 17 referrer_url(referrer), |
| 27 start_time(start), | 18 start_time(start), |
| 28 received_bytes(received), | 19 received_bytes(received), |
| 29 total_bytes(total), | 20 total_bytes(total), |
| 30 state(download_state), | 21 state(download_state), |
| 31 db_handle(handle) { | 22 id(ident) { |
| 32 } | 23 } |
| 33 | |
| 34 DownloadHistoryInfo::~DownloadHistoryInfo() { // For linux-clang. | |
| 35 } | |
| OLD | NEW |