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

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: 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
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..daa8d1d66e555783d5d35170bf5d8e352b7fb54d 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);
+ // Check whether GATT service with |uuid| and |attribute_handle| has already
scheib 2016/02/09 23:24:57 Descriptive, not imperative. https://google.github
gogerald1 2016/02/10 18:00:56 Done.
+ // been discovered.
+ bool IsGattServiceDiscovered(BluetoothUUID& uuid, uint16_t attribute_handle);
+
+ // Check whether |service| still exist on device according to newly discovered
scheib 2016/02/09 23:24:57 ditto
gogerald1 2016/02/10 18:00:56 Done.
+ // |service_state|.
+ bool IsGattServiceExist(
scheib 2016/02/09 23:24:57 DoesGattServiceExist
gogerald1 2016/02/10 18:00:56 Done.
+ 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_;

Powered by Google App Engine
This is Rietveld 408576698