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

Unified Diff: chromeos/components/tether/ble_scanner.h

Issue 2697763002: [CrOS Tether]: Create BleConnectionManager, which manages secure connections between the current de… (Closed)
Patch Set: Add missing DEP. Created 3 years, 10 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 | « chromeos/components/tether/ble_constants.cc ('k') | chromeos/components/tether/proto/tether.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/components/tether/ble_scanner.h
diff --git a/chromeos/components/tether/ble_scanner.h b/chromeos/components/tether/ble_scanner.h
index a601417ba4db7e6f0644e1defa872f37f3d6cf6e..a2771af8f552a9e999e306c82d31d2c22b879764 100644
--- a/chromeos/components/tether/ble_scanner.h
+++ b/chromeos/components/tether/ble_scanner.h
@@ -36,9 +36,9 @@ class BleScanner : public device::BluetoothAdapter::Observer {
BleScanner(const LocalDeviceDataProvider* local_device_data_provider);
~BleScanner() override;
- bool RegisterScanFilterForDevice(
+ virtual bool RegisterScanFilterForDevice(
const cryptauth::RemoteDevice& remote_device);
- bool UnregisterScanFilterForDevice(
+ virtual bool UnregisterScanFilterForDevice(
const cryptauth::RemoteDevice& remote_device);
bool IsDeviceRegistered(const std::string& device_id);
@@ -54,6 +54,9 @@ class BleScanner : public device::BluetoothAdapter::Observer {
void DeviceChanged(device::BluetoothAdapter* adapter,
device::BluetoothDevice* bluetooth_device) override;
+ protected:
+ base::ObserverList<Observer> observer_list_;
+
private:
friend class BleScannerTest;
@@ -111,8 +114,6 @@ class BleScanner : public device::BluetoothAdapter::Observer {
std::vector<cryptauth::RemoteDevice> registered_remote_devices_;
- base::ObserverList<Observer> observer_list_;
-
base::WeakPtrFactory<BleScanner> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(BleScanner);
« no previous file with comments | « chromeos/components/tether/ble_constants.cc ('k') | chromeos/components/tether/proto/tether.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698