Index: extensions/common/csp_validator.h |
diff --git a/extensions/common/csp_validator.h b/extensions/common/csp_validator.h |
index e8aa78c4ca3dc33b1ff8b102379172320588c91c..93676b0b8e66dcbb6f5a7d82d9ba0e337323aaf5 100644 |
--- a/extensions/common/csp_validator.h |
+++ b/extensions/common/csp_validator.h |
@@ -43,8 +43,13 @@ enum Options { |
// case for extensions. Platform apps disallow it. |
// |
// |options| is a bitmask of Options. |
-bool ContentSecurityPolicyIsSecure( |
- const std::string& policy, int options); |
+// |
+// If |warnings| is not NULL, any validation errors are appended to |warnings|. |
+// Returns the sanitized policy. |
+std::string SanitizeContentSecurityPolicy( |
+ const std::string& policy, |
+ int options, |
+ std::vector<InstallWarning>* warnings); |
// Checks whether the given |policy| enforces a unique origin sandbox as |
// defined by http://www.whatwg.org/specs/web-apps/current-work/multipage/ |