| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 private: | 42 private: |
| 43 bool AllowDirective(CSPContext* context, | 43 bool AllowDirective(CSPContext* context, |
| 44 CSPDirective::Name directive_name, | 44 CSPDirective::Name directive_name, |
| 45 const CSPDirective& directive, | 45 const CSPDirective& directive, |
| 46 const GURL& url, | 46 const GURL& url, |
| 47 bool is_redirect) const; | 47 bool is_redirect) const; |
| 48 | 48 |
| 49 void ReportViolation(CSPContext* context, | 49 void ReportViolation(CSPContext* context, |
| 50 const CSPDirective::Name effective_directive, | 50 const CSPDirective::Name effective_directive, |
| 51 const CSPDirective& directive, | 51 const CSPDirective& directive, |
| 52 const GURL& url) const; | 52 const GURL& url, |
| 53 bool is_redirect) const; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace content | 56 } // namespace content |
| 56 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_ | 57 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_ |
| OLD | NEW |