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 #include <vector> | 10 #include <vector> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 virtual void LockScreenForStub() = 0; | 56 virtual void LockScreenForStub() = 0; |
57 }; | 57 }; |
58 | 58 |
59 // Sets the delegate used by the stub implementation. Ownership of |delegate| | 59 // Sets the delegate used by the stub implementation. Ownership of |delegate| |
60 // remains with the caller. | 60 // remains with the caller. |
61 virtual void SetStubDelegate(StubDelegate* delegate) = 0; | 61 virtual void SetStubDelegate(StubDelegate* delegate) = 0; |
62 | 62 |
63 // Adds and removes the observer. | 63 // Adds and removes the observer. |
64 virtual void AddObserver(Observer* observer) = 0; | 64 virtual void AddObserver(Observer* observer) = 0; |
65 virtual void RemoveObserver(Observer* observer) = 0; | 65 virtual void RemoveObserver(Observer* observer) = 0; |
66 virtual bool HasObserver(Observer* observer) = 0; | 66 virtual bool HasObserver(const Observer* observer) const = 0; |
67 | 67 |
68 // Kicks off an attempt to emit the "login-prompt-visible" upstart signal. | 68 // Kicks off an attempt to emit the "login-prompt-visible" upstart signal. |
69 virtual void EmitLoginPromptVisible() = 0; | 69 virtual void EmitLoginPromptVisible() = 0; |
70 | 70 |
71 // Restarts a job referenced by |pid| with the provided command line. | 71 // Restarts a job referenced by |pid| with the provided command line. |
72 virtual void RestartJob(int pid, const std::string& command_line) = 0; | 72 virtual void RestartJob(int pid, const std::string& command_line) = 0; |
73 | 73 |
74 // Starts the session for the user. | 74 // Starts the session for the user. |
75 virtual void StartSession(const std::string& user_email) = 0; | 75 virtual void StartSession(const std::string& user_email) = 0; |
76 | 76 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // Create() should be used instead. | 189 // Create() should be used instead. |
190 SessionManagerClient(); | 190 SessionManagerClient(); |
191 | 191 |
192 private: | 192 private: |
193 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 193 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
194 }; | 194 }; |
195 | 195 |
196 } // namespace chromeos | 196 } // namespace chromeos |
197 | 197 |
198 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 198 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
OLD | NEW |