| 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), | 13 danger_type(content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS), |
| 14 interrupt_reason(content::DOWNLOAD_INTERRUPT_REASON_NONE), | 14 interrupt_reason(content::DOWNLOAD_INTERRUPT_REASON_NONE), |
| 15 id(content::DownloadItem::kInvalidId), | 15 id(content::DownloadItem::kInvalidId), |
| 16 opened(false) { | 16 opened(false) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 DownloadRow::DownloadRow( | 19 DownloadRow::DownloadRow( |
| 20 const base::FilePath& current_path, | 20 const base::FilePath& current_path, |
| 21 const base::FilePath& target_path, | 21 const base::FilePath& target_path, |
| 22 const std::vector<GURL>& url_chain, | 22 const std::vector<GURL>& url_chain, |
| 23 const GURL& referrer, | 23 const GURL& referrer, |
| 24 const std::string& mime_type, |
| 25 const std::string& original_mime_type, |
| 24 const base::Time& start, | 26 const base::Time& start, |
| 25 const base::Time& end, | 27 const base::Time& end, |
| 26 const std::string& etag, | 28 const std::string& etag, |
| 27 const std::string& last_modified, | 29 const std::string& last_modified, |
| 28 int64 received, | 30 int64 received, |
| 29 int64 total, | 31 int64 total, |
| 30 content::DownloadItem::DownloadState download_state, | 32 content::DownloadItem::DownloadState download_state, |
| 31 content::DownloadDangerType danger_type, | 33 content::DownloadDangerType danger_type, |
| 32 content::DownloadInterruptReason interrupt_reason, | 34 content::DownloadInterruptReason interrupt_reason, |
| 33 uint32 id, | 35 uint32 id, |
| 34 bool download_opened, | 36 bool download_opened, |
| 35 const std::string& ext_id, | 37 const std::string& ext_id, |
| 36 const std::string& ext_name) | 38 const std::string& ext_name) |
| 37 : current_path(current_path), | 39 : current_path(current_path), |
| 38 target_path(target_path), | 40 target_path(target_path), |
| 39 url_chain(url_chain), | 41 url_chain(url_chain), |
| 40 referrer_url(referrer), | 42 referrer_url(referrer), |
| 43 mime_type(mime_type), |
| 44 original_mime_type(original_mime_type), |
| 41 start_time(start), | 45 start_time(start), |
| 42 end_time(end), | 46 end_time(end), |
| 43 etag(etag), | 47 etag(etag), |
| 44 last_modified(last_modified), | 48 last_modified(last_modified), |
| 45 received_bytes(received), | 49 received_bytes(received), |
| 46 total_bytes(total), | 50 total_bytes(total), |
| 47 state(download_state), | 51 state(download_state), |
| 48 danger_type(danger_type), | 52 danger_type(danger_type), |
| 49 interrupt_reason(interrupt_reason), | 53 interrupt_reason(interrupt_reason), |
| 50 id(id), | 54 id(id), |
| 51 opened(download_opened), | 55 opened(download_opened), |
| 52 by_ext_id(ext_id), | 56 by_ext_id(ext_id), |
| 53 by_ext_name(ext_name) { | 57 by_ext_name(ext_name) { |
| 54 } | 58 } |
| 55 | 59 |
| 56 DownloadRow::~DownloadRow() { | 60 DownloadRow::~DownloadRow() { |
| 57 } | 61 } |
| 58 | 62 |
| 59 } // namespace history | 63 } // namespace history |
| OLD | NEW |