scanning: Add CancelScan to Scanning mojo and ScanService
This change adds CancelScan to the Scanning mojo then calls it from ScanService. In ScanService, when the cancel completes and OnCancelCompleted is called, OnScanCompleted will not be called afterwards. And the same vice versa, if a cancel is requested but the scan finishes first and calls OnScanCompleted, we will not then call OnCancelCompleted. Bug: 1059779 Change-Id: Iabea43d9498f41d3f42633c2ac8601f27f3ec81e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533193 Commit-Queue: Gavin Williams <gavinwill@chromium.org> Reviewed-by:Jesse Schettler <jschettler@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#827535}
Showing
Please register or sign in to comment