| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/offline_page_item.h" | 5 #include "components/offline_pages/offline_page_item.h" |
| 6 | 6 |
| 7 namespace offline_pages { | 7 namespace offline_pages { |
| 8 | 8 |
| 9 ClientId::ClientId() : name_space(""), id("") {} | 9 ClientId::ClientId() : name_space(""), id("") {} |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 OfflinePageItem::~OfflinePageItem() { | 59 OfflinePageItem::~OfflinePageItem() { |
| 60 } | 60 } |
| 61 | 61 |
| 62 bool OfflinePageItem::operator==(const OfflinePageItem& other) const { | 62 bool OfflinePageItem::operator==(const OfflinePageItem& other) const { |
| 63 return url == other.url && | 63 return url == other.url && |
| 64 offline_id == other.offline_id && | 64 offline_id == other.offline_id && |
| 65 client_id == other.client_id && | 65 client_id == other.client_id && |
| 66 file_path == other.file_path && | 66 file_path == other.file_path && |
| 67 creation_time == other.creation_time && | 67 creation_time == other.creation_time && |
| 68 last_access_time == other.last_access_time && | 68 last_access_time == other.last_access_time && |
| 69 expiration_time == other.expiration_time && | |
| 70 access_count == other.access_count && | 69 access_count == other.access_count && |
| 71 title == other.title && | 70 title == other.title && |
| 72 flags == other.flags && | 71 flags == other.flags && |
| 73 original_url == other.original_url; | 72 original_url == other.original_url; |
| 74 } | 73 } |
| 75 | 74 |
| 76 bool OfflinePageItem::IsExpired() const { | |
| 77 return creation_time < expiration_time; | |
| 78 } | |
| 79 | |
| 80 } // namespace offline_pages | 75 } // namespace offline_pages |
| OLD | NEW |