
The code has moved, so update the includes. R=avi@chromium.org Bug: 1091083 Change-Id: I2c9a5c20b78756fc0b460a85f00d8560f1883979 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2412947 Commit-Queue: Avi Drissman <avi@chromium.org> Auto-Submit: danakj <danakj@chromium.org> Reviewed-by: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#807483}
Generic Sensors, //content part
This directory contains part of the Generic Sensors API implementation in Chromium. See the Blink README.md and the services README.md for more information about the architecture.
From a spec perspective, the code in SensorProviderProxyImpl
implements the following steps together with Blink:
//content/browser/generic_sensor
implements permission checks invoked by the Blink code, and acts as a bridge between Blink and //services/device/generic_sensor
. When code in Blink invokes SensorProvider::GetSensor()
, it reaches SensorProviderProxyImpl::GetSensor()
in //content/browser/generic_sensor
rather than SensorProviderImpl::GetSensor()
in //services/device/generic_sensor
. If all permission checks pass, SensorProviderProxyImpl::GetSensor()
will forward the request from Blink to the //services
layer by invoking SensorProviderImpl::GetSensor()
.
This directory also contains a few browser tests for the permission checks in generic_sensor_browsertest.cc
. They are complemented by device_sensor_browsertest.cc
.