Chromium Code Reviews| 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_items_collection/core/offline_item.h" | 5 #include "components/offline_items_collection/core/offline_item.h" |
| 6 | 6 |
| 7 namespace offline_items_collection { | 7 namespace offline_items_collection { |
| 8 | 8 |
| 9 ContentId::ContentId() = default; | 9 ContentId::ContentId() = default; |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 page_url == offline_item.page_url && | 54 page_url == offline_item.page_url && |
| 55 original_url == offline_item.original_url && | 55 original_url == offline_item.original_url && |
| 56 is_off_the_record == offline_item.is_off_the_record && | 56 is_off_the_record == offline_item.is_off_the_record && |
| 57 state == offline_item.state && | 57 state == offline_item.state && |
| 58 is_resumable == offline_item.is_resumable && | 58 is_resumable == offline_item.is_resumable && |
| 59 received_bytes == offline_item.received_bytes && | 59 received_bytes == offline_item.received_bytes && |
| 60 percent_completed == offline_item.percent_completed && | 60 percent_completed == offline_item.percent_completed && |
| 61 time_remaining_ms == offline_item.time_remaining_ms; | 61 time_remaining_ms == offline_item.time_remaining_ms; |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool OfflineItem::operator<(const OfflineItem& offline_item) const { | |
| 65 return id < offline_item.id; | |
|
fgorski
2017/03/17 04:15:16
this is a little dangerous as (!(a < b) && !(b < a
David Trainor- moved to gerrit
2017/03/22 00:12:45
Yeah that's a good point. I didn't like this eith
| |
| 66 } | |
| 67 | |
| 64 } // namespace offline_items_collection | 68 } // namespace offline_items_collection |
| OLD | NEW |