Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 virtual void AddObserver(Observer* observer) = 0; | 63 virtual void AddObserver(Observer* observer) = 0; |
| 64 virtual void RemoveObserver(Observer* observer) = 0; | 64 virtual void RemoveObserver(Observer* observer) = 0; |
| 65 virtual bool HasObserver(Observer* observer) = 0; | 65 virtual bool HasObserver(Observer* observer) = 0; |
| 66 | 66 |
| 67 // Kicks off an attempt to emit the "login-prompt-visible" upstart signal. | 67 // Kicks off an attempt to emit the "login-prompt-visible" upstart signal. |
| 68 virtual void EmitLoginPromptVisible() = 0; | 68 virtual void EmitLoginPromptVisible() = 0; |
| 69 | 69 |
| 70 // Restarts a job referenced by |pid| with the provided command line. | 70 // Restarts a job referenced by |pid| with the provided command line. |
| 71 virtual void RestartJob(int pid, const std::string& command_line) = 0; | 71 virtual void RestartJob(int pid, const std::string& command_line) = 0; |
| 72 | 72 |
| 73 typedef base::Callback<void(bool success)> StartSessionCallback; | |
|
ygorshenin1
2014/04/10 15:39:22
nit: add an empty line between typedef and followi
Roman Sorokin (ftl)
2014/04/11 07:38:13
Done.
| |
| 73 // Starts the session for the user. | 74 // Starts the session for the user. |
| 74 virtual void StartSession(const std::string& user_email) = 0; | 75 virtual void StartSession(const std::string& user_email, |
| 76 const StartSessionCallback& callback) = 0; | |
| 75 | 77 |
| 76 // Stops the current session. | 78 // Stops the current session. |
| 77 virtual void StopSession() = 0; | 79 virtual void StopSession() = 0; |
| 78 | 80 |
| 79 // Starts the factory reset. | 81 // Starts the factory reset. |
| 80 virtual void StartDeviceWipe() = 0; | 82 virtual void StartDeviceWipe() = 0; |
| 81 | 83 |
| 82 // Locks the screen. | 84 // Locks the screen. |
| 83 virtual void RequestLockScreen() = 0; | 85 virtual void RequestLockScreen() = 0; |
| 84 | 86 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 // Create() should be used instead. | 181 // Create() should be used instead. |
| 180 SessionManagerClient(); | 182 SessionManagerClient(); |
| 181 | 183 |
| 182 private: | 184 private: |
| 183 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 185 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
| 184 }; | 186 }; |
| 185 | 187 |
| 186 } // namespace chromeos | 188 } // namespace chromeos |
| 187 | 189 |
| 188 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 190 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| OLD | NEW |