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

Side by Side Diff: base/power_monitor/power_monitor.h

Issue 18119002: Use a direct include of time headers in base/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 7 years, 5 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/platform_file_unittest.cc ('k') | base/power_monitor/power_monitor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_POWER_MONITOR_POWER_MONITOR_H_ 5 #ifndef BASE_POWER_MONITOR_POWER_MONITOR_H_
6 #define BASE_POWER_MONITOR_POWER_MONITOR_H_ 6 #define BASE_POWER_MONITOR_POWER_MONITOR_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/observer_list_threadsafe.h" 11 #include "base/observer_list_threadsafe.h"
12 #include "base/power_monitor/power_observer.h" 12 #include "base/power_monitor/power_observer.h"
13 13
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 #include <windows.h> 15 #include <windows.h>
16 16
17 // Windows HiRes timers drain the battery faster so we need to know the battery 17 // Windows HiRes timers drain the battery faster so we need to know the battery
18 // status. This isn't true for other platforms. 18 // status. This isn't true for other platforms.
19 #define ENABLE_BATTERY_MONITORING 1 19 #define ENABLE_BATTERY_MONITORING 1
20 #else 20 #else
21 #undef ENABLE_BATTERY_MONITORING 21 #undef ENABLE_BATTERY_MONITORING
22 #endif // !OS_WIN 22 #endif // !OS_WIN
23 23
24 #if defined(ENABLE_BATTERY_MONITORING) 24 #if defined(ENABLE_BATTERY_MONITORING)
25 #include "base/timer.h" 25 #include "base/timer/timer.h"
26 #endif // defined(ENABLE_BATTERY_MONITORING) 26 #endif // defined(ENABLE_BATTERY_MONITORING)
27 27
28 #if defined(OS_IOS) 28 #if defined(OS_IOS)
29 #include <objc/runtime.h> 29 #include <objc/runtime.h>
30 #endif // OS_IOS 30 #endif // OS_IOS
31 31
32 namespace base { 32 namespace base {
33 33
34 // A class used to monitor the power state change and notify the observers about 34 // A class used to monitor the power state change and notify the observers about
35 // the change event. 35 // the change event.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #if defined(OS_WIN) 137 #if defined(OS_WIN)
138 PowerMessageWindow power_message_window_; 138 PowerMessageWindow power_message_window_;
139 #endif 139 #endif
140 140
141 DISALLOW_COPY_AND_ASSIGN(PowerMonitor); 141 DISALLOW_COPY_AND_ASSIGN(PowerMonitor);
142 }; 142 };
143 143
144 } // namespace base 144 } // namespace base
145 145
146 #endif // BASE_POWER_MONITOR_POWER_MONITOR_H_ 146 #endif // BASE_POWER_MONITOR_POWER_MONITOR_H_
OLDNEW
« no previous file with comments | « base/platform_file_unittest.cc ('k') | base/power_monitor/power_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698