OLD | NEW |
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/macros.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 namespace base { | 14 namespace base { |
15 | 15 |
16 class PowerMonitorSource; | 16 class PowerMonitorSource; |
17 | 17 |
18 // A class used to monitor the power state change and notify the observers about | 18 // A class used to monitor the power state change and notify the observers about |
19 // the change event. | 19 // the change event. |
(...skipping 26 matching lines...) Expand all Loading... |
46 | 46 |
47 scoped_refptr<ObserverListThreadSafe<PowerObserver> > observers_; | 47 scoped_refptr<ObserverListThreadSafe<PowerObserver> > observers_; |
48 scoped_ptr<PowerMonitorSource> source_; | 48 scoped_ptr<PowerMonitorSource> source_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(PowerMonitor); | 50 DISALLOW_COPY_AND_ASSIGN(PowerMonitor); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace base | 53 } // namespace base |
54 | 54 |
55 #endif // BASE_POWER_MONITOR_POWER_MONITOR_H_ | 55 #endif // BASE_POWER_MONITOR_POWER_MONITOR_H_ |
OLD | NEW |