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

Unified Diff: device/bluetooth/bluetooth_adapter_win.h

Issue 14273013: Simplified BluetoothAdapterWin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with Head Created 7 years, 8 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_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_win.h
diff --git a/device/bluetooth/bluetooth_adapter_win.h b/device/bluetooth/bluetooth_adapter_win.h
index 0265624dd997a6037a8ef93085f95c5f3335dfd6..9b0ac4aaf13611a04abcf56524c168eb3fd7ecf6 100644
--- a/device/bluetooth/bluetooth_adapter_win.h
+++ b/device/bluetooth/bluetooth_adapter_win.h
@@ -9,6 +9,7 @@
#include <utility>
#include <vector>
+#include "base/hash_tables.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
@@ -66,6 +67,10 @@ class BluetoothAdapterWin : public BluetoothAdapter,
const ScopedVector<BluetoothTaskManagerWin::DeviceState>& devices)
OVERRIDE;
+ virtual void DevicesUpdated(
+ const ScopedVector<BluetoothTaskManagerWin::DeviceState>& devices)
+ OVERRIDE;
+
private:
friend class BluetoothAdapterFactory;
friend class BluetoothAdapterWinTest;
@@ -94,6 +99,7 @@ class BluetoothAdapterWin : public BluetoothAdapter,
bool initialized_;
bool powered_;
DiscoveryStatus discovery_status_;
+ base::hash_set<std::string> discovered_devices_;
std::vector<std::pair<base::Closure, ErrorCallback> >
on_start_discovery_callbacks_;
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698