Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2650)

Unified Diff: components/offline_pages/core/prefetch/prefetch_item.cc

Issue 2872933003: Add base persistence interfaces for Prefetching Offline Pages. (Closed)
Patch Set: Renamed constants file; removed ClientId dependency; and more. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/offline_pages/core/prefetch/prefetch_item.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/core/prefetch/prefetch_item.cc
diff --git a/components/offline_pages/core/prefetch/prefetch_item.cc b/components/offline_pages/core/prefetch/prefetch_item.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9c50028fa88c0233981e9b7d092c2dbb4a6da9ad
--- /dev/null
+++ b/components/offline_pages/core/prefetch/prefetch_item.cc
@@ -0,0 +1,22 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/offline_pages/core/prefetch/prefetch_item.h"
+
+namespace offline_pages {
+
+bool PrefetchItem::operator==(const PrefetchItem& other) const {
dewittj 2017/05/11 17:07:12 If you have implementation, do you need tests?
carlosk 2017/05/11 22:59:51 Done.
+ return guid == other.guid && name_space == other.name_space &&
+ state == other.state && url == other.url &&
+ final_archived_url == other.final_archived_url &&
+ request_archive_attempt_count == other.request_archive_attempt_count &&
+ operation_name == other.operation_name &&
+ archive_body_name == other.archive_body_name &&
+ archive_body_length == other.archive_body_length &&
+ creation_time == other.creation_time &&
+ freshness_time == other.freshness_time &&
+ error_code == other.error_code;
+}
+
+} // namespace offline_pages
« no previous file with comments | « components/offline_pages/core/prefetch/prefetch_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698