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

Unified Diff: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h

Issue 2404373003: Experimental Feature: Allow-CSP-From header (Closed)
Patch Set: Better format of ContentSecurityPolicyTest.ShouldEnforceEmbeddersPolicy Created 4 years, 2 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/Source/core/frame/csp/ContentSecurityPolicy.h
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
index a51449bb06735d0bb26130fbe62482d901406d74..0ca494e7e592db71f0cc626e17aa6dff80749529 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -354,6 +354,12 @@ class CORE_EXPORT ContentSecurityPolicy
static bool isNonceableElement(const Element*);
+ // This method checks whether the request should be allowed for an
+ // experimental EmbeddingCSP feature
+ // Please, see https://w3c.github.io/webappsec-csp/embedded/#origin-allowed.
+ static bool shouldEnforceEmbeddersPolicy(const ResourceResponse&,
+ SecurityOrigin*);
+
Document* document() const;
private:

Powered by Google App Engine
This is Rietveld 408576698