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; |