components: Introduce AlarmTimer class and use it for GCM heartbeat
This adds the AlarmTimer class to components, which is capable of waking
up the system from suspend on platforms that support this operation
(currently only Chrome OS with linux version 3.11 or higher). On all
other platforms, the AlarmTimer behaves exactly the same as a regular
Timer.
BUG=crosbug.com/p/32272
Review URL: https://codereview.chromium.org/641943002
Cr-Commit-Position: refs/heads/master@{#301175}
diff --git a/components/gcm_driver/DEPS b/components/gcm_driver/DEPS
index e7bf510..cad5eddf 100644
--- a/components/gcm_driver/DEPS
+++ b/components/gcm_driver/DEPS
@@ -1,6 +1,7 @@
include_rules = [
"+components/os_crypt",
"+components/pref_registry",
+ "+components/timers", # Only used for Chrome OS builds.
# TODO(johnme): Fix this layering violation.
"!content/public/android/java",
"+google_apis/gaia",