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

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 2615323002: Move some functions from web_bluetooth_service_impl.cc to BluetoothDevice class (Closed)
Patch Set: move some functions from web_bluetooth_service_impl.cc to BluetoothDevice class Created 3 years, 11 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.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index 296449601cb9c683fa572e1031d664412323da78..bf145c9ad7e081dd9ab17361fa026c2991ca3188 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -31,6 +31,7 @@ namespace device {
class BluetoothAdapter;
class BluetoothGattConnection;
+class BluetoothRemoteGattCharacteristic;
class BluetoothSocket;
class BluetoothUUID;
@@ -555,6 +556,15 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice {
// Return associated BluetoothAdapter.
BluetoothAdapter* GetAdapter() { return adapter_; }
+ std::vector<BluetoothRemoteGattCharacteristic*> GetCharacteristicsByUUID(
+ const std::string& service_instance_id,
+ const BluetoothUUID& characteristic_uuid);
+
+ std::vector<BluetoothRemoteGattService*> GetPrimaryServicesByUUID(
scheib 2017/01/07 01:42:36 In Bluetooth concepts, the Services come before Ch
juncai 2017/01/09 19:29:19 Done.
+ const BluetoothUUID& service_uuid);
+
+ std::vector<BluetoothRemoteGattService*> GetPrimaryServices();
+
protected:
// BluetoothGattConnection is a friend to call Add/RemoveGattConnection.
friend BluetoothGattConnection;

Powered by Google App Engine
This is Rietveld 408576698