| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYSTEM_MONITOR_SYSTEM_MONITOR_H_ | 5 #ifndef BASE_SYSTEM_MONITOR_SYSTEM_MONITOR_H_ |
| 6 #define BASE_SYSTEM_MONITOR_SYSTEM_MONITOR_H_ | 6 #define BASE_SYSTEM_MONITOR_SYSTEM_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 "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 | 15 |
| 16 // Class for monitoring various system-related subsystems | 16 // Class for monitoring various system-related subsystems |
| 17 // such as power management, network status, etc. | 17 // such as power management, network status, etc. |
| 18 // TODO(mbelshe): Add support beyond just power management. | 18 // TODO(mbelshe): Add support beyond just power management. |
| 19 class BASE_EXPORT SystemMonitor { | 19 class BASE_EXPORT SystemMonitor { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 scoped_refptr<ObserverListThreadSafe<DevicesChangedObserver> > | 67 scoped_refptr<ObserverListThreadSafe<DevicesChangedObserver> > |
| 68 devices_changed_observer_list_; | 68 devices_changed_observer_list_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(SystemMonitor); | 70 DISALLOW_COPY_AND_ASSIGN(SystemMonitor); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace base | 73 } // namespace base |
| 74 | 74 |
| 75 #endif // BASE_SYSTEM_MONITOR_SYSTEM_MONITOR_H_ | 75 #endif // BASE_SYSTEM_MONITOR_SYSTEM_MONITOR_H_ |
| OLD | NEW |