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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.h

Issue 2752663002: Remove RemoteServerDisconnect() from web_bluetooth.mojom (Closed)
Patch Set: address scheib@'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: 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.

Powered by Google App Engine
This is Rietveld 408576698