OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_BATTERY_STATUS_PROVIDER_CHROMEOS_H_ | |
Ben Goodger (Google)
2012/04/11 21:09:11
-> chrome/browser/chromeos at least.
sadrul
2012/04/11 21:50:54
Done.
| |
6 #define CHROME_BROWSER_BATTERY_STATUS_PROVIDER_CHROMEOS_H_ | |
7 | |
8 #include "base/memory/singleton.h" | |
9 #include "chromeos/dbus/power_manager_client.h" | |
10 | |
11 // This is a singleton object that receives battery information from the system | |
12 // and feeds the data to content. | |
13 class BatteryStatusProviderChromeos | |
14 : public chromeos::PowerManagerClient::Observer { | |
15 public: | |
16 static BatteryStatusProviderChromeos* GetInstance(); | |
17 | |
18 private: | |
19 friend struct DefaultSingletonTraits<BatteryStatusProviderChromeos>; | |
20 | |
21 BatteryStatusProviderChromeos(); | |
22 virtual ~BatteryStatusProviderChromeos(); | |
23 | |
24 // Overridden from chromeos::PowerManagerClient::Observer. | |
25 virtual void PowerChanged(const chromeos::PowerSupplyStatus& status) OVERRIDE; | |
26 | |
27 DISALLOW_COPY_AND_ASSIGN(BatteryStatusProviderChromeos); | |
28 }; | |
29 | |
30 #endif // CHROME_BROWSER_BATTERY_STATUS_PROVIDER_CHROMEOS_H_ | |
OLD | NEW |