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

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

Issue 1052363005: Add DBus bindings for BLE Advertisement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 11 matching lines...) Expand all
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; 31 class BluetoothAdapterClient;
32 class BluetoothLEAdvertisingManagerClient;
32 class BluetoothAgentManagerClient; 33 class BluetoothAgentManagerClient;
33 class BluetoothDeviceClient; 34 class BluetoothDeviceClient;
34 class BluetoothGattCharacteristicClient; 35 class BluetoothGattCharacteristicClient;
35 class BluetoothGattDescriptorClient; 36 class BluetoothGattDescriptorClient;
36 class BluetoothGattManagerClient; 37 class BluetoothGattManagerClient;
37 class BluetoothGattServiceClient; 38 class BluetoothGattServiceClient;
38 class BluetoothInputClient; 39 class BluetoothInputClient;
39 class BluetoothMediaClient; 40 class BluetoothMediaClient;
40 class BluetoothMediaTransportClient; 41 class BluetoothMediaTransportClient;
41 class BluetoothProfileManagerClient; 42 class BluetoothProfileManagerClient;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 120
120 // Returns various D-Bus bus instances, owned by DBusThreadManager. 121 // Returns various D-Bus bus instances, owned by DBusThreadManager.
121 dbus::Bus* GetSystemBus(); 122 dbus::Bus* GetSystemBus();
122 123
123 // All returned objects are owned by DBusThreadManager. Do not use these 124 // All returned objects are owned by DBusThreadManager. Do not use these
124 // pointers after DBusThreadManager has been shut down. 125 // pointers after DBusThreadManager has been shut down.
125 AmplifierClient* GetAmplifierClient(); 126 AmplifierClient* GetAmplifierClient();
126 ApManagerClient* GetApManagerClient(); 127 ApManagerClient* GetApManagerClient();
127 AudioDspClient* GetAudioDspClient(); 128 AudioDspClient* GetAudioDspClient();
128 BluetoothAdapterClient* GetBluetoothAdapterClient(); 129 BluetoothAdapterClient* GetBluetoothAdapterClient();
130 BluetoothLEAdvertisingManagerClient* GetBluetoothLEAdvertisingManagerClient();
129 BluetoothAgentManagerClient* GetBluetoothAgentManagerClient(); 131 BluetoothAgentManagerClient* GetBluetoothAgentManagerClient();
130 BluetoothDeviceClient* GetBluetoothDeviceClient(); 132 BluetoothDeviceClient* GetBluetoothDeviceClient();
131 BluetoothGattCharacteristicClient* GetBluetoothGattCharacteristicClient(); 133 BluetoothGattCharacteristicClient* GetBluetoothGattCharacteristicClient();
132 BluetoothGattDescriptorClient* GetBluetoothGattDescriptorClient(); 134 BluetoothGattDescriptorClient* GetBluetoothGattDescriptorClient();
133 BluetoothGattManagerClient* GetBluetoothGattManagerClient(); 135 BluetoothGattManagerClient* GetBluetoothGattManagerClient();
134 BluetoothGattServiceClient* GetBluetoothGattServiceClient(); 136 BluetoothGattServiceClient* GetBluetoothGattServiceClient();
135 BluetoothInputClient* GetBluetoothInputClient(); 137 BluetoothInputClient* GetBluetoothInputClient();
136 BluetoothMediaClient* GetBluetoothMediaClient(); 138 BluetoothMediaClient* GetBluetoothMediaClient();
137 BluetoothMediaTransportClient* GetBluetoothMediaTransportClient(); 139 BluetoothMediaTransportClient* GetBluetoothMediaTransportClient();
138 BluetoothProfileManagerClient* GetBluetoothProfileManagerClient(); 140 BluetoothProfileManagerClient* GetBluetoothProfileManagerClient();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); 208 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager);
207 }; 209 };
208 210
209 class CHROMEOS_EXPORT DBusThreadManagerSetter { 211 class CHROMEOS_EXPORT DBusThreadManagerSetter {
210 public: 212 public:
211 ~DBusThreadManagerSetter(); 213 ~DBusThreadManagerSetter();
212 214
213 void SetAmplifierClient(scoped_ptr<AmplifierClient> client); 215 void SetAmplifierClient(scoped_ptr<AmplifierClient> client);
214 void SetAudioDspClient(scoped_ptr<AudioDspClient> client); 216 void SetAudioDspClient(scoped_ptr<AudioDspClient> client);
215 void SetBluetoothAdapterClient(scoped_ptr<BluetoothAdapterClient> client); 217 void SetBluetoothAdapterClient(scoped_ptr<BluetoothAdapterClient> client);
218 void SetBluetoothLEAdvertisingManagerClient(
219 scoped_ptr<BluetoothLEAdvertisingManagerClient> client);
216 void SetBluetoothAgentManagerClient( 220 void SetBluetoothAgentManagerClient(
217 scoped_ptr<BluetoothAgentManagerClient> client); 221 scoped_ptr<BluetoothAgentManagerClient> client);
218 void SetBluetoothDeviceClient(scoped_ptr<BluetoothDeviceClient> client); 222 void SetBluetoothDeviceClient(scoped_ptr<BluetoothDeviceClient> client);
219 void SetBluetoothGattCharacteristicClient( 223 void SetBluetoothGattCharacteristicClient(
220 scoped_ptr<BluetoothGattCharacteristicClient> client); 224 scoped_ptr<BluetoothGattCharacteristicClient> client);
221 void SetBluetoothGattDescriptorClient( 225 void SetBluetoothGattDescriptorClient(
222 scoped_ptr<BluetoothGattDescriptorClient> client); 226 scoped_ptr<BluetoothGattDescriptorClient> client);
223 void SetBluetoothGattManagerClient( 227 void SetBluetoothGattManagerClient(
224 scoped_ptr<BluetoothGattManagerClient> client); 228 scoped_ptr<BluetoothGattManagerClient> client);
225 void SetBluetoothGattServiceClient( 229 void SetBluetoothGattServiceClient(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 friend class DBusThreadManager; 273 friend class DBusThreadManager;
270 274
271 DBusThreadManagerSetter(); 275 DBusThreadManagerSetter();
272 276
273 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); 277 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter);
274 }; 278 };
275 279
276 } // namespace chromeos 280 } // namespace chromeos
277 281
278 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ 282 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698