| Index: content/renderer/bluetooth/web_bluetooth_impl.h
|
| diff --git a/content/renderer/bluetooth/web_bluetooth_impl.h b/content/renderer/bluetooth/web_bluetooth_impl.h
|
| index 431a4e4ae004b9b71c9db060d756474c0bbbc14a..4d0221104ed49fbd572592ce22e7e242010fd053 100644
|
| --- a/content/renderer/bluetooth/web_bluetooth_impl.h
|
| +++ b/content/renderer/bluetooth/web_bluetooth_impl.h
|
| @@ -64,11 +64,13 @@ class CONTENT_EXPORT WebBluetoothImpl
|
| web_bluetooth.mojom */,
|
| const blink::WebString& characteristics_uuid,
|
| blink::WebBluetoothGetCharacteristicsCallbacks* callbacks) override;
|
| - void readValue(const blink::WebString& characteristic_instance_id,
|
| - blink::WebBluetoothReadValueCallbacks* callbacks) override;
|
| - void writeValue(const blink::WebString& characteristic_instance_id,
|
| - const blink::WebVector<uint8_t>& value,
|
| - blink::WebBluetoothWriteValueCallbacks*) override;
|
| + void characteristicReadValue(
|
| + const blink::WebString& characteristic_instance_id,
|
| + blink::WebBluetoothReadValueCallbacks* callbacks) override;
|
| + void characteristicWriteValue(
|
| + const blink::WebString& characteristic_instance_id,
|
| + const blink::WebVector<uint8_t>& value,
|
| + blink::WebBluetoothWriteValueCallbacks*) override;
|
| void startNotifications(
|
| const blink::WebString& characteristic_instance_id,
|
| blink::WebBluetoothNotificationsCallbacks*) override;
|
| @@ -81,6 +83,12 @@ class CONTENT_EXPORT WebBluetoothImpl
|
| void registerCharacteristicObject(
|
| const blink::WebString& characteristic_instance_id,
|
| blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override;
|
| + void getDescriptors(
|
| + const blink::WebString& characteristic_instance_id,
|
| + int32_t quantity /* Corresponds to WebBluetoothGATTQueryQuantity in
|
| + web_bluetooth.mojom */,
|
| + const blink::WebString& descriptor_uuid,
|
| + blink::WebBluetoothGetDescriptorsCallbacks* callbacks) override;
|
|
|
| private:
|
| struct GetCharacteristicsCallback;
|
| @@ -88,6 +96,7 @@ class CONTENT_EXPORT WebBluetoothImpl
|
| void RemoteCharacteristicValueChanged(
|
| const std::string& characteristic_instance_id,
|
| const std::vector<uint8_t>& value) override;
|
| +
|
| void GattServerDisconnected(const WebBluetoothDeviceId& device_id) override;
|
|
|
| // Callbacks for WebBluetoothService calls:
|
| @@ -126,7 +135,13 @@ class CONTENT_EXPORT WebBluetoothImpl
|
| blink::mojom::WebBluetoothResult result);
|
| void OnStopNotificationsComplete(
|
| std::unique_ptr<blink::WebBluetoothNotificationsCallbacks> callbacks);
|
| -
|
| + void OnGetDescriptorsComplete(
|
| + const blink::WebString& service_instance_id,
|
| + std::unique_ptr<blink::WebBluetoothGetDescriptorsCallbacks> callbacks,
|
| + blink::mojom::WebBluetoothResult result,
|
| + base::Optional<
|
| + std::vector<blink::mojom::WebBluetoothRemoteGATTDescriptorPtr>>
|
| + descriptors);
|
| void DispatchCharacteristicValueChanged(
|
| const std::string& characteristic_instance_id,
|
| const std::vector<uint8_t>& value);
|
|
|