Index: components/proximity_auth/ble/proximity_auth_ble_system.cc |
diff --git a/components/proximity_auth/ble/proximity_auth_ble_system.cc b/components/proximity_auth/ble/proximity_auth_ble_system.cc |
index b4f20e44dcb0ad5d0cfdfe0c2c19b69494eb7ee1..93240f0d9a9ed860a5c8e923beb64d3c92e9d209 100644 |
--- a/components/proximity_auth/ble/proximity_auth_ble_system.cc |
+++ b/components/proximity_auth/ble/proximity_auth_ble_system.cc |
@@ -4,16 +4,33 @@ |
#include "components/proximity_auth/ble/proximity_auth_ble_system.h" |
+#include "base/bind.h" |
#include "base/logging.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "components/proximity_auth/connection.h" |
+#include "device/bluetooth/bluetooth_device.h" |
+ |
+#include "components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h" |
namespace proximity_auth { |
+const std::string kSmartLockServiceUUID = |
+ "b3b7e28e-a000-3e17-bd86-6e97b9e28c11"; |
+ |
+void ConnectionCallback( |
+ scoped_ptr<device::BluetoothGattConnection> connection) { |
+ DVLOG(1) << "Connection established"; |
+} |
+ |
ProximityAuthBleSystem::ProximityAuthBleSystem() { |
- VLOG(1) << "Starting Proximity Auth over Bluetooth Low Energy."; |
+ DVLOG(1) << "Starting Proximity Auth over Bluetooth Low Energy."; |
msarda
2015/04/22 15:58:13
Let's keep the VLOG for now.
sacomoto
2015/04/24 14:04:57
Done.
|
+ BluetoothLowEnergyConnectionFinder* connection_finder = |
+ new BluetoothLowEnergyConnectionFinder(kSmartLockServiceUUID); |
+ connection_finder->Find(base::Bind(&ConnectionCallback)); |
} |
ProximityAuthBleSystem::~ProximityAuthBleSystem() { |
- VLOG(1) << "Stopping Proximity over Bluetooth Low Energy."; |
+ DVLOG(1) << "Stopping Proximity over Bluetooth Low Energy."; |
msarda
2015/04/22 15:58:13
VLOG here as well.
sacomoto
2015/04/24 14:04:57
Done.
|
} |
-} // namespace proximity_auth |
+} // proximity_auth |