Index: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h |
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h |
index 86631aae8b0c56da1f2ac73c9697e190408cb0d1..8b606befa165fc5d476171dc9b9089b48c7f9d14 100644 |
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h |
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h |
@@ -148,6 +148,15 @@ class BluetoothLowEnergyEventRouter |
const base::Closure& callback, |
const base::Closure& error_callback); |
+ // Sends a request to write the value of the descriptor with instance ID |
+ // |instance_id|, with value |value|. Returns false, if no such descriptor |
+ // is known. Otherwise, returns true and invokes |callback| on success and |
+ // |error_callback| on failure. |
+ bool WriteDescriptorValue(const std::string& instance_id, |
+ const std::vector<uint8>& value, |
+ const base::Closure& callback, |
+ const base::Closure& error_callback); |
+ |
// Initializes the adapter for testing. Used by unit tests only. |
void SetAdapterForTesting(device::BluetoothAdapter* adapter); |