OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CLIENT_BUNDLE_H_ | 5 #ifndef CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
6 #define CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 6 #define CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 | 14 |
15 class AmplifierClient; | 15 class AmplifierClient; |
16 class ApManagerClient; | 16 class ApManagerClient; |
17 class AudioDspClient; | 17 class AudioDspClient; |
18 class BluetoothAdapterClient; | |
19 class BluetoothAgentManagerClient; | |
20 class BluetoothDeviceClient; | |
21 class BluetoothGattCharacteristicClient; | |
22 class BluetoothGattDescriptorClient; | |
23 class BluetoothGattManagerClient; | |
24 class BluetoothGattServiceClient; | |
25 class BluetoothInputClient; | |
26 class BluetoothLEAdvertisingManagerClient; | |
27 class BluetoothMediaClient; | |
28 class BluetoothMediaTransportClient; | |
29 class BluetoothProfileManagerClient; | |
30 class CrasAudioClient; | 18 class CrasAudioClient; |
31 class CrosDisksClient; | 19 class CrosDisksClient; |
32 class CryptohomeClient; | 20 class CryptohomeClient; |
33 class DebugDaemonClient; | 21 class DebugDaemonClient; |
34 class EasyUnlockClient; | 22 class EasyUnlockClient; |
35 class GsmSMSClient; | 23 class GsmSMSClient; |
36 class ImageBurnerClient; | 24 class ImageBurnerClient; |
37 class IntrospectableClient; | 25 class IntrospectableClient; |
38 class LorgnetteManagerClient; | 26 class LorgnetteManagerClient; |
39 class ModemMessagingClient; | 27 class ModemMessagingClient; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Parses command line param values for dbus subsystem that should be | 97 // Parses command line param values for dbus subsystem that should be |
110 // un-stubbed. | 98 // un-stubbed. |
111 static DBusClientTypeMask ParseUnstubList(const std::string& unstub_list); | 99 static DBusClientTypeMask ParseUnstubList(const std::string& unstub_list); |
112 | 100 |
113 AmplifierClient* amplifier_client() { return amplifier_client_.get(); } | 101 AmplifierClient* amplifier_client() { return amplifier_client_.get(); } |
114 | 102 |
115 ApManagerClient* ap_manager_client() { return ap_manager_client_.get(); } | 103 ApManagerClient* ap_manager_client() { return ap_manager_client_.get(); } |
116 | 104 |
117 AudioDspClient* audio_dsp_client() { return audio_dsp_client_.get(); } | 105 AudioDspClient* audio_dsp_client() { return audio_dsp_client_.get(); } |
118 | 106 |
119 BluetoothAdapterClient* bluetooth_adapter_client() { | |
120 return bluetooth_adapter_client_.get(); | |
121 } | |
122 | |
123 BluetoothLEAdvertisingManagerClient* | |
124 bluetooth_le_advertising_manager_client() { | |
125 return bluetooth_le_advertising_manager_client_.get(); | |
126 } | |
127 | |
128 BluetoothAgentManagerClient* bluetooth_agent_manager_client() { | |
129 return bluetooth_agent_manager_client_.get(); | |
130 } | |
131 | |
132 BluetoothDeviceClient* bluetooth_device_client() { | |
133 return bluetooth_device_client_.get(); | |
134 } | |
135 | |
136 BluetoothGattCharacteristicClient* bluetooth_gatt_characteristic_client() { | |
137 return bluetooth_gatt_characteristic_client_.get(); | |
138 } | |
139 | |
140 BluetoothGattDescriptorClient* bluetooth_gatt_descriptor_client() { | |
141 return bluetooth_gatt_descriptor_client_.get(); | |
142 } | |
143 | |
144 BluetoothGattManagerClient* bluetooth_gatt_manager_client() { | |
145 return bluetooth_gatt_manager_client_.get(); | |
146 } | |
147 | |
148 BluetoothGattServiceClient* bluetooth_gatt_service_client() { | |
149 return bluetooth_gatt_service_client_.get(); | |
150 } | |
151 | |
152 BluetoothInputClient* bluetooth_input_client() { | |
153 return bluetooth_input_client_.get(); | |
154 } | |
155 | |
156 BluetoothMediaClient* bluetooth_media_client() { | |
157 return bluetooth_media_client_.get(); | |
158 } | |
159 | |
160 BluetoothMediaTransportClient* bluetooth_media_transport_client() { | |
161 return bluetooth_media_transport_client_.get(); | |
162 } | |
163 | |
164 BluetoothProfileManagerClient* bluetooth_profile_manager_client() { | |
165 return bluetooth_profile_manager_client_.get(); | |
166 } | |
167 | |
168 CrasAudioClient* cras_audio_client() { | 107 CrasAudioClient* cras_audio_client() { |
169 return cras_audio_client_.get(); | 108 return cras_audio_client_.get(); |
170 } | 109 } |
171 | 110 |
172 CrosDisksClient* cros_disks_client() { | 111 CrosDisksClient* cros_disks_client() { |
173 return cros_disks_client_.get(); | 112 return cros_disks_client_.get(); |
174 } | 113 } |
175 | 114 |
176 CryptohomeClient* cryptohome_client() { | 115 CryptohomeClient* cryptohome_client() { |
177 return cryptohome_client_.get(); | 116 return cryptohome_client_.get(); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 private: | 223 private: |
285 friend class DBusThreadManagerSetter; | 224 friend class DBusThreadManagerSetter; |
286 | 225 |
287 // Bitmask that defines which dbus clients are not stubbed out. Bitmap flags | 226 // Bitmask that defines which dbus clients are not stubbed out. Bitmap flags |
288 // are defined within DBusClientType enum. | 227 // are defined within DBusClientType enum. |
289 DBusClientTypeMask unstub_client_mask_; | 228 DBusClientTypeMask unstub_client_mask_; |
290 | 229 |
291 scoped_ptr<AmplifierClient> amplifier_client_; | 230 scoped_ptr<AmplifierClient> amplifier_client_; |
292 scoped_ptr<ApManagerClient> ap_manager_client_; | 231 scoped_ptr<ApManagerClient> ap_manager_client_; |
293 scoped_ptr<AudioDspClient> audio_dsp_client_; | 232 scoped_ptr<AudioDspClient> audio_dsp_client_; |
294 scoped_ptr<BluetoothAdapterClient> bluetooth_adapter_client_; | |
295 scoped_ptr<BluetoothLEAdvertisingManagerClient> | |
296 bluetooth_le_advertising_manager_client_; | |
297 scoped_ptr<BluetoothAgentManagerClient> bluetooth_agent_manager_client_; | |
298 scoped_ptr<BluetoothDeviceClient> bluetooth_device_client_; | |
299 scoped_ptr<BluetoothGattCharacteristicClient> | |
300 bluetooth_gatt_characteristic_client_; | |
301 scoped_ptr<BluetoothGattDescriptorClient> bluetooth_gatt_descriptor_client_; | |
302 scoped_ptr<BluetoothGattManagerClient> bluetooth_gatt_manager_client_; | |
303 scoped_ptr<BluetoothGattServiceClient> bluetooth_gatt_service_client_; | |
304 scoped_ptr<BluetoothInputClient> bluetooth_input_client_; | |
305 scoped_ptr<BluetoothMediaClient> bluetooth_media_client_; | |
306 scoped_ptr<BluetoothMediaTransportClient> bluetooth_media_transport_client_; | |
307 scoped_ptr<BluetoothProfileManagerClient> bluetooth_profile_manager_client_; | |
308 scoped_ptr<CrasAudioClient> cras_audio_client_; | 233 scoped_ptr<CrasAudioClient> cras_audio_client_; |
309 scoped_ptr<CrosDisksClient> cros_disks_client_; | 234 scoped_ptr<CrosDisksClient> cros_disks_client_; |
310 scoped_ptr<CryptohomeClient> cryptohome_client_; | 235 scoped_ptr<CryptohomeClient> cryptohome_client_; |
311 scoped_ptr<DebugDaemonClient> debug_daemon_client_; | 236 scoped_ptr<DebugDaemonClient> debug_daemon_client_; |
312 scoped_ptr<EasyUnlockClient> easy_unlock_client_; | 237 scoped_ptr<EasyUnlockClient> easy_unlock_client_; |
313 scoped_ptr<LorgnetteManagerClient> lorgnette_manager_client_; | 238 scoped_ptr<LorgnetteManagerClient> lorgnette_manager_client_; |
314 scoped_ptr<PeerDaemonManagerClient> peer_daemon_manager_client_; | 239 scoped_ptr<PeerDaemonManagerClient> peer_daemon_manager_client_; |
315 scoped_ptr<PrivetDaemonManagerClient> privet_daemon_manager_client_; | 240 scoped_ptr<PrivetDaemonManagerClient> privet_daemon_manager_client_; |
316 scoped_ptr<ShillDeviceClient> shill_device_client_; | 241 scoped_ptr<ShillDeviceClient> shill_device_client_; |
317 scoped_ptr<ShillIPConfigClient> shill_ipconfig_client_; | 242 scoped_ptr<ShillIPConfigClient> shill_ipconfig_client_; |
(...skipping 19 matching lines...) Expand all Loading... |
337 scoped_ptr<SessionManagerClient> session_manager_client_; | 262 scoped_ptr<SessionManagerClient> session_manager_client_; |
338 scoped_ptr<SMSClient> sms_client_; | 263 scoped_ptr<SMSClient> sms_client_; |
339 scoped_ptr<UpdateEngineClient> update_engine_client_; | 264 scoped_ptr<UpdateEngineClient> update_engine_client_; |
340 | 265 |
341 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); | 266 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); |
342 }; | 267 }; |
343 | 268 |
344 } // namespace chromeos | 269 } // namespace chromeos |
345 | 270 |
346 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 271 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
OLD | NEW |