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

Unified Diff: components/offline_pages/background/save_page_request.cc

Issue 2356433004: [Offline pages] Extracting AddRequest method in RequestQueueStore (Closed)
Patch Set: Addressing feedback plus attempt at fixing compilation issue" Created 4 years, 3 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
Index: components/offline_pages/background/save_page_request.cc
diff --git a/components/offline_pages/background/save_page_request.cc b/components/offline_pages/background/save_page_request.cc
index 91b3d4ebd5433eaa087b2d8dcc3508e16be3301b..77bc85ff1d8efe0740079d99bcc55c10e69c38cf 100644
--- a/components/offline_pages/background/save_page_request.cc
+++ b/components/offline_pages/background/save_page_request.cc
@@ -51,6 +51,18 @@ SavePageRequest::SavePageRequest(const SavePageRequest& other)
SavePageRequest::~SavePageRequest() {}
+bool SavePageRequest::operator==(const SavePageRequest& other) const {
+ return request_id_ == other.request_id_ &&
+ url_ == other.url_ &&
+ client_id_ == other.client_id_ &&
+ creation_time_ == other.creation_time_ &&
+ activation_time_ == other.activation_time_ &&
+ started_attempt_count_ == other.started_attempt_count_ &&
+ completed_attempt_count_ == other.completed_attempt_count_ &&
+ last_attempt_time_ == other.last_attempt_time_ &&
+ state_ == other.state_;
+}
+
void SavePageRequest::MarkAttemptStarted(const base::Time& start_time) {
DCHECK_LE(activation_time_, start_time);
// TODO(fgorski): As part of introducing policy in GetStatus, we can make a
« no previous file with comments | « components/offline_pages/background/save_page_request.h ('k') | components/offline_pages/offline_page_metadata_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698