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 8ea114b860bce2742aeded97b9ed060650aa7673..4c4cfc5de95a92cb744b39a5dda6ce494998feed 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 |
@@ -111,6 +111,15 @@ class BluetoothLowEnergyEventRouter |
const base::Closure& callback, |
const base::Closure& error_callback); |
+ // Sends a request to write the value of the characteristic with instance ID |
+ // |instance_id|, with value |value|. Returns false, if no such characteristic |
+ // is known. Otherwise, returns true and invokes |callback| on success and |
+ // |error_callback| on failure. |
+ bool WriteCharacteristicValue(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); |