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

Unified Diff: components/timers/alarm_timer.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/gcm_driver/gcm_driver_desktop.cc ('k') | components/timers/alarm_timer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/timers/alarm_timer.h
diff --git a/components/timers/alarm_timer.h b/components/timers/alarm_timer.h
index 80bc45b3af4dfc2c9f04180a5e5a4c11c6384cb3..d2f93335d61c518c4516b523b94058df949a1577 100644
--- a/components/timers/alarm_timer.h
+++ b/components/timers/alarm_timer.h
@@ -61,7 +61,11 @@ class AlarmTimer : public base::Timer,
~AlarmTimer() override;
- bool can_wake_from_suspend() { return can_wake_from_suspend_; }
+ bool can_wake_from_suspend() const { return can_wake_from_suspend_; }
+
+ // Must be called by the delegate to indicate that the timer has fired and
+ // that the user task should be run.
+ void OnTimerFired();
// Timer overrides.
void Stop() override;
@@ -70,10 +74,6 @@ class AlarmTimer : public base::Timer,
// MessageLoop::DestructionObserver overrides.
void WillDestroyCurrentMessageLoop() override;
- // Must be called by the delegate to indicate that the timer has fired and
- // that the user task should be run.
- void OnTimerFired();
-
private:
// Initializes the timer with the appropriate delegate.
void Init();
« no previous file with comments | « components/gcm_driver/gcm_driver_desktop.cc ('k') | components/timers/alarm_timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698