Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(986)

Unified Diff: third_party/WebKit/public/platform/WebFeaturePolicy.h

Issue 2766213002: Update feature list (Closed)
Patch Set: Codereview: nit Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5aeb0df1bc61d2d4fa1e85317345acf31fe80754 100644
--- a/third_party/WebKit/public/platform/WebFeaturePolicy.h
+++ b/third_party/WebKit/public/platform/WebFeaturePolicy.h
@@ -13,36 +13,45 @@
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.
+//
+// Features are defined in
+// https://wicg.github.io/feature-policy/#defined-features. Many of these are
+// still under development in blink behind the featurePolicyExperimentalFeatures
+// flag, see getWebFeaturePolicyFeature().
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
« no previous file with comments | « third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698