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

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

Issue 745123002: Link GCM heartbeat with wake on wifi preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missing include Created 6 years 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/timers/rtc_alarm.cc ('k') | 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 a0a186ef9d464eed6711aca6fd84dd01c2930e63..0addf90100e5d964d455c075e8cd3cd04a4c7325 100644
--- a/google_apis/gcm/engine/heartbeat_manager.h
+++ b/google_apis/gcm/engine/heartbeat_manager.h
@@ -25,7 +25,7 @@ namespace gcm {
// receipt/failures and triggering reconnection as necessary.
class GCM_EXPORT HeartbeatManager {
public:
- explicit HeartbeatManager(scoped_ptr<base::Timer> heartbeat_timer);
+ HeartbeatManager();
~HeartbeatManager();
// Start the heartbeat logic.
@@ -52,6 +52,9 @@ class GCM_EXPORT HeartbeatManager {
// pending.
base::TimeTicks GetNextHeartbeatTime() const;
+ // Updates the timer used for scheduling heartbeats.
+ void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer);
+
protected:
// Helper method to send heartbeat on timer trigger.
void OnHeartbeatTriggered();
« no previous file with comments | « components/timers/rtc_alarm.cc ('k') | google_apis/gcm/engine/heartbeat_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698