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

Side by Side Diff: device/bluetooth/bluetooth_adapter_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_ADAPTER_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <queue> 11 #include <queue>
12 #include <string> 12 #include <string>
13 #include <tuple>
13 #include <utility> 14 #include <utility>
14 #include <vector> 15 #include <vector>
15 16
16 #include "base/macros.h" 17 #include "base/macros.h"
17 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
18 #include "dbus/object_path.h" 19 #include "dbus/object_path.h"
19 #include "device/bluetooth/bluetooth_adapter.h" 20 #include "device/bluetooth/bluetooth_adapter.h"
20 #include "device/bluetooth/bluetooth_audio_sink.h" 21 #include "device/bluetooth/bluetooth_audio_sink.h"
21 #include "device/bluetooth/bluetooth_device.h" 22 #include "device/bluetooth/bluetooth_device.h"
22 #include "device/bluetooth/bluetooth_discovery_session.h" 23 #include "device/bluetooth/bluetooth_discovery_session.h"
(...skipping 12 matching lines...) Expand all
35 namespace device { 36 namespace device {
36 class BluetoothSocketThread; 37 class BluetoothSocketThread;
37 } // namespace device 38 } // namespace device
38 39
39 namespace bluez { 40 namespace bluez {
40 41
41 class BluetoothBlueZTest; 42 class BluetoothBlueZTest;
42 class BluetoothAdapterProfileBlueZ; 43 class BluetoothAdapterProfileBlueZ;
43 class BluetoothDeviceBlueZ; 44 class BluetoothDeviceBlueZ;
44 class BluetoothPairingBlueZ; 45 class BluetoothPairingBlueZ;
45 class BluetoothRemoteGattCharacteristicBlueZ;
46 class BluetoothRemoteGattDescriptorBlueZ;
47 class BluetoothRemoteGattServiceBlueZ;
48 46
49 // The BluetoothAdapterBlueZ class implements BluetoothAdapter for platforms 47 // The BluetoothAdapterBlueZ class implements BluetoothAdapter for platforms
50 // that use BlueZ. 48 // that use BlueZ.
51 // 49 //
52 // All methods are called from the dbus origin / UI thread and are generally 50 // All methods are called from the dbus origin / UI thread and are generally
53 // not assumed to be thread-safe. 51 // not assumed to be thread-safe.
54 // 52 //
55 // This class interacts with sockets using the BluetoothSocketThread to ensure 53 // This class interacts with sockets using the BluetoothSocketThread to ensure
56 // single-threaded calls, and posts tasks to the UI thread. 54 // single-threaded calls, and posts tasks to the UI thread.
57 // 55 //
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // Note: This should remain the last member so it'll be destroyed and 387 // Note: This should remain the last member so it'll be destroyed and
390 // invalidate its weak pointers before any other members are destroyed. 388 // invalidate its weak pointers before any other members are destroyed.
391 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; 389 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_;
392 390
393 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); 391 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ);
394 }; 392 };
395 393
396 } // namespace bluez 394 } // namespace bluez
397 395
398 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 396 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698