Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2283)

Unified Diff: device/bluetooth/bluez/bluetooth_adapter_bluez.h

Issue 2353133005: Add the chrome.bluetoothLowEnergy.setAdvertisingInterval API. (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluez/bluetooth_adapter_bluez.h
diff --git a/device/bluetooth/bluez/bluetooth_adapter_bluez.h b/device/bluetooth/bluez/bluetooth_adapter_bluez.h
index ebd7370accdb1d8e191f1577b4883c9ae017ef3b..001c38b9316f6e978a785038bf20748651cdc5f3 100644
--- a/device/bluetooth/bluez/bluetooth_adapter_bluez.h
+++ b/device/bluetooth/bluez/bluetooth_adapter_bluez.h
@@ -34,6 +34,7 @@
namespace base {
class SequencedTaskRunner;
+class TimeDelta;
} // namespace base
namespace device {
@@ -123,7 +124,13 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterBlueZ
void RegisterAdvertisement(
std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data,
const CreateAdvertisementCallback& callback,
- const CreateAdvertisementErrorCallback& error_callback) override;
+ const AdvertisementErrorCallback& error_callback) override;
+
+ void SetAdvertisingInterval(
+ const base::TimeDelta& min,
+ const base::TimeDelta& max,
+ const base::Closure& callback,
+ const AdvertisementErrorCallback& error_callback) override;
device::BluetoothLocalGattService* GetGattService(
const std::string& identifier) const override;

Powered by Google App Engine
This is Rietveld 408576698