| 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 "components/history/core/browser/download_row.h" | 5 #include "components/history/core/browser/download_row.h" |
| 6 | 6 |
| 7 #include "components/history/core/browser/download_constants.h" | 7 #include "components/history/core/browser/download_constants.h" |
| 8 | 8 |
| 9 namespace history { | 9 namespace history { |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 DownloadRow::DownloadRow(const base::FilePath& current_path, | 22 DownloadRow::DownloadRow(const base::FilePath& current_path, |
| 23 const base::FilePath& target_path, | 23 const base::FilePath& target_path, |
| 24 const std::vector<GURL>& url_chain, | 24 const std::vector<GURL>& url_chain, |
| 25 const GURL& referrer, | 25 const GURL& referrer, |
| 26 const std::string& mime_type, | 26 const std::string& mime_type, |
| 27 const std::string& original_mime_type, | 27 const std::string& original_mime_type, |
| 28 const base::Time& start, | 28 const base::Time& start, |
| 29 const base::Time& end, | 29 const base::Time& end, |
| 30 const std::string& etag, | 30 const std::string& etag, |
| 31 const std::string& last_modified, | 31 const std::string& last_modified, |
| 32 int64 received, | 32 int64_t received, |
| 33 int64 total, | 33 int64_t total, |
| 34 DownloadState download_state, | 34 DownloadState download_state, |
| 35 DownloadDangerType danger_type, | 35 DownloadDangerType danger_type, |
| 36 DownloadInterruptReason interrupt_reason, | 36 DownloadInterruptReason interrupt_reason, |
| 37 DownloadId id, | 37 DownloadId id, |
| 38 bool download_opened, | 38 bool download_opened, |
| 39 const std::string& ext_id, | 39 const std::string& ext_id, |
| 40 const std::string& ext_name) | 40 const std::string& ext_name) |
| 41 : current_path(current_path), | 41 : current_path(current_path), |
| 42 target_path(target_path), | 42 target_path(target_path), |
| 43 url_chain(url_chain), | 43 url_chain(url_chain), |
| 44 referrer_url(referrer), | 44 referrer_url(referrer), |
| 45 mime_type(mime_type), | 45 mime_type(mime_type), |
| 46 original_mime_type(original_mime_type), | 46 original_mime_type(original_mime_type), |
| 47 start_time(start), | 47 start_time(start), |
| 48 end_time(end), | 48 end_time(end), |
| 49 etag(etag), | 49 etag(etag), |
| 50 last_modified(last_modified), | 50 last_modified(last_modified), |
| 51 received_bytes(received), | 51 received_bytes(received), |
| 52 total_bytes(total), | 52 total_bytes(total), |
| 53 state(download_state), | 53 state(download_state), |
| 54 danger_type(danger_type), | 54 danger_type(danger_type), |
| 55 interrupt_reason(interrupt_reason), | 55 interrupt_reason(interrupt_reason), |
| 56 id(id), | 56 id(id), |
| 57 opened(download_opened), | 57 opened(download_opened), |
| 58 by_ext_id(ext_id), | 58 by_ext_id(ext_id), |
| 59 by_ext_name(ext_name) { | 59 by_ext_name(ext_name) {} |
| 60 } | |
| 61 | 60 |
| 62 DownloadRow::~DownloadRow() { | 61 DownloadRow::~DownloadRow() { |
| 63 } | 62 } |
| 64 | 63 |
| 65 } // namespace history | 64 } // namespace history |
| OLD | NEW |