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

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

Issue 2526473005: Part 4.1: Is policy list subsumed under subsuming policy? (Closed)
Patch Set: 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/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 f2f3671052a24586e1052a4e3f4dcf2942c11815..6f32ad9d89516ed5220f206411522b88b90c99e5 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -366,6 +366,11 @@ class CORE_EXPORT ContentSecurityPolicy
static bool shouldEnforceEmbeddersPolicy(const ResourceResponse&,
SecurityOrigin*);
+ // This method checks if this CSP subsumes given CSP.
Mike West 2016/11/28 13:08:02 Nit: "... if this policy subsumes a given policy"
+ // More information here:
+ // https://w3c.github.io/webappsec-csp/embedded/#subsume-policy
+ bool subsumes(const ContentSecurityPolicy&);
+
Document* document() const;
private:

Powered by Google App Engine
This is Rietveld 408576698