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

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: Fp2 Created 4 years, 1 month 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..e0158a7494b86b5f449e0314b84183ad62ad1444
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebFeaturePolicy.h
@@ -0,0 +1,24 @@
+// 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 "WebString.h"
+#include "WebVector.h"
+
+namespace blink {
+
+struct WebFeaturePolicy {
+ struct ParsedWhitelist {
+ ParsedWhitelist() : matchesAllOrigins(false) {}
+ WebString featureName;
+ bool matchesAllOrigins;
+ WebVector<WebString> origins;
iclelland 2016/11/23 20:20:28 Can we use WebVector<WebSecurityOrigin> for this?
raymes 2016/11/29 08:20:34 Done.
+ };
+};
+
+} // namespace blink
+
+#endif // WebFeaturePolicy_h

Powered by Google App Engine
This is Rietveld 408576698