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

Unified Diff: chrome/browser/chromeos/dbus/power_manager_client.h

Issue 8537001: chromeos: Power manager client calls shutdown and restart (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed DCHECK for power library Created 9 years, 1 month 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: chrome/browser/chromeos/dbus/power_manager_client.h
diff --git a/chrome/browser/chromeos/dbus/power_manager_client.h b/chrome/browser/chromeos/dbus/power_manager_client.h
index 4922f89eae8d7aaaa999f3c8ae030791793354e7..11ecf90dac6c65f750ebb0c7f35544c30a34a427 100644
--- a/chrome/browser/chromeos/dbus/power_manager_client.h
+++ b/chrome/browser/chromeos/dbus/power_manager_client.h
@@ -66,6 +66,12 @@ class PowerManagerClient {
// UI initiated request for power supply status update.
virtual void RequestStatusUpdate() = 0;
+ // Requests restart of the system.
+ virtual void RequestRestart() = 0;
+
+ // Requests shutdown of the system.
+ virtual void RequestShutdown() = 0;
+
// Creates the instance.
static PowerManagerClient* Create(dbus::Bus* bus);
« no previous file with comments | « chrome/browser/chromeos/dbus/mock_power_manager_client.h ('k') | chrome/browser/chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698