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( |