| Index: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
|
| diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
|
| index 4fbd2da5b21fe9491e1d132e5167faeeb1fe548a..277a5fb575e75016019aa7f89dbd5c5cd478f9a6 100644
|
| --- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
|
| +++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
|
| @@ -39,6 +39,12 @@ struct Params;
|
| namespace UnregisterService {
|
| struct Params;
|
| }
|
| +namespace NotifyCharacteristicValueChanged {
|
| +struct Params;
|
| +}
|
| +namespace RemoveService {
|
| +struct Params;
|
| +}
|
| namespace SendRequestResponse {
|
| struct Params;
|
| }
|
| @@ -512,6 +518,22 @@ class BluetoothLowEnergyCreateCharacteristicFunction
|
| void DoWork() override;
|
| };
|
|
|
| +class BluetoothLowEnergyNotifyCharacteristicValueChangedFunction
|
| + : public BLEPeripheralExtensionFunction<
|
| + extensions::api::bluetooth_low_energy::
|
| + NotifyCharacteristicValueChanged::Params> {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION(
|
| + "bluetoothLowEnergy.notifyCharacteristicValueChanged",
|
| + BLUETOOTHLOWENERGY_NOTIFYCHARACTERISTICVALUECHANGED);
|
| +
|
| + protected:
|
| + ~BluetoothLowEnergyNotifyCharacteristicValueChangedFunction() override {}
|
| +
|
| + // BluetoothLowEnergyPeripheralExtensionFunction override.
|
| + void DoWork() override;
|
| +};
|
| +
|
| class BluetoothLowEnergyCreateDescriptorFunction
|
| : public BLEPeripheralExtensionFunction<
|
| extensions::api::bluetooth_low_energy::CreateDescriptor::Params> {
|
| @@ -564,6 +586,20 @@ class BluetoothLowEnergyUnregisterServiceFunction
|
| void ErrorCallback(BluetoothLowEnergyEventRouter::Status status);
|
| };
|
|
|
| +class BluetoothLowEnergyRemoveServiceFunction
|
| + : public BLEPeripheralExtensionFunction<
|
| + extensions::api::bluetooth_low_energy::RemoveService::Params> {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("bluetoothLowEnergy.removeService",
|
| + BLUETOOTHLOWENERGY_REMOVESERVICE);
|
| +
|
| + protected:
|
| + ~BluetoothLowEnergyRemoveServiceFunction() override {}
|
| +
|
| + // BluetoothLowEnergyPeripheralExtensionFunction override.
|
| + void DoWork() override;
|
| +};
|
| +
|
| class BluetoothLowEnergySendRequestResponseFunction
|
| : public BLEPeripheralExtensionFunction<
|
| extensions::api::bluetooth_low_energy::SendRequestResponse::Params> {
|
|
|