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

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

Issue 2404373003: Experimental Feature: Allow-CSP-From header (Closed)
Patch Set: Adding console message, moving to testharness tests, adding CSPTest 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 563fb6476f831848a91e1d0db80a92c3e5b236fd..0ae413184b35c90662aa13376fffe8e3ee2b6444 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -353,6 +353,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