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

Unified Diff: content/browser/bluetooth/web_bluetooth_service_impl.h

Issue 2752663002: Remove RemoteServerDisconnect() from web_bluetooth.mojom (Closed)
Patch Set: address ortuno@'s comments Created 3 years, 9 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: content/browser/bluetooth/web_bluetooth_service_impl.h
diff --git a/content/browser/bluetooth/web_bluetooth_service_impl.h b/content/browser/bluetooth/web_bluetooth_service_impl.h
index 6e5e164b1684872e6f03e1f6741d40132cc07654..574f2ed5274d6a18a674f8e7281d492f5cce6ed2 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.h
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.h
@@ -104,7 +104,6 @@ class CONTENT_EXPORT WebBluetoothServiceImpl
const WebBluetoothDeviceId& device_id,
blink::mojom::WebBluetoothServerClientAssociatedPtrInfo client,
const RemoteServerConnectCallback& callback) override;
- void RemoteServerDisconnect(const WebBluetoothDeviceId& device_id) override;
void RemoteServerGetPrimaryServices(
const WebBluetoothDeviceId& device_id,
blink::mojom::WebBluetoothGATTQueryQuantity quantity,
@@ -147,6 +146,13 @@ class CONTENT_EXPORT WebBluetoothServiceImpl
const RequestDeviceCallback& callback,
device::BluetoothAdapter* adapter);
+ // Renderer has closed the pipe because it no longer needs a connection
+ // to this device. Because:
+ // 1. Content script code has called disconnect()
+ // 2. The actual device disconnected, WebBluetoothServiceImpl informed the
+ // renderer, and renderer reacted.
+ void OnGATTServerClientDisconnection(const WebBluetoothDeviceId& device_id);
+
// Should only be run after the services have been discovered for
// |device_address|.
void RemoteServerGetPrimaryServicesImpl(

Powered by Google App Engine
This is Rietveld 408576698