Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 POWER_MANAGER_POWER_PREFS_INTERFACE_H_ | 5 #ifndef POWER_MANAGER_POWER_PREFS_INTERFACE_H_ |
| 6 #define POWER_MANAGER_POWER_PREFS_INTERFACE_H_ | 6 #define POWER_MANAGER_POWER_PREFS_INTERFACE_H_ |
| 7 | 7 |
| 8 namespace power_manager { | 8 namespace power_manager { |
| 9 | 9 |
| 10 // Prefs for power manager | 10 // Prefs for power manager |
| 11 class PowerPrefsInterface { | 11 class PowerPrefsInterface { |
| 12 public: | 12 public: |
| 13 // Read a setting from disk into |val| | 13 // Read a setting from disk into |val| |
| 14 // Returns true if successful; otherwise returns false. | 14 // Returns true if successful; otherwise returns false. |
| 15 virtual bool ReadSetting(const char* setting_name, int64 *val) = 0; | 15 virtual bool ReadSetting(const char* setting_name, int64* val) = 0; |
| 16 | 16 |
| 17 // Write a setting to disk. | 17 // Write a setting to disk. |
| 18 // Returns true if successful; otherwise returns false. | 18 // Returns true if successful; otherwise returns false. |
| 19 virtual bool WriteSetting(const char* setting_name, int64 level) = 0; | 19 virtual bool WriteSetting(const char* setting_name, int64 level) = 0; |
| 20 | 20 |
| 21 protected: | 21 protected: |
| 22 ~PowerPrefsInterface() {} | 22 ~PowerPrefsInterface() {} |
| 23 }; | 23 }; |
|
tfarina
2010/06/05 01:08:56
maybe add a DISALLOW_EMPTY_CONSTRUCTORS here? Hum,
| |
| 24 | 24 |
| 25 } // namespace power_manager | 25 } // namespace power_manager |
| 26 | 26 |
| 27 #endif // POWER_MANAGER_POWER_PREFS_INTERFACE_H_ | 27 #endif // POWER_MANAGER_POWER_PREFS_INTERFACE_H_ |
| OLD | NEW |