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

Unified Diff: device/bluetooth/dbus/bluetooth_le_advertising_manager_client.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/dbus/bluetooth_le_advertising_manager_client.h
diff --git a/device/bluetooth/dbus/bluetooth_le_advertising_manager_client.h b/device/bluetooth/dbus/bluetooth_le_advertising_manager_client.h
index 33b66a5ab5d0d64de63aa1c8aa948b62153dadc1..4a338ada7254657f0ae4128d29f20eaad4cebcff 100644
--- a/device/bluetooth/dbus/bluetooth_le_advertising_manager_client.h
+++ b/device/bluetooth/dbus/bluetooth_le_advertising_manager_client.h
@@ -5,6 +5,7 @@
#ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_
#define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_
+#include <cstdint>
#include <memory>
#include <string>
#include <vector>
@@ -67,6 +68,14 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLEAdvertisingManagerClient
const base::Closure& callback,
const ErrorCallback& error_callback) = 0;
+ // Set's the advertising interval.
+ virtual void SetAdvertisingInterval(
+ const dbus::ObjectPath& manager_object_path,
+ uint16_t min_interval_ms,
+ uint16_t max_interval_ms,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) = 0;
+
// Creates the instance.
static BluetoothLEAdvertisingManagerClient* Create();

Powered by Google App Engine
This is Rietveld 408576698