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

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

Issue 1951483002: [Offline pages] Adding in memory request queue store with tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Udpating name of variable to make code more readable Created 4 years, 8 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/background/save_page_request.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/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 fdae22cfc451fda682cef1aa73dcfcfbd92cdee9..717fc124114d05bb76e8e18e6fdeaf2626b96fb1 100644
--- a/components/offline_pages/background/save_page_request.cc
+++ b/components/offline_pages/background/save_page_request.cc
@@ -29,6 +29,15 @@ SavePageRequest::SavePageRequest(int64_t request_id,
activation_time_(activation_time),
attempt_count_(0) {}
+SavePageRequest::SavePageRequest(const SavePageRequest& other)
+ : request_id_(other.request_id_),
+ url_(other.url_),
+ client_id_(other.client_id_),
+ creation_time_(other.creation_time_),
+ activation_time_(other.activation_time_),
+ attempt_count_(other.attempt_count_),
+ last_attempt_time_(other.last_attempt_time_) {}
+
SavePageRequest::~SavePageRequest() {}
// TODO(fgorski): Introduce policy parameter, once policy is available.
« no previous file with comments | « components/offline_pages/background/save_page_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698