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

Unified Diff: content/common/content_security_policy_header.cc

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/content_security_policy_header.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_security_policy_header.cc
diff --git a/content/common/content_security_policy_header.cc b/content/common/content_security_policy_header.cc
new file mode 100644
index 0000000000000000000000000000000000000000..13ec75d738e567ed51d6dd6c4fd15c1164027aa2
--- /dev/null
+++ b/content/common/content_security_policy_header.cc
@@ -0,0 +1,20 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/common/content_security_policy_header.h"
+
+namespace content {
+
+ContentSecurityPolicyHeader::ContentSecurityPolicyHeader()
+ : header_value(std::string()),
+ type(blink::WebContentSecurityPolicyTypeEnforce),
+ source(blink::WebContentSecurityPolicySourceHTTP) {}
+
+ContentSecurityPolicyHeader::ContentSecurityPolicyHeader(
+ const std::string& header_value,
+ blink::WebContentSecurityPolicyType type,
+ blink::WebContentSecurityPolicySource source)
+ : header_value(header_value), type(type), source(source) {}
+
+} // namespace content
« no previous file with comments | « content/common/content_security_policy_header.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698