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

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 2615323002: Move some functions from web_bluetooth_service_impl.cc to BluetoothDevice class (Closed)
Patch Set: merge master 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
« no previous file with comments | « content/browser/bluetooth/web_bluetooth_service_impl.cc ('k') | device/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index 296449601cb9c683fa572e1031d664412323da78..135aad616ae2e62398433d46ddcb2731be62673e 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<BluetoothRemoteGattService*> GetPrimaryServices();
+
+ std::vector<BluetoothRemoteGattService*> GetPrimaryServicesByUUID(
+ const BluetoothUUID& service_uuid);
+
+ std::vector<BluetoothRemoteGattCharacteristic*> GetCharacteristicsByUUID(
+ const std::string& service_instance_id,
+ const BluetoothUUID& characteristic_uuid);
+
protected:
// BluetoothGattConnection is a friend to call Add/RemoveGattConnection.
friend BluetoothGattConnection;
« no previous file with comments | « content/browser/bluetooth/web_bluetooth_service_impl.cc ('k') | device/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698