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

Unified Diff: content/renderer/content_security_policy_util.h

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Add the TODO and bug ids that was forgotten. Created 3 years, 10 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/renderer/BUILD.gn ('k') | content/renderer/content_security_policy_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/content_security_policy_util.h
diff --git a/content/renderer/content_security_policy_util.h b/content/renderer/content_security_policy_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..30858d85dd20fd9818e16ec2ae795a1c490d7e0a
--- /dev/null
+++ b/content/renderer/content_security_policy_util.h
@@ -0,0 +1,23 @@
+// 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.
+
+#ifndef CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_
+#define CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_
+
+#include "content/common/content_security_policy/content_security_policy.h"
+
+namespace blink {
+struct WebContentSecurityPolicyPolicy;
+} // namespace blink
+
+namespace content {
+
+// Convert a WebContentSecurityPolicy into a ContentSecurityPolicy, these two
+// classes are the reflection of each other. One in content, the other in blink.
+ContentSecurityPolicy BuildContentSecurityPolicy(
+ const blink::WebContentSecurityPolicyPolicy&);
+
+} // namespace content
+
+#endif /* CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_ */
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/content_security_policy_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698