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

Unified Diff: components/gcm_driver/gcm_client.h

Issue 681453004: [GCM] Adding last token fetching time handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/gcm_driver/gcm_client.h
diff --git a/components/gcm_driver/gcm_client.h b/components/gcm_driver/gcm_client.h
index 7552bbe00a2d4bf97fd38b800554063f770a9e93..dbd386f792085cdbf1a2db49dcca24fa28c16900 100644
--- a/components/gcm_driver/gcm_client.h
+++ b/components/gcm_driver/gcm_client.h
@@ -203,8 +203,10 @@ class GCMClient {
// from the server if it hadn't yet.
// |account_mappings|: a persisted list of accounts mapped to this GCM
// client.
+ // |last_token_fetching_time|: a timestamp of a last successful token fetch.
virtual void OnGCMReady(
- const std::vector<AccountMapping>& account_mappings) = 0;
+ const std::vector<AccountMapping>& account_mappings,
+ const base::Time& last_token_fetching_time) = 0;
// Called when activities are being recorded and a new activity has just
// been recorded.
@@ -295,6 +297,9 @@ class GCMClient {
// Removes the account mapping related to |account_id| from the persistent
// store.
virtual void RemoveAccountMapping(const std::string& account_id) = 0;
+
+ // Sets last token fetching time in persistent store.
+ virtual void SetLastTokenFetchingTime(const base::Time& time) = 0;
};
} // namespace gcm

Powered by Google App Engine
This is Rietveld 408576698