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

Unified Diff: device/bluetooth/bluetooth_device_chromeos.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: fixes 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_chromeos.h
diff --git a/device/bluetooth/bluetooth_device_chromeos.h b/device/bluetooth/bluetooth_device_chromeos.h
index 41327899e4545975e962c974cdb462c125e4b00f..6608b13e09ca32a50566a047f18c384dc1050164 100644
--- a/device/bluetooth/bluetooth_device_chromeos.h
+++ b/device/bluetooth/bluetooth_device_chromeos.h
@@ -146,6 +146,14 @@ class BluetoothDeviceChromeOS
void SetTrusted();
void OnSetTrusted(bool success);
+ // Internal method to enable the connection monitor when connecting to this
+ // device. The connection monitor mode tracks the connection RSSI and TX
+ // power of the connection.
+ void StartConnectionMonitor();
+ void OnStartConnectionMonitor();
+ void OnStartConnectionMonitorError(const std::string& error_name,
+ const std::string& error_message);
+
// Called by dbus:: on completion of the D-Bus method call to disconnect the
// device.
void OnDisconnect(const base::Closure& callback);
@@ -185,6 +193,10 @@ class BluetoothDeviceChromeOS
// Number of ongoing calls to Connect().
int num_connecting_calls_;
+ // True if the connection monitor has been started, tracking the connection
+ // RSSI and TX power.
+ bool connection_monitor_started_;
+
// UI thread task runner and socket thread object used to create sockets.
scoped_refptr<base::SequencedTaskRunner> ui_task_runner_;
scoped_refptr<device::BluetoothSocketThread> socket_thread_;

Powered by Google App Engine
This is Rietveld 408576698