OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/offline_pages/core/prefetch/prefetch_item.h" | 5 #include "components/offline_pages/core/prefetch/prefetch_item.h" |
6 | 6 |
7 namespace offline_pages { | 7 namespace offline_pages { |
8 | 8 |
9 PrefetchItem::PrefetchItem() = default; | 9 PrefetchItem::PrefetchItem() = default; |
10 | 10 |
11 PrefetchItem::PrefetchItem(const PrefetchItem& other) = default; | 11 PrefetchItem::PrefetchItem(const PrefetchItem& other) = default; |
12 | 12 |
13 PrefetchItem::~PrefetchItem(){}; | 13 PrefetchItem::~PrefetchItem(){}; |
14 | 14 |
15 bool PrefetchItem::operator==(const PrefetchItem& other) const { | 15 bool PrefetchItem::operator==(const PrefetchItem& other) const { |
16 return guid == other.guid && client_name_space == other.client_name_space && | 16 return guid == other.guid && client_id == other.client_id && |
17 client_id == other.client_id && state == other.state && | 17 state == other.state && url == other.url && |
18 url == other.url && final_archived_url == other.final_archived_url && | 18 final_archived_url == other.final_archived_url && |
19 request_archive_attempt_count == other.request_archive_attempt_count && | 19 request_archive_attempt_count == other.request_archive_attempt_count && |
20 operation_name == other.operation_name && | 20 operation_name == other.operation_name && |
21 archive_body_name == other.archive_body_name && | 21 archive_body_name == other.archive_body_name && |
22 archive_body_length == other.archive_body_length && | 22 archive_body_length == other.archive_body_length && |
23 creation_time == other.creation_time && | 23 creation_time == other.creation_time && |
24 freshness_time == other.freshness_time && | 24 freshness_time == other.freshness_time && |
25 error_code == other.error_code; | 25 error_code == other.error_code; |
26 } | 26 } |
27 | 27 |
28 bool PrefetchItem::operator!=(const PrefetchItem& other) const { | 28 bool PrefetchItem::operator!=(const PrefetchItem& other) const { |
29 return !(*this == other); | 29 return !(*this == other); |
30 } | 30 } |
31 | 31 |
32 } // namespace offline_pages | 32 } // namespace offline_pages |
OLD | NEW |