| 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_DEVICE_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 const device::BluetoothUUID& uuid, | 76 const device::BluetoothUUID& uuid, |
| 77 const ConnectToServiceCallback& callback, | 77 const ConnectToServiceCallback& callback, |
| 78 const ConnectToServiceErrorCallback& error_callback) override; | 78 const ConnectToServiceErrorCallback& error_callback) override; |
| 79 void ConnectToServiceInsecurely( | 79 void ConnectToServiceInsecurely( |
| 80 const device::BluetoothUUID& uuid, | 80 const device::BluetoothUUID& uuid, |
| 81 const ConnectToServiceCallback& callback, | 81 const ConnectToServiceCallback& callback, |
| 82 const ConnectToServiceErrorCallback& error_callback) override; | 82 const ConnectToServiceErrorCallback& error_callback) override; |
| 83 void CreateGattConnection( | 83 void CreateGattConnection( |
| 84 const GattConnectionCallback& callback, | 84 const GattConnectionCallback& callback, |
| 85 const ConnectErrorCallback& error_callback) override; | 85 const ConnectErrorCallback& error_callback) override; |
| 86 void SetGattServicesDiscoveryComplete(bool complete) override; |
| 87 bool IsGattServicesDiscoveryComplete() const override; |
| 86 void Pair(device::BluetoothDevice::PairingDelegate* pairing_delegate, | 88 void Pair(device::BluetoothDevice::PairingDelegate* pairing_delegate, |
| 87 const base::Closure& callback, | 89 const base::Closure& callback, |
| 88 const ConnectErrorCallback& error_callback) override; | 90 const ConnectErrorCallback& error_callback) override; |
| 89 | 91 |
| 90 // Creates a pairing object with the given delegate |pairing_delegate| and | 92 // Creates a pairing object with the given delegate |pairing_delegate| and |
| 91 // establishes it as the pairing context for this device. All pairing-related | 93 // establishes it as the pairing context for this device. All pairing-related |
| 92 // method calls will be forwarded to this object until it is released. | 94 // method calls will be forwarded to this object until it is released. |
| 93 BluetoothPairingBlueZ* BeginPairing( | 95 BluetoothPairingBlueZ* BeginPairing( |
| 94 BluetoothDevice::PairingDelegate* pairing_delegate); | 96 BluetoothDevice::PairingDelegate* pairing_delegate); |
| 95 | 97 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // Note: This should remain the last member so it'll be destroyed and | 214 // Note: This should remain the last member so it'll be destroyed and |
| 213 // invalidate its weak pointers before any other members are destroyed. | 215 // invalidate its weak pointers before any other members are destroyed. |
| 214 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; | 216 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; |
| 215 | 217 |
| 216 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); | 218 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); |
| 217 }; | 219 }; |
| 218 | 220 |
| 219 } // namespace bluez | 221 } // namespace bluez |
| 220 | 222 |
| 221 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ | 223 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ |
| OLD | NEW |