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

Side by Side Diff: chromeos/dbus/session_manager_client.h

Issue 228703004: Start session fail causes restart chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments and rebase Created 6 years, 7 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 unified diff | Download patch
« no previous file with comments | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 // Used for StartSession. Takes a boolean indicating whether the
74 // operation was successful or not.
75 typedef base::Callback<void(bool success)> StartSessionCallback;
76
73 // Starts the session for the user. 77 // Starts the session for the user.
74 virtual void StartSession(const std::string& user_email) = 0; 78 virtual void StartSession(const std::string& user_email,
79 const StartSessionCallback& callback) = 0;
75 80
76 // Stops the current session. 81 // Stops the current session.
77 virtual void StopSession() = 0; 82 virtual void StopSession() = 0;
78 83
79 // Starts the factory reset. 84 // Starts the factory reset.
80 virtual void StartDeviceWipe() = 0; 85 virtual void StartDeviceWipe() = 0;
81 86
82 // Locks the screen. 87 // Locks the screen.
83 virtual void RequestLockScreen() = 0; 88 virtual void RequestLockScreen() = 0;
84 89
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // Create() should be used instead. 184 // Create() should be used instead.
180 SessionManagerClient(); 185 SessionManagerClient();
181 186
182 private: 187 private:
183 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); 188 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient);
184 }; 189 };
185 190
186 } // namespace chromeos 191 } // namespace chromeos
187 192
188 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ 193 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698