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

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

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 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 unified diff | Download patch
« no previous file with comments | « chromeos/dbus/power_manager_client.cc ('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 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chromeos/dbus/power_manager_client.cc ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698