Index: content/public/browser/bluetooth_chooser.h |
diff --git a/content/public/browser/bluetooth_chooser.h b/content/public/browser/bluetooth_chooser.h |
index aec3c2f19415c7606f2c6fe578d36aca43334318..6cc4f4797e4d68938de3612817405ddf1fb1a2b7 100644 |
--- a/content/public/browser/bluetooth_chooser.h |
+++ b/content/public/browser/bluetooth_chooser.h |
@@ -68,9 +68,15 @@ class CONTENT_EXPORT BluetoothChooser { |
enum class DiscoveryState { FAILED_TO_START, DISCOVERING, IDLE }; |
virtual void ShowDiscoveryState(DiscoveryState state) {} |
- // Shows a new device in the chooser. |
- virtual void AddDevice(const std::string& device_id, |
- const base::string16& device_name) {} |
+ // Adds a new device to the chooser or updates the information of an existing |
+ // device. Passing nullptr for |rssi| means that the device doesn't not have |
+ // RSSI which happens when the device is already connected. |
+ virtual void AddOrUpdateDevice(const std::string& device_id, |
+ bool should_update_name, |
+ const base::string16& device_name, |
+ bool is_gatt_connected, |
+ bool is_paired, |
+ int8_t* rssi) {} |
juncai
2016/08/09 19:30:26
nit: maybe add const?
const int8_t*
ortuno
2016/08/09 19:52:48
Done.
|
// Tells the chooser that a device is no longer available. The chooser should |
// not call DeviceSelected() for a device that's been removed. |