OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include <string> |
9 #include "base/observer_list.h" | |
10 | 9 |
11 #include <string> | 10 #include "base/basictypes.h" |
12 | 11 |
13 namespace dbus { | 12 namespace dbus { |
14 class Bus; | 13 class Bus; |
15 class ObjectProxy; | |
16 class Response; | |
17 class Signal; | |
18 } // namespace | 14 } // namespace |
19 | 15 |
20 namespace chromeos { | 16 namespace chromeos { |
21 | 17 |
22 // This is the local struct that is used in Chrome. | 18 // This is the local struct that is used in Chrome. |
23 struct PowerSupplyStatus { | 19 struct PowerSupplyStatus { |
24 bool line_power_on; | 20 bool line_power_on; |
25 | 21 |
26 bool battery_is_present; | 22 bool battery_is_present; |
27 bool battery_is_full; | 23 bool battery_is_full; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // Create() should be used instead. | 77 // Create() should be used instead. |
82 PowerManagerClient(); | 78 PowerManagerClient(); |
83 | 79 |
84 private: | 80 private: |
85 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); | 81 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); |
86 }; | 82 }; |
87 | 83 |
88 } // namespace chromeos | 84 } // namespace chromeos |
89 | 85 |
90 #endif // CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 86 #endif // CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
OLD | NEW |