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

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

Issue 2954293002: Chromad: Prevent session from starting without policy (Closed)
Patch Set: Move MockAuthPolicyClient into unittest Created 3 years, 5 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
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_DBUS_THREAD_MANAGER_H_ 5 #ifndef CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_
6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ 6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 std::unique_ptr<DBusClientsBrowser> clients_browser_; 173 std::unique_ptr<DBusClientsBrowser> clients_browser_;
174 174
175 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); 175 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager);
176 }; 176 };
177 177
178 // TODO(jamescook): Replace these with FooClient::InitializeForTesting(). 178 // TODO(jamescook): Replace these with FooClient::InitializeForTesting().
179 class CHROMEOS_EXPORT DBusThreadManagerSetter { 179 class CHROMEOS_EXPORT DBusThreadManagerSetter {
180 public: 180 public:
181 ~DBusThreadManagerSetter(); 181 ~DBusThreadManagerSetter();
182 182
183 void SetAuthPolicyClient(std::unique_ptr<AuthPolicyClient> client);
183 void SetBiodClient(std::unique_ptr<BiodClient> client); 184 void SetBiodClient(std::unique_ptr<BiodClient> client);
184 void SetCrasAudioClient(std::unique_ptr<CrasAudioClient> client); 185 void SetCrasAudioClient(std::unique_ptr<CrasAudioClient> client);
185 void SetCrosDisksClient(std::unique_ptr<CrosDisksClient> client); 186 void SetCrosDisksClient(std::unique_ptr<CrosDisksClient> client);
186 void SetCryptohomeClient(std::unique_ptr<CryptohomeClient> client); 187 void SetCryptohomeClient(std::unique_ptr<CryptohomeClient> client);
187 void SetDebugDaemonClient(std::unique_ptr<DebugDaemonClient> client); 188 void SetDebugDaemonClient(std::unique_ptr<DebugDaemonClient> client);
188 void SetShillDeviceClient(std::unique_ptr<ShillDeviceClient> client); 189 void SetShillDeviceClient(std::unique_ptr<ShillDeviceClient> client);
189 void SetShillIPConfigClient(std::unique_ptr<ShillIPConfigClient> client); 190 void SetShillIPConfigClient(std::unique_ptr<ShillIPConfigClient> client);
190 void SetShillManagerClient(std::unique_ptr<ShillManagerClient> client); 191 void SetShillManagerClient(std::unique_ptr<ShillManagerClient> client);
191 void SetShillServiceClient(std::unique_ptr<ShillServiceClient> client); 192 void SetShillServiceClient(std::unique_ptr<ShillServiceClient> client);
192 void SetShillProfileClient(std::unique_ptr<ShillProfileClient> client); 193 void SetShillProfileClient(std::unique_ptr<ShillProfileClient> client);
(...skipping 13 matching lines...) Expand all
206 friend class DBusThreadManager; 207 friend class DBusThreadManager;
207 208
208 DBusThreadManagerSetter(); 209 DBusThreadManagerSetter();
209 210
210 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); 211 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter);
211 }; 212 };
212 213
213 } // namespace chromeos 214 } // namespace chromeos
214 215
215 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ 216 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc ('k') | chromeos/dbus/dbus_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698