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

Side by Side Diff: content/common/content_security_policy/csp_policy.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_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_ 5 #ifndef CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_
6 #define CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_ 6 #define CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 private: 48 private:
49 bool AllowDirective(CSPContext* context, 49 bool AllowDirective(CSPContext* context,
50 CSPDirective::Name directive_name, 50 CSPDirective::Name directive_name,
51 const CSPDirective& directive, 51 const CSPDirective& directive,
52 const GURL& url, 52 const GURL& url,
53 bool is_redirect) const; 53 bool is_redirect) const;
54 54
55 void ReportViolation(CSPContext* context, 55 void ReportViolation(CSPContext* context,
56 const CSPDirective::Name effective_directive, 56 const CSPDirective::Name effective_directive,
57 const CSPDirective& directive, 57 const CSPDirective& directive,
58 const GURL& url) const; 58 const GURL& url,
59 bool is_redirect) const;
59 }; 60 };
60 61
61 } // namespace content 62 } // namespace content
62 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_ 63 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698