[CrOS PhoneHub] Change BleScanner::Delegate to Observer
PhoneHub will be utilizing BleScanner to understand when a device is in proximity before attempting a connection via Nearby Connections. Thus, the BleScanner class must support multiple observers (one for the existing use case used by Instant Tethering and Smart Lock), and one for the Phone Hub case). BleScanner previously had a Delegate pattern which allowed only one listener for when BLE scans were picked up, so this CL converts this code to an Observer pattern which supports the new use case. For now, BleConnectionManagerImpl is still the only observer; a future CL will add an additional one. Bug: 1106937 Change-Id: I0dd3cea3d0f050d8caeb82784ed6193821ff657d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2393258 Auto-Submit: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:James Vecore <vecore@google.com> Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#805010}
Showing
Please register or sign in to comment