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

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: Rebasing on master 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/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 33368113da416347f23134e2a616dad8047b544b..128d5e9a8b87b653eb1a45f3203595dd379b17f5 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -356,6 +356,12 @@ class CORE_EXPORT ContentSecurityPolicy
static const char* getDirectiveName(const DirectiveType&);
static DirectiveType getDirectiveType(const String& name);
+ // This method checks if if this policy subsumes a given policy.
+ // Note the correct result is guaranteed if this policy contains only one
+ // CSPDirectiveList. 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