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

Unified Diff: content/common/content_security_policy/content_security_policy.h

Issue 2764993002: CSP: group policies in didAddContentSecurityPolicy. (Closed)
Patch Set: Rebase. Created 3 years, 9 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/content_security_policy/content_security_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_security_policy/content_security_policy.h
diff --git a/content/common/content_security_policy/content_security_policy.h b/content/common/content_security_policy/content_security_policy.h
index 56454ed27b65104e3a7b7516b3e50699e54629af..7d7b111b9f0e494f6bed1e8e3593396ef90f0f4e 100644
--- a/content/common/content_security_policy/content_security_policy.h
+++ b/content/common/content_security_policy/content_security_policy.h
@@ -23,19 +23,15 @@ class CSPContext;
// enforced upon requests.
struct CONTENT_EXPORT ContentSecurityPolicy {
ContentSecurityPolicy();
- ContentSecurityPolicy(blink::WebContentSecurityPolicyType disposition,
- blink::WebContentSecurityPolicySource source,
+ ContentSecurityPolicy(const ContentSecurityPolicyHeader& header,
const std::vector<CSPDirective>& directives,
- const std::vector<std::string>& report_endpoints,
- const std::string& header);
+ const std::vector<std::string>& report_endpoints);
ContentSecurityPolicy(const ContentSecurityPolicy&);
~ContentSecurityPolicy();
- blink::WebContentSecurityPolicyType disposition;
- blink::WebContentSecurityPolicySource source;
+ ContentSecurityPolicyHeader header;
std::vector<CSPDirective> directives;
std::vector<std::string> report_endpoints;
- std::string header;
std::string ToString() const;
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/content_security_policy/content_security_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698