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