[CrOS MultiDevice] Create BleScanner.
This class is based on the chromeos::tether::BleScanner class, but it
has several key distinctions:
(1) It must support scanning for devices which belong to multiple
accounts, so it supports having more than one "local device". The
function used to direct BleScanner to start or stop scanning is
SetScanFilters().
(2) It only has a single listener, so I've changed the Obsever pattern
to a Delegate pattern.
(3) Since SecureChannelService cannot be temporarily disabled, there is
no longer a need for the asynchronous shutdown flow, so the
OnDiscoverySessionStateChanged() callback is no longer needed.
(4) The artificial limit of 2 devices has been removed. In
SecureChannel, it should be possible to scan for as many nearby
devices as the client requests.
Bug: 824568, 752273
Change-Id: Idaf6b65a6465d41e7979a81d8024b162a32b9b49
Reviewed-on: https://chromium-review.googlesource.com/1084319
Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
Reviewed-by:
Ryan Hansberry <hansberry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#564758}
Showing
This diff is collapsed.
Please register or sign in to comment