| 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_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "device/bluetooth/dbus/bluetooth_input_client.h" | 30 #include "device/bluetooth/dbus/bluetooth_input_client.h" |
| 31 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h" | 31 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h" |
| 32 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" | 32 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" |
| 33 | 33 |
| 34 namespace base { | 34 namespace base { |
| 35 class SequencedTaskRunner; | 35 class SequencedTaskRunner; |
| 36 class TimeDelta; | 36 class TimeDelta; |
| 37 } // namespace base | 37 } // namespace base |
| 38 | 38 |
| 39 namespace device { | 39 namespace device { |
| 40 class BluetoothDevice; |
| 40 class BluetoothSocketThread; | 41 class BluetoothSocketThread; |
| 41 class BluetoothTestBlueZ; | 42 class BluetoothTestBlueZ; |
| 42 } // namespace device | 43 } // namespace device |
| 43 | 44 |
| 44 namespace bluez { | 45 namespace bluez { |
| 45 | 46 |
| 46 class BluetoothBlueZTest; | 47 class BluetoothBlueZTest; |
| 47 class BluetoothAdapterProfileBlueZ; | 48 class BluetoothAdapterProfileBlueZ; |
| 48 class BluetoothDeviceBlueZ; | 49 class BluetoothDeviceBlueZ; |
| 49 class BluetoothLocalGattCharacteristicBlueZ; | 50 class BluetoothLocalGattCharacteristicBlueZ; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 bool IsPowered() const override; | 99 bool IsPowered() const override; |
| 99 void SetPowered(bool powered, | 100 void SetPowered(bool powered, |
| 100 const base::Closure& callback, | 101 const base::Closure& callback, |
| 101 const ErrorCallback& error_callback) override; | 102 const ErrorCallback& error_callback) override; |
| 102 bool IsDiscoverable() const override; | 103 bool IsDiscoverable() const override; |
| 103 void SetDiscoverable(bool discoverable, | 104 void SetDiscoverable(bool discoverable, |
| 104 const base::Closure& callback, | 105 const base::Closure& callback, |
| 105 const ErrorCallback& error_callback) override; | 106 const ErrorCallback& error_callback) override; |
| 106 uint32_t GetDiscoverableTimeout() const; | 107 uint32_t GetDiscoverableTimeout() const; |
| 107 bool IsDiscovering() const override; | 108 bool IsDiscovering() const override; |
| 109 std::unordered_map<device::BluetoothDevice*, device::BluetoothDevice::UUIDSet> |
| 110 RetrieveGattConnectedDevicesWithDiscoveryFilter( |
| 111 const device::BluetoothDiscoveryFilter& discovery_filter) override; |
| 108 void CreateRfcommService( | 112 void CreateRfcommService( |
| 109 const device::BluetoothUUID& uuid, | 113 const device::BluetoothUUID& uuid, |
| 110 const ServiceOptions& options, | 114 const ServiceOptions& options, |
| 111 const CreateServiceCallback& callback, | 115 const CreateServiceCallback& callback, |
| 112 const CreateServiceErrorCallback& error_callback) override; | 116 const CreateServiceErrorCallback& error_callback) override; |
| 113 void CreateL2capService( | 117 void CreateL2capService( |
| 114 const device::BluetoothUUID& uuid, | 118 const device::BluetoothUUID& uuid, |
| 115 const ServiceOptions& options, | 119 const ServiceOptions& options, |
| 116 const CreateServiceCallback& callback, | 120 const CreateServiceCallback& callback, |
| 117 const CreateServiceErrorCallback& error_callback) override; | 121 const CreateServiceErrorCallback& error_callback) override; |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 // Note: This should remain the last member so it'll be destroyed and | 494 // Note: This should remain the last member so it'll be destroyed and |
| 491 // invalidate its weak pointers before any other members are destroyed. | 495 // invalidate its weak pointers before any other members are destroyed. |
| 492 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; | 496 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; |
| 493 | 497 |
| 494 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); | 498 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); |
| 495 }; | 499 }; |
| 496 | 500 |
| 497 } // namespace bluez | 501 } // namespace bluez |
| 498 | 502 |
| 499 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ | 503 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ |
| OLD | NEW |