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

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

Issue 2113383002: More detailed implementation of the RequestPicker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix time check and MeetsConditions check Created 4 years, 5 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 fba16e6c100a2458a0aa1ca1948c7d1dc68409bc..29b38b4a83580708e27a203eaff132c9517ad92c 100644
--- a/components/offline_pages/background/save_page_request.cc
+++ b/components/offline_pages/background/save_page_request.cc
@@ -9,25 +9,29 @@ namespace offline_pages {
SavePageRequest::SavePageRequest(int64_t request_id,
const GURL& url,
const ClientId& client_id,
- const base::Time& creation_time)
+ const base::Time& creation_time,
+ const bool was_user_requested)
: request_id_(request_id),
url_(url),
client_id_(client_id),
creation_time_(creation_time),
activation_time_(creation_time),
- attempt_count_(0) {}
+ attempt_count_(0),
+ user_requested_(was_user_requested) {}
SavePageRequest::SavePageRequest(int64_t request_id,
const GURL& url,
const ClientId& client_id,
const base::Time& creation_time,
- const base::Time& activation_time)
+ const base::Time& activation_time,
+ const bool was_user_requested)
: request_id_(request_id),
url_(url),
client_id_(client_id),
creation_time_(creation_time),
activation_time_(activation_time),
- attempt_count_(0) {}
+ attempt_count_(0),
+ user_requested_(was_user_requested) {}
SavePageRequest::SavePageRequest(const SavePageRequest& other)
: request_id_(other.request_id_),
@@ -36,7 +40,8 @@ SavePageRequest::SavePageRequest(const SavePageRequest& other)
creation_time_(other.creation_time_),
activation_time_(other.activation_time_),
attempt_count_(other.attempt_count_),
- last_attempt_time_(other.last_attempt_time_) {}
+ last_attempt_time_(other.last_attempt_time_),
+ user_requested_(other.user_requested_) {}
SavePageRequest::~SavePageRequest() {}

Powered by Google App Engine
This is Rietveld 408576698