bluetooth: Reject getPrimaryService(s) if frame is not connected
First of three patches to reject promises if the frame is not connected or the frame disconnected while the promise was not fulfilled. Implements: 1. The ActiveAlgorithm set[1] as m_activeAlgorithms in BluetoothRemoteGATTServer 2. gattServer-connection-checking wrapper[2] as GetPrimaryServicesCallback in BluetoothRemoteGattServer.cpp 3. Connection check of query bluetooth cache[3] in getPrimaryServicesImpl. [1] https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattserver-activealgorithms-slot [2] https://webbluetoothcg.github.io/web-bluetooth/#connection-checking-wrapper [3] https://webbluetoothcg.github.io/web-bluetooth/#query-the-bluetooth-cache BUG=608538 Review-Url: https://codereview.chromium.org/2183903002 Cr-Commit-Position: refs/heads/master@{#408729}
Showing
Please register or sign in to comment