diff options
author | youngki@chromium.org <youngki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-24 00:01:47 +0000 |
---|---|---|
committer | youngki@chromium.org <youngki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-24 00:01:47 +0000 |
commit | b9fc51703a7e4a141567df70d8011b43bb33165c (patch) | |
tree | 5d5f5b6761f01d31c13e421c218ea8636abf64ca /device/bluetooth/bluetooth_task_manager_win.h | |
parent | 618e2afdfcbe1b0307845097c073a708bdb5f98f (diff) | |
download | chromium_src-b9fc51703a7e4a141567df70d8011b43bb33165c.zip chromium_src-b9fc51703a7e4a141567df70d8011b43bb33165c.tar.gz chromium_src-b9fc51703a7e4a141567df70d8011b43bb33165c.tar.bz2 |
Simplified BluetoothAdapterWin.
I removed the unnecessary logic of updating |devices_| and calling DeviceChanged() and DeviceRemoved(), which are not used in Windows platform.
I also added DevicesUpdated(), which updates |devices_| with paired/connected/remembered devices, and DevicesDiscovered() is used only for "discovered" devices during discovery.
BUG=229636
Review URL: https://chromiumcodereview.appspot.com/14273013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195948 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/bluetooth/bluetooth_task_manager_win.h')
-rw-r--r-- | device/bluetooth/bluetooth_task_manager_win.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_task_manager_win.h b/device/bluetooth/bluetooth_task_manager_win.h index a207cc2..2c787d6 100644 --- a/device/bluetooth/bluetooth_task_manager_win.h +++ b/device/bluetooth/bluetooth_task_manager_win.h @@ -63,6 +63,7 @@ class BluetoothTaskManagerWin virtual void AdapterStateChanged(const AdapterState& state) {} virtual void DiscoveryStarted(bool success) {} virtual void DiscoveryStopped() {} + virtual void DevicesUpdated(const ScopedVector<DeviceState>& devices) {} virtual void DevicesDiscovered(const ScopedVector<DeviceState>& devices) {} }; @@ -97,6 +98,7 @@ class BluetoothTaskManagerWin void OnAdapterStateChanged(const AdapterState* state); void OnDiscoveryStarted(bool success); void OnDiscoveryStopped(); + void OnDevicesUpdated(const ScopedVector<DeviceState>* devices); void OnDevicesDiscovered(const ScopedVector<DeviceState>* devices); // Called on BluetoothTaskRunner. |