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

Side by Side Diff: device/bluetooth/bluez/bluetooth_device_bluez.h

Issue 1862093002: bluetooth: replace GattServices D-Bus property with ServicesResolved (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests Created 4 years, 7 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_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
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
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_
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_adapter_bluez.cc ('k') | device/bluetooth/bluez/bluetooth_device_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698