Index: device/bluetooth/bluetooth_adapter_mac.h |
diff --git a/device/bluetooth/bluetooth_adapter_mac.h b/device/bluetooth/bluetooth_adapter_mac.h |
index 30857c728bf26b5d1dd177faca79fc555d8c4aba..bd189ece26bf6fff7588bddd0dc6557a47fef34e 100644 |
--- a/device/bluetooth/bluetooth_adapter_mac.h |
+++ b/device/bluetooth/bluetooth_adapter_mac.h |
@@ -12,6 +12,12 @@ |
#include "base/observer_list.h" |
#include "device/bluetooth/bluetooth_adapter.h" |
+#ifdef __OBJC__ |
+@class NSArray; |
+#else |
+class NSArray; |
+#endif |
+ |
namespace base { |
class SequencedTaskRunner; |
@@ -59,6 +65,16 @@ class BluetoothAdapterMac : public BluetoothAdapter { |
scoped_refptr<base::SequencedTaskRunner> ui_task_runner); |
void PollAdapter(); |
+ // Updates |devices_| to be consistent with |devices| and notifies observers |
+ // of the changes. |
+ // |devices| is an array of pointers to |IOBluetoothDevice| objects. |
+ void UpdateDevices(NSArray* devices); |
Mark Mentovai
2013/03/20 19:01:16
I like keeping the naming consistent. The new meth
youngki
2013/03/20 20:30:50
Actually I am going to use this method to add disc
|
+ |
+ // Remove any unpaired devices (i.e. devices that are not in |paired_devices|) |
+ // from |devices_|. |
+ // |devices| is an array of pointers to paired |IOBluetoothDevice| objects. |
+ void RemoveUnpairedDevices(NSArray* paired_devices); |
+ |
bool powered_; |
scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |