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

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

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… Created 4 years 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
new file mode 100644
index 0000000000000000000000000000000000000000..a2c03f79605f67d1a78cbbdc5b27ad6869d3a1f9
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebFeaturePolicy.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebFeaturePolicy_h
+#define WebFeaturePolicy_h
+
+#include "WebSecurityOrigin.h"
+#include "WebString.h"
+#include "WebVector.h"
+
+namespace blink {
+
+struct WebFeaturePolicy {
+ struct ParsedWhitelist {
+ ParsedWhitelist() : matchesAllOrigins(false) {}
+ WebString featureName;
+ bool matchesAllOrigins;
+ WebVector<WebSecurityOrigin> origins;
+ };
+};
+
+using WebParsedFeaturePolicy = WebVector<WebFeaturePolicy::ParsedWhitelist>;
+
+} // namespace blink
+
+#endif // WebFeaturePolicy_h
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698