| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
|
| index 1db9949905205f79d758e9f49ce6121aa12bdf6f..fc7d04b6bfc3a665917543a97d2f643ed2f22f38 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
|
| @@ -19,11 +19,13 @@ namespace blink {
|
|
|
| class BluetoothAttributeInstanceMap;
|
| class BluetoothRemoteGATTCharacteristic;
|
| +class BluetoothRemoteGATTDescriptor;
|
| class BluetoothRemoteGATTServer;
|
| class BluetoothRemoteGATTService;
|
| class ScriptPromiseResolver;
|
|
|
| struct WebBluetoothRemoteGATTCharacteristicInit;
|
| +struct WebBluetoothRemoteGATTDescriptorInit;
|
| struct WebBluetoothRemoteGATTService;
|
|
|
| // BluetoothDevice represents a physical bluetooth device in the DOM. See IDL.
|
| @@ -58,6 +60,11 @@ class BluetoothDevice final : public EventTargetWithInlineData,
|
| BluetoothRemoteGATTService*);
|
| bool isValidCharacteristic(const String& characteristicInstanceId);
|
|
|
| + BluetoothRemoteGATTDescriptor* getOrCreateBluetoothRemoteGATTDescriptor(
|
| + std::unique_ptr<WebBluetoothRemoteGATTDescriptorInit>,
|
| + BluetoothRemoteGATTCharacteristic*);
|
| + bool isValidDescriptor(const String& descriptorInstanceId);
|
| +
|
| // We should disconnect from the device in all of the following cases:
|
| // 1. When the object gets GarbageCollected e.g. it went out of scope.
|
| // dispose() is called in this case.
|
|
|