Chromium Code Reviews| 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. |
|
tbarzic
2017/06/27 19:04:58
can we switch these to non-deprecated version of b
Sonny Sasaka
2017/06/27 22:03:14
Doing this will probably need to change some other
|
| + bool DoWork() override; |
| + |
| + private: |
| + void SuccessCallback(); |
| + void ErrorCallback(device::BluetoothAdvertisement::ErrorCode status); |
| +}; |
| + |
| class BluetoothLowEnergySetAdvertisingIntervalFunction |
| : public BLEPeripheralExtensionFunction< |
| extensions::api::bluetooth_low_energy::SetAdvertisingInterval:: |