| 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_row.h" | 5 #include "chrome/browser/history/download_row.h" |
| 6 | 6 |
| 7 namespace history { | 7 namespace history { |
| 8 | 8 |
| 9 DownloadRow::DownloadRow() | 9 DownloadRow::DownloadRow() |
| 10 : received_bytes(0), | 10 : received_bytes(0), |
| 11 total_bytes(0), | 11 total_bytes(0), |
| 12 state(content::DownloadItem::IN_PROGRESS), | 12 state(content::DownloadItem::IN_PROGRESS), |
| 13 danger_type(content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS), |
| 14 interrupt_reason(content::DOWNLOAD_INTERRUPT_REASON_NONE), |
| 13 db_handle(0), | 15 db_handle(0), |
| 14 opened(false) { | 16 opened(false) { |
| 15 } | 17 } |
| 16 | 18 |
| 17 DownloadRow::DownloadRow( | 19 DownloadRow::DownloadRow( |
| 18 const FilePath& path, | 20 const FilePath& current_path, |
| 19 const GURL& url, | 21 const FilePath& target_path, |
| 22 const std::vector<GURL>& url_chain, |
| 20 const GURL& referrer, | 23 const GURL& referrer, |
| 21 const base::Time& start, | 24 const base::Time& start, |
| 22 const base::Time& end, | 25 const base::Time& end, |
| 23 int64 received, | 26 int64 received, |
| 24 int64 total, | 27 int64 total, |
| 25 content::DownloadItem::DownloadState download_state, | 28 content::DownloadItem::DownloadState download_state, |
| 29 content::DownloadDangerType danger_type, |
| 30 content::DownloadInterruptReason interrupt_reason, |
| 26 int64 handle, | 31 int64 handle, |
| 27 bool download_opened) | 32 bool download_opened) |
| 28 : path(path), | 33 : current_path(current_path), |
| 29 url(url), | 34 target_path(target_path), |
| 35 url_chain(url_chain), |
| 30 referrer_url(referrer), | 36 referrer_url(referrer), |
| 31 start_time(start), | 37 start_time(start), |
| 32 end_time(end), | 38 end_time(end), |
| 33 received_bytes(received), | 39 received_bytes(received), |
| 34 total_bytes(total), | 40 total_bytes(total), |
| 35 state(download_state), | 41 state(download_state), |
| 42 danger_type(danger_type), |
| 43 interrupt_reason(interrupt_reason), |
| 36 db_handle(handle), | 44 db_handle(handle), |
| 37 opened(download_opened) { | 45 opened(download_opened) { |
| 38 } | 46 } |
| 39 | 47 |
| 40 DownloadRow::~DownloadRow() { | 48 DownloadRow::~DownloadRow() { |
| 41 } | 49 } |
| 42 | 50 |
| 43 } // namespace history | 51 } // namespace history |
| OLD | NEW |