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

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 273953002: Hook up RSSI and host transmit power Bluetooth device properties for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Start connection monitor when connected through chrome.bluetooth API 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: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index 7dce44f5bcdda1736bfd43db92ed24a209f3f956..d90f4ae96015bce72f938d229cd045fe30ad99ee 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -404,6 +404,17 @@ class BluetoothDevice {
const base::Closure& callback,
const ErrorCallback& error_callback) = 0;
+ // Starts monitoring the connection properties, RSSI and TX power. These
+ // properties will be tracked, and updated when their values change. Exactly
+ // one of |callback| or |error_callback| will be run.
+ virtual void StartConnectionMonitor(const base::Closure& callback,
+ const ErrorCallback& error_callback) = 0;
+
+ // Stops monitoring the connection properties. Exactly one of |callback| or
+ // |error_callback| will be run.
+ virtual void StopConnectionMonitor(const base::Closure& callback,
+ const ErrorCallback& error_callback) = 0;
+
keybuk 2014/05/09 22:37:21 NAK... we've been burned by these Start/Stop APIs
Tim Song 2014/05/09 23:10:43 Can I just have StartConnectionMonitor for now (no
// Returns the list of discovered GATT services.
virtual std::vector<BluetoothGattService*> GetGattServices() const;

Powered by Google App Engine
This is Rietveld 408576698