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 277a5fb575e75016019aa7f89dbd5c5cd478f9a6..9743dd21206aea77f9b578cee3fc38328bd575c0 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 |
@@ -5,6 +5,7 @@ |
#ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_API_H_ |
#define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_API_H_ |
+#include <memory> |
#include <string> |
#include "base/macros.h" |
@@ -464,9 +465,6 @@ class BluetoothLowEnergyRegisterAdvertisementFunction |
private: |
void SuccessCallback(scoped_refptr<device::BluetoothAdvertisement>); |
void ErrorCallback(device::BluetoothAdvertisement::ErrorCode status); |
- |
- // The instance ID of the requested descriptor. |
- std::string instance_id_; |
}; |
class BluetoothLowEnergyUnregisterAdvertisementFunction |
@@ -485,9 +483,25 @@ class BluetoothLowEnergyUnregisterAdvertisementFunction |
void SuccessCallback(int advertisement_id); |
void ErrorCallback(int advertisement_id, |
device::BluetoothAdvertisement::ErrorCode status); |
+}; |
- // The instance ID of the requested descriptor. |
- std::string instance_id_; |
+class BluetoothLowEnergySetAdvertisingIntervalFunction |
+ : public BLEPeripheralExtensionFunction< |
+ extensions::api::bluetooth_low_energy::SetAdvertisingInterval:: |
+ Params> { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION("bluetoothLowEnergy.setAdvertisingInterval", |
+ BLUETOOTHLOWENERGY_SETADVERTISINGINTERVAL); |
+ |
+ protected: |
+ ~BluetoothLowEnergySetAdvertisingIntervalFunction() override {} |
+ |
+ // BluetoothLowEnergyExtensionFunctionDeprecated override. |
+ void DoWork() override; |
+ |
+ private: |
+ void SuccessCallback(); |
+ void ErrorCallback(device::BluetoothAdvertisement::ErrorCode status); |
}; |
class BluetoothLowEnergyCreateServiceFunction |