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; |