Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sensors: Make Blink Mojo requests go through a new WebSensorProvider …
…interface This is being done in preparation for adding the concept of "virtual sensors" that implement the Automation section of the Generic Sensor spec. Virtual sensors manipulation is a privileged operation that should not be exposed to Blink, so we now add a blink.mojom.WebSensorProvider interface that it is supposed to use instead of device.mojom.SensorProvider. FrameSensorProviderProxy in //content is responsible for receiving WebSensorProvider requests and translating them into SensorProvider ones that reach //services via WebContentsSensorProviderProxy. At the moment, both Mojo interfaces expose the same GetSensor() method, but the idea is for SensorProvider to have extra virtual sensor methods that WebSensorProvider will not. Bug: 1278377 Change-Id: I96ea78f66cd6219cb46a49b90791dd17fde2d085 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916233 Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Reilly Grant <reillyg@chromium.org> Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Reviewed-by: Emily Stark <estark@chromium.org> Commit-Queue: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com> Reviewed-by: Ben Pastene <bpastene@chromium.org> Cr-Commit-Position: refs/heads/main@{#1206683}
- Loading branch information