Chromium Code Reviews| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.h |
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.h |
| index d72aa6d393b95c2a27a60adb3836d05f989fe51b..5a525df3423d4e302b75da2b3904c7d8528edf5a 100644 |
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.h |
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.h |
| @@ -59,17 +59,11 @@ class BluetoothRemoteGATTServer |
| // Removes all ScriptPromiseResolvers from the set of Active Algorithms. |
| void ClearActiveAlgorithms() { m_activeAlgorithms.clear(); } |
| - // If gatt is connected then sets gatt.connected to false and disconnects. |
| - // This function only performs the necessary steps to ensure a device |
| - // disconnects therefore it should only be used when the object is being |
| - // garbage collected or the context is being destroyed. |
| - void DisconnectIfConnected(); |
| + // Performs necessary cleanup when a device disconnects. If |dispatchEvent| |
| + // is true, dispatch a gattserverdisconnected event. |
| + void CleanupDisconnectedDevice(bool dispatchEvent); |
|
scheib
2017/03/22 01:11:08
Let's cite the specification algorithm this method
juncai
2017/03/27 20:44:46
Done.
|
| - // Performs necessary cleanup when a device disconnects and fires |
| - // gattserverdisconnected event. |
| - void CleanupDisconnectedDeviceAndFireEvent(); |
| - |
| - void DispatchDisconnected(); |
| + void HandleClientConnectionError(); |
| // USING_PRE_FINALIZER interface. |
| // Called before the object gets garbage collected. |