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

Unified Diff: google_apis/gcm/engine/heartbeat_manager.h

Issue 1758573004: [GCM] Fixing the client interval interaction with heartbeat ack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing final feedback Created 4 years, 10 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 | « no previous file | google_apis/gcm/engine/heartbeat_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/engine/heartbeat_manager.h
diff --git a/google_apis/gcm/engine/heartbeat_manager.h b/google_apis/gcm/engine/heartbeat_manager.h
index fe3bba680a5b78baac7c5a99639c9a3b8fa6610a..b8efe0374c0e2bfa0b350fcb9d0264fef8b76f1d 100644
--- a/google_apis/gcm/engine/heartbeat_manager.h
+++ b/google_apis/gcm/engine/heartbeat_manager.h
@@ -91,6 +91,9 @@ class GCM_EXPORT HeartbeatManager : public base::PowerObserver {
// Restarts the heartbeat timer.
void RestartTimer();
+ // Calculates and sets the current heartbeat interval.
+ void UpdateHeartbeatInterval();
+
// Calculates default heartbeat interval, depending on current network.
int GetDefaultHeartbeatInterval();
« no previous file with comments | « no previous file | google_apis/gcm/engine/heartbeat_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698