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

Unified Diff: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom

Issue 1902153003: bluetooth: Move connect/disconnect to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-connection-tests
Patch Set: Fix gypi Created 4 years, 8 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/test/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
diff --git a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
index 469e6b3d19a6cf0943951cf8b1094ebb5fd46a0d..6818f9bc9526d40203e6cbe6a716c22eb1066d37 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
+++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
@@ -97,6 +97,16 @@ interface WebBluetoothService {
// a device disconnects.
SetClient(associated WebBluetoothServiceClient client);
+ // Creates a GATT Connection to a Bluetooth Device with |device_id| if a
+ // connection to the device didn't exist already. If a GATT connection existed
+ // already then this function increases the ref count to keep that connection
+ // alive.
+ RemoteServerConnect(string device_id) => (WebBluetoothError error);
+
+ // If a GATT connection exists for Device with |device_id| then decreases
+ // the ref count for that connection.
+ RemoteServerDisconnect(string device_id);
+
// Returns the first GATT Service with |service_uuid| of a Bluetooth Device
// with |device_id|.
RemoteServerGetPrimaryService(
« no previous file with comments | « content/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698