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

Unified Diff: device/bluetooth/bluetooth_device_win.h

Issue 1681853003: Add BluetoothRemoteGattServiceWin to BluetoothDeviceWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add PlatformSupportsLowEnergy check in the unittests Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_device_unittest.cc ('k') | device/bluetooth/bluetooth_device_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_win.h
diff --git a/device/bluetooth/bluetooth_device_win.h b/device/bluetooth/bluetooth_device_win.h
index cd2106a49d736bc454d4c2098dc7377c778daa7e..6166032943635216f3dc08410a417602f20a6a2c 100644
--- a/device/bluetooth/bluetooth_device_win.h
+++ b/device/bluetooth/bluetooth_device_win.h
@@ -107,6 +107,22 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceWin : public BluetoothDevice {
// Updates the services with services stored in |device_state|.
void UpdateServices(const BluetoothTaskManagerWin::DeviceState& device_state);
+ // Checks if GATT service with |uuid| and |attribute_handle| has already been
+ // discovered.
+ bool IsGattServiceDiscovered(BluetoothUUID& uuid, uint16_t attribute_handle);
+
+ // Checks if |service| still exist on device according to newly discovered
+ // |service_state|.
+ bool DoesGattServiceExist(
+ const ScopedVector<BluetoothTaskManagerWin::ServiceRecordState>&
+ service_state,
+ BluetoothGattService* service);
+
+ // Updates the GATT services with the services stored in |service_state|.
+ void UpdateGattServices(
+ const ScopedVector<BluetoothTaskManagerWin::ServiceRecordState>&
+ service_state);
+
scoped_refptr<base::SequencedTaskRunner> ui_task_runner_;
scoped_refptr<BluetoothSocketThread> socket_thread_;
net::NetLog* net_log_;
« no previous file with comments | « device/bluetooth/bluetooth_device_unittest.cc ('k') | device/bluetooth/bluetooth_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698