| Index: extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h
|
| diff --git a/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h b/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h
|
| index b56d3bfd055301432f683cc5b4a21905300b4e4c..26c3303df356965b057e2a957f0b9dd999754200 100644
|
| --- a/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h
|
| +++ b/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h
|
| @@ -438,6 +438,7 @@ class BluetoothLowEnergyAdvertisementFunction
|
| int AddAdvertisement(BluetoothApiAdvertisement* advertisement);
|
| BluetoothApiAdvertisement* GetAdvertisement(int advertisement_id);
|
| void RemoveAdvertisement(int advertisement_id);
|
| + const base::hash_set<int>* GetAdvertisementIds();
|
|
|
| // ExtensionFunction override.
|
| bool RunAsync() override;
|
| @@ -485,6 +486,23 @@ class BluetoothLowEnergyUnregisterAdvertisementFunction
|
| device::BluetoothAdvertisement::ErrorCode status);
|
| };
|
|
|
| +class BluetoothLowEnergyResetAdvertisingFunction
|
| + : public BluetoothLowEnergyAdvertisementFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("bluetoothLowEnergy.resetAdvertising",
|
| + BLUETOOTHLOWENERGY_RESETADVERTISING);
|
| +
|
| + protected:
|
| + ~BluetoothLowEnergyResetAdvertisingFunction() override {}
|
| +
|
| + // BluetoothLowEnergyExtensionFunctionDeprecated override.
|
| + bool DoWork() override;
|
| +
|
| + private:
|
| + void SuccessCallback();
|
| + void ErrorCallback(device::BluetoothAdvertisement::ErrorCode status);
|
| +};
|
| +
|
| class BluetoothLowEnergySetAdvertisingIntervalFunction
|
| : public BLEPeripheralExtensionFunction<
|
| extensions::api::bluetooth_low_energy::SetAdvertisingInterval::
|
|
|