Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebFeaturePolicy.h |
| diff --git a/third_party/WebKit/public/platform/WebFeaturePolicy.h b/third_party/WebKit/public/platform/WebFeaturePolicy.h |
| index 2f1387f63ec8cb1f733065b82354b02696885654..8b38641d55405897bd4aa1c496e06bc45f983f76 100644 |
| --- a/third_party/WebKit/public/platform/WebFeaturePolicy.h |
| +++ b/third_party/WebKit/public/platform/WebFeaturePolicy.h |
| @@ -15,34 +15,56 @@ namespace blink { |
| // These values map to the features which can be controlled by Feature Policy. |
| // TODO(iclelland): Link to the spec where the behaviour for each of these is |
| // defined. |
| +// |
| +// Below are the features currently defined in the spec: |
| +// https://rawgit.com/clelland/feature-policy/update-spec/index.html#defined-features |
|
iclelland
2017/03/24 18:02:54
This can be https://wicg.github.io/feature-policy/
|
| +// Camera |
| +// Eme |
| +// Fullscreen |
| +// Geolocation |
| +// Microphone |
| +// Midi |
| +// Payment |
| +// Speaker |
| +// Vibrate |
| +// Below are the features currently implemented in Blink: |
| +// Fullscreen |
| +// Payment |
| +// Vibrate |
| enum class WebFeaturePolicyFeature { |
| NotFound = 0, |
| - // Controls access to document.cookie attribute. |
| - DocumentCookie, |
| - // Contols access to document.domain attribute. |
| - DocumentDomain, |
| - // Controls access to document.write and document.writeln methods. |
| - DocumentWrite, |
| + // Controls access to video input devices. |
| + Camera, |
| + // Controls whether navigator.requestMediaKeySystemAccess is allowed. |
| + Eme, |
| // Controls whether Element.requestFullscreen is allowed. |
| Fullscreen, |
| // Controls access to Geolocation interface. |
| Geolocation, |
| + // Controls access to audio input devices. |
| + Microphone, |
| // Controls access to requestMIDIAccess method. |
| MidiFeature, |
| - // Controls access to Notification interface. |
| - Notifications, |
| // Controls access to PaymentRequest interface. |
| Payment, |
| + // Controls access to audio output devices. |
| + Speaker, |
| + // Controls access to navigator.vibrate method. |
| + Vibrate, |
| + // Controls access to document.cookie attribute. |
| + DocumentCookie, |
| + // Contols access to document.domain attribute. |
| + DocumentDomain, |
| + // Controls access to document.write and document.writeln methods. |
| + DocumentWrite, |
| + // Controls access to Notification interface. |
| + Notifications, |
| // Controls access to PushManager interface. |
| Push, |
| // Controls whether synchronous script elements will run. |
| SyncScript, |
| // Controls use of synchronous XMLHTTPRequest API. |
| SyncXHR, |
| - // Controls access to NavigatorUserMedia interface. |
| - Usermedia, |
| - // Controls access to navigator.vibrate method. |
| - Vibrate, |
| // Controls access to RTCPeerConnection interface. |
| WebRTC, |
| LAST_FEATURE = WebRTC |