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

Unified Diff: device/bluetooth/dbus/fake_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/fake_bluetooth_le_advertising_manager_client.h
diff --git a/device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.h b/device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.h
index ae0d914115b251e349132dd2da6fa5f438a3efc1..bd7826f42d263846c40053f98a994e369ade7f8f 100644
--- a/device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.h
+++ b/device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.h
@@ -47,6 +47,12 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothLEAdvertisingManagerClient
const base::Closure& callback,
const ErrorCallback& error_callback) override;
+ 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) override;
+
// Register, unregister and retrieve pointers to profile server providers.
void RegisterAdvertisementServiceProvider(
FakeBluetoothLEAdvertisementServiceProvider* service_provider);
@@ -55,9 +61,6 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothLEAdvertisingManagerClient
FakeBluetoothLEAdvertisementServiceProvider* GetAdvertisementServiceProvider(
const std::string& uuid);
- // Advertising manager path that we simulate.
- static const char kAdvertisingManagerPath[];
-
private:
// Map of a D-Bus object path to the FakeBluetoothAdvertisementServiceProvider
// registered for it; maintained by RegisterAdvertisementServiceProvider() and

Powered by Google App Engine
This is Rietveld 408576698