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

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

Issue 2815003005: Integrate WebUSB with Feature Policy (Closed)
Patch Set: Rebased Created 3 years, 7 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
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 95ac512c6c138fee5c262e6d9c6c13c7841ec0e6..b73e9711d2cda3be14d45a4db85dd24b464b2c53 100644
--- a/third_party/WebKit/public/platform/WebFeaturePolicy.h
+++ b/third_party/WebKit/public/platform/WebFeaturePolicy.h
@@ -6,57 +6,13 @@
#define WebFeaturePolicy_h
#include "WebCommon.h"
+#include "WebFeaturePolicyFeature.h"
#include "WebSecurityOrigin.h"
#include "WebString.h"
#include "WebVector.h"
namespace blink {
-// These values map to the features which can be controlled by Feature Policy.
-//
-// 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 {
- kNotFound = 0,
- // Controls access to video input devices.
- kCamera,
- // Controls whether navigator.requestMediaKeySystemAccess is allowed.
- kEme,
- // Controls whether Element.requestFullscreen is allowed.
- kFullscreen,
- // Controls access to Geolocation interface.
- kGeolocation,
- // Controls access to audio input devices.
- kMicrophone,
- // Controls access to requestMIDIAccess method.
- kMidiFeature,
- // Controls access to PaymentRequest interface.
- kPayment,
- // Controls access to audio output devices.
- kSpeaker,
- // Controls access to navigator.vibrate method.
- kVibrate,
- // Controls access to document.cookie attribute.
- kDocumentCookie,
- // Contols access to document.domain attribute.
- kDocumentDomain,
- // Controls access to document.write and document.writeln methods.
- kDocumentWrite,
- // Controls access to Notification interface.
- kNotifications,
- // Controls access to PushManager interface.
- kPush,
- // Controls whether synchronous script elements will run.
- kSyncScript,
- // Controls use of synchronous XMLHTTPRequest API.
- kSyncXHR,
- // Controls access to RTCPeerConnection interface.
- kWebRTC,
- LAST_FEATURE = kWebRTC
-};
-
struct BLINK_PLATFORM_EXPORT WebParsedFeaturePolicyDeclaration {
WebParsedFeaturePolicyDeclaration() : matches_all_origins(false) {}
WebFeaturePolicyFeature feature;

Powered by Google App Engine
This is Rietveld 408576698