diff options
author | chirantan <chirantan@chromium.org> | 2014-10-24 12:44:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-24 19:45:08 +0000 |
commit | 26436e402e6e1b780f6565539ae0acb3e2976fb9 (patch) | |
tree | 74bcbbae19ab7c21897ebee81621c063661408c8 /components/timers.gypi | |
parent | 4a526b4276b4165a68be177a84686f6c51c30959 (diff) | |
download | chromium_src-26436e402e6e1b780f6565539ae0acb3e2976fb9.zip chromium_src-26436e402e6e1b780f6565539ae0acb3e2976fb9.tar.gz chromium_src-26436e402e6e1b780f6565539ae0acb3e2976fb9.tar.bz2 |
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}
Diffstat (limited to 'components/timers.gypi')
-rw-r--r-- | components/timers.gypi | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/components/timers.gypi b/components/timers.gypi new file mode 100644 index 0000000..4202b96 --- /dev/null +++ b/components/timers.gypi @@ -0,0 +1,25 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'targets': [ + { + # GN version: //components/timers + 'target_name': 'timers', + 'type': 'static_library', + 'include_dirs': [ + '..', + ], + 'dependencies': [ + '../base/base.gyp:base', + ], + 'sources': [ + 'timers/alarm_timer.cc', + 'timers/alarm_timer.h', + 'timers/rtc_alarm.cc', + 'timers/rtc_alarm.h', + ], + }, + ], +}
\ No newline at end of file |