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_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 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "chromeos/chromeos_export.h" | 14 #include "chromeos/chromeos_export.h" |
15 #include "chromeos/dbus/dbus_client_bundle.h" | 15 #include "chromeos/dbus/dbus_client_bundle.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class Thread; | 18 class Thread; |
19 } // namespace base | 19 } // namespace base |
20 | 20 |
21 namespace dbus { | 21 namespace dbus { |
22 class Bus; | 22 class Bus; |
23 class ObjectPath; | 23 class ObjectPath; |
24 } // namespace dbus | 24 } // namespace dbus |
25 | 25 |
26 namespace chromeos { | 26 namespace chromeos { |
27 | 27 |
28 // Style Note: Clients are sorted by names. | 28 // Style Note: Clients are sorted by names. |
29 class ApManagerClient; | |
30 class ArcObbMounterClient; | 29 class ArcObbMounterClient; |
31 class CrasAudioClient; | 30 class CrasAudioClient; |
32 class CrosDisksClient; | 31 class CrosDisksClient; |
33 class CryptohomeClient; | 32 class CryptohomeClient; |
34 class DBusThreadManagerSetter; | 33 class DBusThreadManagerSetter; |
35 class DebugDaemonClient; | 34 class DebugDaemonClient; |
36 class EasyUnlockClient; | 35 class EasyUnlockClient; |
37 class GsmSMSClient; | 36 class GsmSMSClient; |
38 class ImageBurnerClient; | 37 class ImageBurnerClient; |
39 class IntrospectableClient; | 38 class IntrospectableClient; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 static DBusThreadManager* Get(); | 100 static DBusThreadManager* Get(); |
102 | 101 |
103 // Returns true if |client| is stubbed. | 102 // Returns true if |client| is stubbed. |
104 bool IsUsingStub(DBusClientBundle::DBusClientType client); | 103 bool IsUsingStub(DBusClientBundle::DBusClientType client); |
105 | 104 |
106 // Returns various D-Bus bus instances, owned by DBusThreadManager. | 105 // Returns various D-Bus bus instances, owned by DBusThreadManager. |
107 dbus::Bus* GetSystemBus(); | 106 dbus::Bus* GetSystemBus(); |
108 | 107 |
109 // All returned objects are owned by DBusThreadManager. Do not use these | 108 // All returned objects are owned by DBusThreadManager. Do not use these |
110 // pointers after DBusThreadManager has been shut down. | 109 // pointers after DBusThreadManager has been shut down. |
111 ApManagerClient* GetApManagerClient(); | |
112 ArcObbMounterClient* GetArcObbMounterClient(); | 110 ArcObbMounterClient* GetArcObbMounterClient(); |
113 CrasAudioClient* GetCrasAudioClient(); | 111 CrasAudioClient* GetCrasAudioClient(); |
114 CrosDisksClient* GetCrosDisksClient(); | 112 CrosDisksClient* GetCrosDisksClient(); |
115 CryptohomeClient* GetCryptohomeClient(); | 113 CryptohomeClient* GetCryptohomeClient(); |
116 DebugDaemonClient* GetDebugDaemonClient(); | 114 DebugDaemonClient* GetDebugDaemonClient(); |
117 EasyUnlockClient* GetEasyUnlockClient(); | 115 EasyUnlockClient* GetEasyUnlockClient(); |
118 GsmSMSClient* GetGsmSMSClient(); | 116 GsmSMSClient* GetGsmSMSClient(); |
119 ImageBurnerClient* GetImageBurnerClient(); | 117 ImageBurnerClient* GetImageBurnerClient(); |
120 IntrospectableClient* GetIntrospectableClient(); | 118 IntrospectableClient* GetIntrospectableClient(); |
121 LorgnetteManagerClient* GetLorgnetteManagerClient(); | 119 LorgnetteManagerClient* GetLorgnetteManagerClient(); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 friend class DBusThreadManager; | 216 friend class DBusThreadManager; |
219 | 217 |
220 DBusThreadManagerSetter(); | 218 DBusThreadManagerSetter(); |
221 | 219 |
222 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); | 220 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); |
223 }; | 221 }; |
224 | 222 |
225 } // namespace chromeos | 223 } // namespace chromeos |
226 | 224 |
227 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 225 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
OLD | NEW |