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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.h

Issue 341433004: [Bluetooth] Improve the adapter's awareness of connected devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Net TODO delta: +1 Created 6 years, 6 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
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_mac.mm » ('j') | device/bluetooth/bluetooth_adapter_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_mac.h
diff --git a/device/bluetooth/bluetooth_adapter_mac.h b/device/bluetooth/bluetooth_adapter_mac.h
index 02a6e8a7f04b84b4d32de025f79a1baa8c986aec..7040932db28f06826a64706b14fd7c6cf81a9849 100644
--- a/device/bluetooth/bluetooth_adapter_mac.h
+++ b/device/bluetooth/bluetooth_adapter_mac.h
@@ -75,6 +75,9 @@ class BluetoothAdapterMac : public BluetoothAdapter,
virtual void DiscoveryStopped(BluetoothDiscoveryManagerMac* manager,
bool unexpected) OVERRIDE;
+ // Registers that a new |device| has connected to the local host.
+ void DeviceConnected(IOBluetoothDevice* device);
+
protected:
// BluetoothAdapter:
virtual void RemovePairingDelegateInternal(
@@ -98,8 +101,10 @@ class BluetoothAdapterMac : public BluetoothAdapter,
void InitForTest(scoped_refptr<base::SequencedTaskRunner> ui_task_runner);
void PollAdapter();
- // Updates |devices_| to be consistent with |devices|.
- void UpdateDevices(NSArray* devices);
+ // Updates |devices_| to include the currently paired devices, as well as any
+ // connected, but unpaired, devices. Notifies observers if any previously
+ // paired or connected devices are no longer present.
+ void UpdateDevices();
std::string address_;
std::string name_;
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_mac.mm » ('j') | device/bluetooth/bluetooth_adapter_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698