| Index: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
|
| index 667724a324a4bd33677d1a23a1e1315aa2eea41b..2aaba3b7cb58b38307032e281b32dd6970fb09f4 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
|
| +++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
|
| @@ -39,6 +39,9 @@ class CORE_EXPORT CSPDirectiveList
|
|
|
| void Parse(const UChar* begin, const UChar* end);
|
|
|
| + static bool IsValid(const UChar* begin, const UChar* end);
|
| + static bool IsValid(const String& directive_list);
|
| +
|
| const String& Header() const { return header_; }
|
| ContentSecurityPolicyHeaderType HeaderType() const { return header_type_; }
|
| ContentSecurityPolicyHeaderSource HeaderSource() const {
|
| @@ -192,10 +195,11 @@ class CORE_EXPORT CSPDirectiveList
|
| ContentSecurityPolicyHeaderType,
|
| ContentSecurityPolicyHeaderSource);
|
|
|
| - bool ParseDirective(const UChar* begin,
|
| - const UChar* end,
|
| - String& name,
|
| - String& value);
|
| + static bool ParseDirective(const UChar* begin,
|
| + const UChar* end,
|
| + String& name,
|
| + String& value,
|
| + ContentSecurityPolicy*);
|
| void ParseRequireSRIFor(const String& name, const String& value);
|
| void ParseReportURI(const String& name, const String& value);
|
| void ParsePluginTypes(const String& name, const String& value);
|
|
|