OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |