Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8891)

Unified Diff: chromeos/dbus/power_manager_client.h

Issue 12186010: chromeos: Add power management policy prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix observer registration and bool prefs Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/mock_power_manager_client.cc ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/power_manager_client.h
diff --git a/chromeos/dbus/power_manager_client.h b/chromeos/dbus/power_manager_client.h
index 265001fb4e1a3a5392cac3cba6d56c1c169292b3..3accbadb713a6139ddd27b93f9f6682c527e0a3e 100644
--- a/chromeos/dbus/power_manager_client.h
+++ b/chromeos/dbus/power_manager_client.h
@@ -19,6 +19,10 @@ namespace dbus {
class Bus;
}
+namespace power_manager {
+class PowerManagementPolicy;
+}
+
namespace chromeos {
// Callback used for processing the idle time. The int64 param is the number of
@@ -165,6 +169,10 @@ class CHROMEOS_EXPORT PowerManagerClient {
const base::TimeTicks& last_activity_time,
bool is_fullscreen) = 0;
+ // Tells the power manager to begin using |policy|.
+ virtual void SetPolicy(
+ const power_manager::PowerManagementPolicy& policy) = 0;
+
// Override the current power state on the machine. The overrides will be
// applied to the request ID specified. To specify a new request; use 0 as the
// request id and the method will call the provided callback with the new
« no previous file with comments | « chromeos/dbus/mock_power_manager_client.cc ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698