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

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

Issue 23694025: Remove calls to deprecated session_manager DBus methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix use-after-free in tests. Created 7 years, 3 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 | Annotate | Revision Log
« 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 16 matching lines...) Expand all
27 27
28 // Called when the property change is complete. 28 // Called when the property change is complete.
29 virtual void PropertyChangeComplete(bool success) {} 29 virtual void PropertyChangeComplete(bool success) {}
30 30
31 // Called when the session manager requests that the lock screen be 31 // Called when the session manager requests that the lock screen be
32 // displayed. NotifyLockScreenShown() is called after the lock screen 32 // displayed. NotifyLockScreenShown() is called after the lock screen
33 // is shown (the canonical "is the screen locked?" state lives in the 33 // is shown (the canonical "is the screen locked?" state lives in the
34 // session manager). 34 // session manager).
35 virtual void LockScreen() {} 35 virtual void LockScreen() {}
36 36
37 // Called when the session manager requests that the lock screen be
38 // dismissed. NotifyLockScreenDismissed() is called afterward.
39 virtual void UnlockScreen() {}
40
41 // Called when the session manager announces that the screen has been locked 37 // Called when the session manager announces that the screen has been locked
42 // successfully (i.e. after NotifyLockScreenShown() has been called). 38 // successfully (i.e. after NotifyLockScreenShown() has been called).
43 virtual void ScreenIsLocked() {} 39 virtual void ScreenIsLocked() {}
44 40
45 // Called when the session manager announces that the screen has been 41 // Called when the session manager announces that the screen has been
46 // unlocked successfully (i.e. after NotifyLockScreenDismissed() has 42 // unlocked successfully (i.e. after NotifyLockScreenDismissed() has
47 // been called). 43 // been called).
48 virtual void ScreenIsUnlocked() {} 44 virtual void ScreenIsUnlocked() {}
49 }; 45 };
50 46
51 // Adds and removes the observer. 47 // Adds and removes the observer.
52 virtual void AddObserver(Observer* observer) = 0; 48 virtual void AddObserver(Observer* observer) = 0;
53 virtual void RemoveObserver(Observer* observer) = 0; 49 virtual void RemoveObserver(Observer* observer) = 0;
54 virtual bool HasObserver(Observer* observer) = 0; 50 virtual bool HasObserver(Observer* observer) = 0;
55 51
56 // Kicks off an attempt to emit the "login-prompt-ready" upstart signal. 52 // Kicks off an attempt to emit the "login-prompt-ready" upstart signal.
57 virtual void EmitLoginPromptReady() = 0; 53 virtual void EmitLoginPromptReady() = 0;
58 54
59 // Kicks off an attempt to emit the "login-prompt-visible" upstart signal. 55 // Kicks off an attempt to emit the "login-prompt-visible" upstart signal.
60 virtual void EmitLoginPromptVisible() = 0; 56 virtual void EmitLoginPromptVisible() = 0;
61 57
62 // Restarts a job referenced by |pid| with the provided command line. 58 // Restarts a job referenced by |pid| with the provided command line.
63 virtual void RestartJob(int pid, const std::string& command_line) = 0; 59 virtual void RestartJob(int pid, const std::string& command_line) = 0;
64 60
65 // Restarts entd (the enterprise daemon).
66 // DEPRECATED: will be deleted soon.
67 virtual void RestartEntd() = 0;
68
69 // Starts the session for the user. 61 // Starts the session for the user.
70 virtual void StartSession(const std::string& user_email) = 0; 62 virtual void StartSession(const std::string& user_email) = 0;
71 63
72 // Stops the current session. 64 // Stops the current session.
73 virtual void StopSession() = 0; 65 virtual void StopSession() = 0;
74 66
75 // Starts the factory reset. 67 // Starts the factory reset.
76 virtual void StartDeviceWipe() = 0; 68 virtual void StartDeviceWipe() = 0;
77 69
78 // Locks the screen. 70 // Locks the screen.
79 virtual void RequestLockScreen() = 0; 71 virtual void RequestLockScreen() = 0;
80 72
81 // Notifies that the lock screen is shown. 73 // Notifies that the lock screen is shown.
82 virtual void NotifyLockScreenShown() = 0; 74 virtual void NotifyLockScreenShown() = 0;
83 75
84 // Unlocks the screen.
85 virtual void RequestUnlockScreen() = 0;
86
87 // Notifies that the lock screen is dismissed. 76 // Notifies that the lock screen is dismissed.
88 virtual void NotifyLockScreenDismissed() = 0; 77 virtual void NotifyLockScreenDismissed() = 0;
89 78
90 // Map that is used to describe the set of active user sessions where |key| 79 // Map that is used to describe the set of active user sessions where |key|
91 // is user_id and |value| is user_id_hash. 80 // is user_id and |value| is user_id_hash.
92 typedef std::map<std::string, std::string> ActiveSessionsMap; 81 typedef std::map<std::string, std::string> ActiveSessionsMap;
93 82
94 // The ActiveSessionsCallback is used for the RetrieveActiveSessions() 83 // The ActiveSessionsCallback is used for the RetrieveActiveSessions()
95 // method. It receives |sessions| argument where the keys are user_ids for 84 // method. It receives |sessions| argument where the keys are user_ids for
96 // all users that are currently active and |success| argument which indicates 85 // all users that are currently active and |success| argument which indicates
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Create() should be used instead. 167 // Create() should be used instead.
179 SessionManagerClient(); 168 SessionManagerClient();
180 169
181 private: 170 private:
182 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); 171 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient);
183 }; 172 };
184 173
185 } // namespace chromeos 174 } // namespace chromeos
186 175
187 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ 176 #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