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

Side by Side Diff: content/renderer/content_security_policy_util.h

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Rebase from master. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_
6 #define CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_
7
8 #include "content/common/content_security_policy/content_security_policy.h"
9
10 namespace blink {
11 struct WebContentSecurityPolicyPolicy;
12 } // namespace blink
13
14 namespace content {
15
16 // Convert a WebContentSecurityPolicy into a ContentSecurityPolicy, these two
17 // classes are the reflection of each other. One in content, the other in blink.
18 ContentSecurityPolicy BuildContentSecurityPolicy(
19 const blink::WebContentSecurityPolicyPolicy&);
20
21 } // namespace content
22
23 #endif /* CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698