forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add experimental flag to start the Smart Lock over BLE support.
This CL adds the experimental flag "Enable Smart Lock Bluetooth Low Energy Discovery.". When enabled, the EasyUnlock service will start the proximity auth BLE system wich will be in charge of discovering Bluetooth Low Energy devices and unlocking the Chromebook. BUG=479654 Review URL: https://codereview.chromium.org/1092793004 Cr-Commit-Position: refs/heads/master@{#326292}
- Loading branch information
msarda
authored and
Commit bot
committed
Apr 22, 2015
1 parent
6273d88
commit 4c408ff
Showing
13 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2014 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
source_set("ble") { | ||
sources = [ | ||
"proximity_auth_ble_system.cc", | ||
"proximity_auth_ble_system.h", | ||
] | ||
|
||
deps = [ | ||
"//base", | ||
"//components/proximity_auth", | ||
"//device/bluetooth", | ||
"//net", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
msarda@chromium.org | ||
sacomoto@chromium.org |
19 changes: 19 additions & 0 deletions
19
components/proximity_auth/ble/proximity_auth_ble_system.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "components/proximity_auth/ble/proximity_auth_ble_system.h" | ||
|
||
#include "base/logging.h" | ||
|
||
namespace proximity_auth { | ||
|
||
ProximityAuthBleSystem::ProximityAuthBleSystem() { | ||
VLOG(1) << "Starting Proximity Auth over Bluetooth Low Energy."; | ||
} | ||
|
||
ProximityAuthBleSystem::~ProximityAuthBleSystem() { | ||
VLOG(1) << "Stopping Proximity over Bluetooth Low Energy."; | ||
} | ||
|
||
} // namespace proximity_auth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef COMPONENTS_PROXIMITY_AUTH_BLE_PROXIMITY_AUTH_BLE_SYSTEM_H_ | ||
#define COMPONENTS_PROXIMITY_AUTH_BLE_PROXIMITY_AUTH_BLE_SYSTEM_H_ | ||
|
||
#include "base/macros.h" | ||
|
||
namespace proximity_auth { | ||
|
||
// 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 | ||
// discover Bluetooth Low Energy phones and unlock the lock screen if the phone | ||
// passes an authorization and authentication protocol. | ||
class ProximityAuthBleSystem { | ||
public: | ||
ProximityAuthBleSystem(); | ||
~ProximityAuthBleSystem(); | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(ProximityAuthBleSystem); | ||
}; | ||
|
||
} // namespace proximity_auth | ||
|
||
#endif // COMPONENTS_PROXIMITY_AUTH_BLE_PROXIMITY_AUTH_BLE_SYSTEM_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters