| 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 6579b4b387eacc0152e1b42e31aa61e17d1c22b5..fea7f5bc014a74952270643664e1f902a5dfb318 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
|
| @@ -103,6 +103,15 @@ class BluetoothLowEnergyEventRouter
|
| const std::string& instance_id,
|
| api::bluetooth_low_energy::Characteristic* out_characteristic) const;
|
|
|
| + // 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);
|
|
|
|
|