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.