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

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: Fixing Android build 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
« no previous file with comments | « components/gcm_driver/fake_gcm_driver.cc ('k') | components/gcm_driver/gcm_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9956c1003e93e3125866b2f2c0eb5fc8a126af53 100644
--- a/components/gcm_driver/gcm_client.h
+++ b/components/gcm_driver/gcm_client.h
@@ -203,8 +203,9 @@ class GCMClient {
// from the server if it hadn't yet.
// |account_mappings|: a persisted list of accounts mapped to this GCM
// client.
- virtual void OnGCMReady(
- const std::vector<AccountMapping>& account_mappings) = 0;
+ // |last_token_fetch_time|: time of a last successful token fetch.
+ virtual void OnGCMReady(const std::vector<AccountMapping>& account_mappings,
+ const base::Time& last_token_fetch_time) = 0;
// Called when activities are being recorded and a new activity has just
// been recorded.
@@ -295,6 +296,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 fetch time in persistent store.
+ virtual void SetLastTokenFetchTime(const base::Time& time) = 0;
};
} // namespace gcm
« no previous file with comments | « components/gcm_driver/fake_gcm_driver.cc ('k') | components/gcm_driver/gcm_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698