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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h

Issue 293153002: chrome.bluetoothLowEnergy: Implement writeDescriptorValue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 7 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: 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);

Powered by Google App Engine
This is Rietveld 408576698