| 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 b0394a552ad220cfd2c2f08f38566d8787d29180..5b8bdfb1f800fa29abd3846567dcaa32383d6111 100644
|
| --- a/third_party/WebKit/public/platform/WebFeaturePolicy.h
|
| +++ b/third_party/WebKit/public/platform/WebFeaturePolicy.h
|
| @@ -11,6 +11,42 @@
|
|
|
| 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.
|
| +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 whether Element.requestFullscreen is allowed.
|
| + Fullscreen,
|
| + // Controls access to Geolocation interface.
|
| + Geolocation,
|
| + // Controls access to requestMIDIAccess method.
|
| + MidiFeature,
|
| + // Controls access to Notification interface.
|
| + Notifications,
|
| + // Controls access to PaymentRequest interface.
|
| + Payment,
|
| + // 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
|
| +};
|
| +
|
| struct WebParsedFeaturePolicyDeclaration {
|
| WebParsedFeaturePolicyDeclaration() : matchesAllOrigins(false) {}
|
| WebString featureName;
|
|
|