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

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

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Add TODO in the FrameLoader. 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_ 5 #ifndef CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_
6 #define CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_ 6 #define CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_
7 7
8 #include "content/common/content_security_policy/csp_context.h"
8 #include "content/common/content_security_policy/csp_policy.h" 9 #include "content/common/content_security_policy/csp_policy.h"
9 10 #include "third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h"
10 namespace blink {
11 struct WebContentSecurityPolicyPolicy;
12 } // namespace blink
13 11
14 namespace content { 12 namespace content {
15 13
16 // Convert a WebContentSecurityPolicy into a CSPPolicy, these two classes are 14 // Convert a WebContentSecurityPolicy into a CSPPolicy. These two classes
17 // the reflection of each other. One in content, the other in blink. 15 // represent the exact same thing, but one is in content, the other is in blink.
18 CSPPolicy BuildCSPPolicy(const blink::WebContentSecurityPolicyPolicy&); 16 CSPPolicy BuildCSPPolicy(const blink::WebContentSecurityPolicyPolicy&);
19 17
18 // Convert a CSPViolationParams into a WebContentSecurityPolicyViolation. These
19 // two classes represent the exact same thing, but one is in content, the other
20 // is in blink.
21 blink::WebContentSecurityPolicyViolation BuildWebContentSecurityPolicyViolation(
22 const content::CSPViolationParams& violation_params);
23
20 } // namespace content 24 } // namespace content
21 25
22 #endif /* CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_ */ 26 #endif /* CONTENT_RENDERER_CONTENT_SECURITY_POLICY_UTIL_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698