| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_COMMON_EXTENSIONS_CSP_VALIDATOR_H_ | 5 #ifndef EXTENSIONS_COMMON_CSP_VALIDATOR_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_CSP_VALIDATOR_H_ | 6 #define EXTENSIONS_COMMON_CSP_VALIDATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "extensions/common/manifest.h" | 10 #include "extensions/common/manifest.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 namespace csp_validator { | 14 namespace csp_validator { |
| 15 | 15 |
| 16 // Checks whether the given |policy| is legal for use in the extension system. | 16 // Checks whether the given |policy| is legal for use in the extension system. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 // "sandbox" directive, and the sandbox tokens must not include | 37 // "sandbox" directive, and the sandbox tokens must not include |
| 38 // "allow-same-origin". Additional restrictions may be imposed depending on | 38 // "allow-same-origin". Additional restrictions may be imposed depending on |
| 39 // |type|. | 39 // |type|. |
| 40 bool ContentSecurityPolicyIsSandboxed( | 40 bool ContentSecurityPolicyIsSandboxed( |
| 41 const std::string& policy, Manifest::Type type); | 41 const std::string& policy, Manifest::Type type); |
| 42 | 42 |
| 43 } // namespace csp_validator | 43 } // namespace csp_validator |
| 44 | 44 |
| 45 } // namespace extensions | 45 } // namespace extensions |
| 46 | 46 |
| 47 #endif // CHROME_COMMON_EXTENSIONS_CSP_VALIDATOR_H_ | 47 #endif // EXTENSIONS_COMMON_CSP_VALIDATOR_H_ |
| OLD | NEW |