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

Unified Diff: components/proximity_auth/ble/proximity_auth_ble_system.h

Issue 1116963002: Bluetooth low energy connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: components/proximity_auth/ble/proximity_auth_ble_system.h
diff --git a/components/proximity_auth/ble/proximity_auth_ble_system.h b/components/proximity_auth/ble/proximity_auth_ble_system.h
index 607f4ce2c7e42d50b901631cf5cc0663fc229db7..aa0ac0a8e84b723913c343af5d20ea9db8bda726 100644
--- a/components/proximity_auth/ble/proximity_auth_ble_system.h
+++ b/components/proximity_auth/ble/proximity_auth_ble_system.h
@@ -19,7 +19,9 @@ class BluetoothGattConnection;
namespace proximity_auth {
+class BluetoothLowEnergyConnection;
class BluetoothLowEnergyConnectionFinder;
+class Connection;
// This is the main entry point to start Proximity Auth over Bluetooth Low
// Energy. This is the underlying system for the Smart Lock features. It will
@@ -40,8 +42,7 @@ class ProximityAuthBleSystem : public ScreenlockBridge::Observer {
private:
// Handler for a new connection found event.
- void OnConnectionFound(
- scoped_ptr<device::BluetoothGattConnection> connection);
+ void OnConnectionFound(scoped_ptr<Connection> connection);
ScreenlockBridge* screenlock_bridge_; // Not owned. Must outlive this object.
content::BrowserContext*
@@ -49,6 +50,8 @@ class ProximityAuthBleSystem : public ScreenlockBridge::Observer {
scoped_ptr<BluetoothLowEnergyConnectionFinder> connection_finder_;
+ scoped_ptr<Connection> connection_;
+
base::WeakPtrFactory<ProximityAuthBleSystem> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ProximityAuthBleSystem);
« no previous file with comments | « components/proximity_auth/ble/fake_wire_message.cc ('k') | components/proximity_auth/ble/proximity_auth_ble_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698