[Sensors] Allow Sensor API only on secure top-level browsing contexts and add frequency checks

This patch introduces secure context and top-level browsing context checks as required at https://w3c.github.io/sensors/#construct-sensor-object.

Besides it introduces check of the given frequency option: if the given frequency is negative exception is raised; if the given frequency is more than 60 Hz it is capped to 60 Hz.

BUG=606766

Review-Url: https://codereview.chromium.org/2353493002
Cr-Commit-Position: refs/heads/master@{#421501}
11 files changed