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..dea5ed1b78524043384bc1eedb734a148f517746 |
--- /dev/null |
+++ b/content/renderer/content_security_policy_util.h |
@@ -0,0 +1,22 @@ |
+// 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/csp_policy.h" |
+ |
+namespace blink { |
+struct WebContentSecurityPolicyPolicy; |
+} // namespace blink |
+ |
+namespace content { |
+ |
+// Convert a WebContentSecurityPolicy into a CSPPolicy, these two classes are |
+// the reflection of each other. One in content, the other in blink. |
+CSPPolicy BuildCSPPolicy(const blink::WebContentSecurityPolicyPolicy&); |
+ |
+} // namespace content |
+ |
+#endif /* CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_ */ |