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

Unified Diff: content/common/content_security_policy_header.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
Index: content/common/content_security_policy_header.h
diff --git a/content/common/content_security_policy_header.h b/content/common/content_security_policy_header.h
index cef4e066417ff81826bb743417e65b4781964a3f..e4b65d38c88159bf3ffbf4106474ddfbae5bd006 100644
--- a/content/common/content_security_policy_header.h
+++ b/content/common/content_security_policy_header.h
@@ -6,6 +6,8 @@
#define CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_
#include <string>
+
+#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h"
namespace content {
@@ -13,7 +15,12 @@ namespace content {
// Represents a single Content Security Policy header (i.e. coming from
// a single Content-Security-Policy header in an HTTP response, or from
// a single <meta http-equiv="Content-Security-Policy"...> element).
-struct ContentSecurityPolicyHeader {
+struct CONTENT_EXPORT ContentSecurityPolicyHeader {
+ ContentSecurityPolicyHeader();
+ ContentSecurityPolicyHeader(const std::string& header_value,
+ blink::WebContentSecurityPolicyType type,
+ blink::WebContentSecurityPolicySource source);
+
std::string header_value;
blink::WebContentSecurityPolicyType type;
blink::WebContentSecurityPolicySource source;
« no previous file with comments | « content/common/content_security_policy/csp_context_unittest.cc ('k') | content/common/content_security_policy_header.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698