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

Unified Diff: google_apis/gcm/gcm_client_impl.h

Issue 222913004: [GCM] Minimum change for periodic checkin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applying a final comments. Created 6 years, 9 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 | « google_apis/gcm/engine/gcm_store_impl_unittest.cc ('k') | google_apis/gcm/gcm_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/gcm_client_impl.h
diff --git a/google_apis/gcm/gcm_client_impl.h b/google_apis/gcm/gcm_client_impl.h
index 4aa38ba3a8102a8bf21567b62760f1dc41d460c3..0349270d119738edd14e63989cb478f3b67101f0 100644
--- a/google_apis/gcm/gcm_client_impl.h
+++ b/google_apis/gcm/gcm_client_impl.h
@@ -162,12 +162,17 @@ class GCM_EXPORT GCMClientImpl : public GCMClient {
void OnReady();
// Starts a first time device checkin.
- void StartCheckin(const CheckinInfo& checkin_info);
+ void StartCheckin();
// Completes the device checkin request.
// |android_id| and |security_token| are expected to be non-zero or an error
// is triggered. Function also cleans up the pending checkin.
void OnCheckinCompleted(uint64 android_id,
uint64 security_token);
+ // Schedules next device checkin, based on |last_checkin_time| and default
+ // checkin interval.
+ void SchedulePeriodicCheckin(const base::Time& last_checkin_time);
+ // Callback for setting last checkin time in the |gcm_store_|.
+ void SetLastCheckinTimeCallback(bool success);
// Callback for persisting device credentials in the |gcm_store_|.
void SetDeviceCredentialsCallback(bool success);
« no previous file with comments | « google_apis/gcm/engine/gcm_store_impl_unittest.cc ('k') | google_apis/gcm/gcm_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698