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 27 matching lines...) Expand all Loading... |
38 int64_t received, | 38 int64_t received, |
39 int64_t total, | 39 int64_t total, |
40 DownloadState download_state, | 40 DownloadState download_state, |
41 DownloadDangerType danger_type, | 41 DownloadDangerType danger_type, |
42 DownloadInterruptReason interrupt_reason, | 42 DownloadInterruptReason interrupt_reason, |
43 const std::string& hash, | 43 const std::string& hash, |
44 DownloadId id, | 44 DownloadId id, |
45 const std::string& guid, | 45 const std::string& guid, |
46 bool download_opened, | 46 bool download_opened, |
47 const base::Time& last_access, | 47 const base::Time& last_access, |
| 48 bool visible, |
48 const std::string& ext_id, | 49 const std::string& ext_id, |
49 const std::string& ext_name, | 50 const std::string& ext_name, |
50 const std::vector<DownloadSliceInfo>& download_slice_info) | 51 const std::vector<DownloadSliceInfo>& download_slice_info) |
51 : current_path(current_path), | 52 : current_path(current_path), |
52 target_path(target_path), | 53 target_path(target_path), |
53 url_chain(url_chain), | 54 url_chain(url_chain), |
54 referrer_url(referrer_url), | 55 referrer_url(referrer_url), |
55 site_url(site_url), | 56 site_url(site_url), |
56 tab_url(tab_url), | 57 tab_url(tab_url), |
57 tab_referrer_url(tab_referrer_url), | 58 tab_referrer_url(tab_referrer_url), |
58 http_method(http_method), | 59 http_method(http_method), |
59 mime_type(mime_type), | 60 mime_type(mime_type), |
60 original_mime_type(original_mime_type), | 61 original_mime_type(original_mime_type), |
61 start_time(start), | 62 start_time(start), |
62 end_time(end), | 63 end_time(end), |
63 etag(etag), | 64 etag(etag), |
64 last_modified(last_modified), | 65 last_modified(last_modified), |
65 received_bytes(received), | 66 received_bytes(received), |
66 total_bytes(total), | 67 total_bytes(total), |
67 state(download_state), | 68 state(download_state), |
68 danger_type(danger_type), | 69 danger_type(danger_type), |
69 interrupt_reason(interrupt_reason), | 70 interrupt_reason(interrupt_reason), |
70 hash(hash), | 71 hash(hash), |
71 id(id), | 72 id(id), |
72 guid(guid), | 73 guid(guid), |
73 opened(download_opened), | 74 opened(download_opened), |
74 last_access_time(last_access), | 75 last_access_time(last_access), |
| 76 visible(visible), |
75 by_ext_id(ext_id), | 77 by_ext_id(ext_id), |
76 by_ext_name(ext_name), | 78 by_ext_name(ext_name), |
77 download_slice_info(download_slice_info) {} | 79 download_slice_info(download_slice_info) {} |
78 | 80 |
79 DownloadRow::DownloadRow(const DownloadRow& other) = default; | 81 DownloadRow::DownloadRow(const DownloadRow& other) = default; |
80 | 82 |
81 DownloadRow::~DownloadRow() {} | 83 DownloadRow::~DownloadRow() {} |
82 | 84 |
83 bool DownloadRow::operator==(const DownloadRow& rhs) const { | 85 bool DownloadRow::operator==(const DownloadRow& rhs) const { |
84 return current_path == rhs.current_path && target_path == rhs.target_path && | 86 return current_path == rhs.current_path && target_path == rhs.target_path && |
85 url_chain == rhs.url_chain && referrer_url == rhs.referrer_url && | 87 url_chain == rhs.url_chain && referrer_url == rhs.referrer_url && |
86 site_url == rhs.site_url && tab_url == rhs.tab_url && | 88 site_url == rhs.site_url && tab_url == rhs.tab_url && |
87 tab_referrer_url == rhs.tab_referrer_url && | 89 tab_referrer_url == rhs.tab_referrer_url && |
88 http_method == rhs.http_method && mime_type == rhs.mime_type && | 90 http_method == rhs.http_method && mime_type == rhs.mime_type && |
89 original_mime_type == rhs.original_mime_type && | 91 original_mime_type == rhs.original_mime_type && |
90 start_time == rhs.start_time && end_time == rhs.end_time && | 92 start_time == rhs.start_time && end_time == rhs.end_time && |
91 etag == rhs.etag && last_modified == rhs.last_modified && | 93 etag == rhs.etag && last_modified == rhs.last_modified && |
92 received_bytes == rhs.received_bytes && | 94 received_bytes == rhs.received_bytes && |
93 total_bytes == rhs.total_bytes && state == rhs.state && | 95 total_bytes == rhs.total_bytes && state == rhs.state && |
94 danger_type == rhs.danger_type && | 96 danger_type == rhs.danger_type && |
95 interrupt_reason == rhs.interrupt_reason && hash == rhs.hash && | 97 interrupt_reason == rhs.interrupt_reason && hash == rhs.hash && |
96 id == rhs.id && guid == rhs.guid && opened == rhs.opened && | 98 id == rhs.id && guid == rhs.guid && opened == rhs.opened && |
97 last_access_time == rhs.last_access_time && | 99 last_access_time == rhs.last_access_time && visible == rhs.visible && |
98 by_ext_id == rhs.by_ext_id && by_ext_name == rhs.by_ext_name && | 100 by_ext_id == rhs.by_ext_id && by_ext_name == rhs.by_ext_name && |
99 download_slice_info == rhs.download_slice_info; | 101 download_slice_info == rhs.download_slice_info; |
100 } | 102 } |
101 | 103 |
102 } // namespace history | 104 } // namespace history |
OLD | NEW |