| 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> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "device/bluetooth/dbus/bluetooth_input_client.h" | 28 #include "device/bluetooth/dbus/bluetooth_input_client.h" |
| 29 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h" | 29 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h" |
| 30 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" | 30 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" |
| 31 | 31 |
| 32 namespace base { | 32 namespace base { |
| 33 class SequencedTaskRunner; | 33 class SequencedTaskRunner; |
| 34 } // namespace base | 34 } // namespace base |
| 35 | 35 |
| 36 namespace device { | 36 namespace device { |
| 37 class BluetoothSocketThread; | 37 class BluetoothSocketThread; |
| 38 class BluetoothTestBlueZ; |
| 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 BluetoothRemoteGattCharacteristicBlueZ; |
| 47 class BluetoothRemoteGattDescriptorBlueZ; | 48 class BluetoothRemoteGattDescriptorBlueZ; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 void RemovePairingDelegateInternal( | 156 void RemovePairingDelegateInternal( |
| 156 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; | 157 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; |
| 157 | 158 |
| 158 private: | 159 private: |
| 159 friend class BluetoothBlueZTest; | 160 friend class BluetoothBlueZTest; |
| 160 friend class BluetoothBlueZTest_Shutdown_Test; | 161 friend class BluetoothBlueZTest_Shutdown_Test; |
| 161 friend class BluetoothBlueZTest_Shutdown_OnStartDiscovery_Test; | 162 friend class BluetoothBlueZTest_Shutdown_OnStartDiscovery_Test; |
| 162 friend class BluetoothBlueZTest_Shutdown_OnStartDiscoveryError_Test; | 163 friend class BluetoothBlueZTest_Shutdown_OnStartDiscoveryError_Test; |
| 163 friend class BluetoothBlueZTest_Shutdown_OnStopDiscovery_Test; | 164 friend class BluetoothBlueZTest_Shutdown_OnStopDiscovery_Test; |
| 164 friend class BluetoothBlueZTest_Shutdown_OnStopDiscoveryError_Test; | 165 friend class BluetoothBlueZTest_Shutdown_OnStopDiscoveryError_Test; |
| 166 friend class device::BluetoothTestBlueZ; |
| 165 | 167 |
| 166 // typedef for callback parameters that are passed to AddDiscoverySession | 168 // typedef for callback parameters that are passed to AddDiscoverySession |
| 167 // and RemoveDiscoverySession. This is used to queue incoming requests while | 169 // and RemoveDiscoverySession. This is used to queue incoming requests while |
| 168 // a call to BlueZ is pending. | 170 // a call to BlueZ is pending. |
| 169 typedef std::tuple<device::BluetoothDiscoveryFilter*, | 171 typedef std::tuple<device::BluetoothDiscoveryFilter*, |
| 170 base::Closure, | 172 base::Closure, |
| 171 DiscoverySessionErrorCallback> DiscoveryParamTuple; | 173 DiscoverySessionErrorCallback> DiscoveryParamTuple; |
| 172 typedef std::queue<DiscoveryParamTuple> DiscoveryCallbackQueue; | 174 typedef std::queue<DiscoveryParamTuple> DiscoveryCallbackQueue; |
| 173 | 175 |
| 174 // Callback pair for the profile registration queue. | 176 // Callback pair for the profile registration queue. |
| (...skipping 215 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 | 392 // Note: This should remain the last member so it'll be destroyed and |
| 391 // invalidate its weak pointers before any other members are destroyed. | 393 // invalidate its weak pointers before any other members are destroyed. |
| 392 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; | 394 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; |
| 393 | 395 |
| 394 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); | 396 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); |
| 395 }; | 397 }; |
| 396 | 398 |
| 397 } // namespace bluez | 399 } // namespace bluez |
| 398 | 400 |
| 399 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ | 401 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ |
| OLD | NEW |