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

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: pass prefs directly to PowerPolicyController 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
Index: chromeos/dbus/power_manager_client.h
diff --git a/chromeos/dbus/power_manager_client.h b/chromeos/dbus/power_manager_client.h
index caf86b64638c130372ab697e8e3ffe74b4f0e85d..f7c026b383ab594ca6a1bac5ea902ad86595aaa2 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
@@ -162,6 +166,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

Powered by Google App Engine
This is Rietveld 408576698