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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class Bus; | 21 class Bus; |
22 class ObjectPath; | 22 class ObjectPath; |
23 } // namespace dbus | 23 } // namespace dbus |
24 | 24 |
25 namespace chromeos { | 25 namespace chromeos { |
26 | 26 |
27 // Style Note: Clients are sorted by names. | 27 // Style Note: Clients are sorted by names. |
28 class AmplifierClient; | 28 class AmplifierClient; |
29 class ApManagerClient; | 29 class ApManagerClient; |
30 class AudioDspClient; | 30 class AudioDspClient; |
31 class BluetoothAdapterClient; | |
32 class BluetoothLEAdvertisingManagerClient; | |
33 class BluetoothAgentManagerClient; | |
34 class BluetoothDeviceClient; | |
35 class BluetoothGattCharacteristicClient; | |
36 class BluetoothGattDescriptorClient; | |
37 class BluetoothGattManagerClient; | |
38 class BluetoothGattServiceClient; | |
39 class BluetoothInputClient; | |
40 class BluetoothMediaClient; | |
41 class BluetoothMediaTransportClient; | |
42 class BluetoothProfileManagerClient; | |
43 class CrasAudioClient; | 31 class CrasAudioClient; |
44 class CrosDisksClient; | 32 class CrosDisksClient; |
45 class CryptohomeClient; | 33 class CryptohomeClient; |
46 class DBusThreadManagerSetter; | 34 class DBusThreadManagerSetter; |
47 class DebugDaemonClient; | 35 class DebugDaemonClient; |
48 class EasyUnlockClient; | 36 class EasyUnlockClient; |
49 class GsmSMSClient; | 37 class GsmSMSClient; |
50 class ImageBurnerClient; | 38 class ImageBurnerClient; |
51 class IntrospectableClient; | 39 class IntrospectableClient; |
52 class LorgnetteManagerClient; | 40 class LorgnetteManagerClient; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 bool IsUsingStub(DBusClientBundle::DBusClientType client); | 105 bool IsUsingStub(DBusClientBundle::DBusClientType client); |
118 | 106 |
119 // Returns various D-Bus bus instances, owned by DBusThreadManager. | 107 // Returns various D-Bus bus instances, owned by DBusThreadManager. |
120 dbus::Bus* GetSystemBus(); | 108 dbus::Bus* GetSystemBus(); |
121 | 109 |
122 // All returned objects are owned by DBusThreadManager. Do not use these | 110 // All returned objects are owned by DBusThreadManager. Do not use these |
123 // pointers after DBusThreadManager has been shut down. | 111 // pointers after DBusThreadManager has been shut down. |
124 AmplifierClient* GetAmplifierClient(); | 112 AmplifierClient* GetAmplifierClient(); |
125 ApManagerClient* GetApManagerClient(); | 113 ApManagerClient* GetApManagerClient(); |
126 AudioDspClient* GetAudioDspClient(); | 114 AudioDspClient* GetAudioDspClient(); |
127 BluetoothAdapterClient* GetBluetoothAdapterClient(); | |
128 BluetoothLEAdvertisingManagerClient* GetBluetoothLEAdvertisingManagerClient(); | |
129 BluetoothAgentManagerClient* GetBluetoothAgentManagerClient(); | |
130 BluetoothDeviceClient* GetBluetoothDeviceClient(); | |
131 BluetoothGattCharacteristicClient* GetBluetoothGattCharacteristicClient(); | |
132 BluetoothGattDescriptorClient* GetBluetoothGattDescriptorClient(); | |
133 BluetoothGattManagerClient* GetBluetoothGattManagerClient(); | |
134 BluetoothGattServiceClient* GetBluetoothGattServiceClient(); | |
135 BluetoothInputClient* GetBluetoothInputClient(); | |
136 BluetoothMediaClient* GetBluetoothMediaClient(); | |
137 BluetoothMediaTransportClient* GetBluetoothMediaTransportClient(); | |
138 BluetoothProfileManagerClient* GetBluetoothProfileManagerClient(); | |
139 CrasAudioClient* GetCrasAudioClient(); | 115 CrasAudioClient* GetCrasAudioClient(); |
140 CrosDisksClient* GetCrosDisksClient(); | 116 CrosDisksClient* GetCrosDisksClient(); |
141 CryptohomeClient* GetCryptohomeClient(); | 117 CryptohomeClient* GetCryptohomeClient(); |
142 DebugDaemonClient* GetDebugDaemonClient(); | 118 DebugDaemonClient* GetDebugDaemonClient(); |
143 EasyUnlockClient* GetEasyUnlockClient(); | 119 EasyUnlockClient* GetEasyUnlockClient(); |
144 GsmSMSClient* GetGsmSMSClient(); | 120 GsmSMSClient* GetGsmSMSClient(); |
145 ImageBurnerClient* GetImageBurnerClient(); | 121 ImageBurnerClient* GetImageBurnerClient(); |
146 IntrospectableClient* GetIntrospectableClient(); | 122 IntrospectableClient* GetIntrospectableClient(); |
147 LorgnetteManagerClient* GetLorgnetteManagerClient(); | 123 LorgnetteManagerClient* GetLorgnetteManagerClient(); |
148 ModemMessagingClient* GetModemMessagingClient(); | 124 ModemMessagingClient* GetModemMessagingClient(); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 179 |
204 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); | 180 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); |
205 }; | 181 }; |
206 | 182 |
207 class CHROMEOS_EXPORT DBusThreadManagerSetter { | 183 class CHROMEOS_EXPORT DBusThreadManagerSetter { |
208 public: | 184 public: |
209 ~DBusThreadManagerSetter(); | 185 ~DBusThreadManagerSetter(); |
210 | 186 |
211 void SetAmplifierClient(scoped_ptr<AmplifierClient> client); | 187 void SetAmplifierClient(scoped_ptr<AmplifierClient> client); |
212 void SetAudioDspClient(scoped_ptr<AudioDspClient> client); | 188 void SetAudioDspClient(scoped_ptr<AudioDspClient> client); |
213 void SetBluetoothAdapterClient(scoped_ptr<BluetoothAdapterClient> client); | |
214 void SetBluetoothLEAdvertisingManagerClient( | |
215 scoped_ptr<BluetoothLEAdvertisingManagerClient> client); | |
216 void SetBluetoothAgentManagerClient( | |
217 scoped_ptr<BluetoothAgentManagerClient> client); | |
218 void SetBluetoothDeviceClient(scoped_ptr<BluetoothDeviceClient> client); | |
219 void SetBluetoothGattCharacteristicClient( | |
220 scoped_ptr<BluetoothGattCharacteristicClient> client); | |
221 void SetBluetoothGattDescriptorClient( | |
222 scoped_ptr<BluetoothGattDescriptorClient> client); | |
223 void SetBluetoothGattManagerClient( | |
224 scoped_ptr<BluetoothGattManagerClient> client); | |
225 void SetBluetoothGattServiceClient( | |
226 scoped_ptr<BluetoothGattServiceClient> client); | |
227 void SetBluetoothInputClient(scoped_ptr<BluetoothInputClient> client); | |
228 void SetBluetoothMediaClient(scoped_ptr<BluetoothMediaClient> client); | |
229 void SetBluetoothMediaTransportClient( | |
230 scoped_ptr<BluetoothMediaTransportClient> client); | |
231 void SetBluetoothProfileManagerClient( | |
232 scoped_ptr<BluetoothProfileManagerClient> client); | |
233 void SetCrasAudioClient(scoped_ptr<CrasAudioClient> client); | 189 void SetCrasAudioClient(scoped_ptr<CrasAudioClient> client); |
234 void SetCrosDisksClient(scoped_ptr<CrosDisksClient> client); | 190 void SetCrosDisksClient(scoped_ptr<CrosDisksClient> client); |
235 void SetCryptohomeClient(scoped_ptr<CryptohomeClient> client); | 191 void SetCryptohomeClient(scoped_ptr<CryptohomeClient> client); |
236 void SetDebugDaemonClient(scoped_ptr<DebugDaemonClient> client); | 192 void SetDebugDaemonClient(scoped_ptr<DebugDaemonClient> client); |
237 void SetEasyUnlockClient(scoped_ptr<EasyUnlockClient> client); | 193 void SetEasyUnlockClient(scoped_ptr<EasyUnlockClient> client); |
238 void SetLorgnetteManagerClient(scoped_ptr<LorgnetteManagerClient> client); | 194 void SetLorgnetteManagerClient(scoped_ptr<LorgnetteManagerClient> client); |
239 void SetShillDeviceClient(scoped_ptr<ShillDeviceClient> client); | 195 void SetShillDeviceClient(scoped_ptr<ShillDeviceClient> client); |
240 void SetShillIPConfigClient(scoped_ptr<ShillIPConfigClient> client); | 196 void SetShillIPConfigClient(scoped_ptr<ShillIPConfigClient> client); |
241 void SetShillManagerClient(scoped_ptr<ShillManagerClient> client); | 197 void SetShillManagerClient(scoped_ptr<ShillManagerClient> client); |
242 void SetShillServiceClient(scoped_ptr<ShillServiceClient> client); | 198 void SetShillServiceClient(scoped_ptr<ShillServiceClient> client); |
(...skipping 23 matching lines...) Expand all Loading... |
266 friend class DBusThreadManager; | 222 friend class DBusThreadManager; |
267 | 223 |
268 DBusThreadManagerSetter(); | 224 DBusThreadManagerSetter(); |
269 | 225 |
270 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); | 226 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); |
271 }; | 227 }; |
272 | 228 |
273 } // namespace chromeos | 229 } // namespace chromeos |
274 | 230 |
275 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 231 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
OLD | NEW |