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

Side by Side Diff: device/bluetooth/bluetooth_device_bluez.h

Issue 1872943002: Add support for local services/characteristics/descriptors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 11 matching lines...) Expand all
22 22
23 namespace device { 23 namespace device {
24 class BluetoothSocketThread; 24 class BluetoothSocketThread;
25 } // namespace device 25 } // namespace device
26 26
27 namespace bluez { 27 namespace bluez {
28 28
29 class BluetoothAdapterBlueZ; 29 class BluetoothAdapterBlueZ;
30 class BluetoothPairingBlueZ; 30 class BluetoothPairingBlueZ;
31 31
32 // The BluetoothDeviceBlueZ class implements BluetoothDevice for the 32 // The BluetoothDeviceBlueZ class implements BluetoothDevice for platforms using
33 // Chrome OS platform. 33 // BlueZ.
34 // 34 //
35 // This class is not thread-safe, but is only called from the UI thread. 35 // This class is not thread-safe, but is only called from the UI thread.
36 // 36 //
37 // A socket thread is used to create sockets but posts all callbacks on the UI 37 // A socket thread is used to create sockets but posts all callbacks on the UI
38 // thread. 38 // thread.
39 class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceBlueZ 39 class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceBlueZ
40 : public device::BluetoothDevice, 40 : public device::BluetoothDevice,
41 public bluez::BluetoothGattServiceClient::Observer { 41 public bluez::BluetoothGattServiceClient::Observer {
42 public: 42 public:
43 // BluetoothDevice override 43 // BluetoothDevice override
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // Note: This should remain the last member so it'll be destroyed and 212 // Note: This should remain the last member so it'll be destroyed and
213 // invalidate its weak pointers before any other members are destroyed. 213 // invalidate its weak pointers before any other members are destroyed.
214 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; 214 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_;
215 215
216 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); 216 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ);
217 }; 217 };
218 218
219 } // namespace bluez 219 } // namespace bluez
220 220
221 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_ 221 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_bluez.cc ('k') | device/bluetooth/bluetooth_gatt_characteristic_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698