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

Unified Diff: components/gcm_driver/gcm_driver.h

Issue 745123002: Link GCM heartbeat with wake on wifi preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make GCM wake from suspend aware 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
Index: components/gcm_driver/gcm_driver.h
diff --git a/components/gcm_driver/gcm_driver.h b/components/gcm_driver/gcm_driver.h
index 354d6a0ba2bc69334fad91c5661563a21e2b736b..05fd86b4a5da06a9a92c4dbf898831cd02f47c59 100644
--- a/components/gcm_driver/gcm_driver.h
+++ b/components/gcm_driver/gcm_driver.h
@@ -138,6 +138,10 @@ class GCMDriver {
virtual base::Time GetLastTokenFetchTime() = 0;
virtual void SetLastTokenFetchTime(const base::Time& time) = 0;
+ // Sets whether or not GCM should try to wake the system from suspend in order
+ // to send a heartbeat message.
+ virtual void WakeFromSuspendForHeartbeat(bool wake) = 0;
+
protected:
// Ensures that the GCM service starts (if necessary conditions are met).
virtual GCMClient::Result EnsureStarted() = 0;

Powered by Google App Engine
This is Rietveld 408576698