OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ContentSecurityPolicyParsers_h | 5 #ifndef ContentSecurityPolicyParsers_h |
6 #define ContentSecurityPolicyParsers_h | 6 #define ContentSecurityPolicyParsers_h |
7 | 7 |
8 #include "platform/Crypto.h" | 8 #include "platform/Crypto.h" |
9 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
10 #include "wtf/text/Unicode.h" | 10 #include "wtf/text/Unicode.h" |
11 | 11 |
12 namespace WTF { | |
13 | |
14 class StringUTF8Adaptor; | |
15 } | |
16 | |
17 namespace blink { | 12 namespace blink { |
18 | 13 |
19 typedef std::pair<unsigned, DigestValue> CSPHashValue; | 14 typedef std::pair<unsigned, DigestValue> CSPHashValue; |
20 | 15 |
21 enum ContentSecurityPolicyHeaderType { | 16 enum ContentSecurityPolicyHeaderType { |
22 ContentSecurityPolicyHeaderTypeReport, | 17 ContentSecurityPolicyHeaderTypeReport, |
23 ContentSecurityPolicyHeaderTypeEnforce | 18 ContentSecurityPolicyHeaderTypeEnforce |
24 }; | 19 }; |
25 | 20 |
26 enum ContentSecurityPolicyHeaderSource { | 21 enum ContentSecurityPolicyHeaderSource { |
(...skipping 20 matching lines...) Expand all Loading... |
47 PLATFORM_EXPORT bool isNotColonOrSlash(UChar); | 42 PLATFORM_EXPORT bool isNotColonOrSlash(UChar); |
48 PLATFORM_EXPORT bool isMediaTypeCharacter(UChar); | 43 PLATFORM_EXPORT bool isMediaTypeCharacter(UChar); |
49 | 44 |
50 // Only checks for general Base64 encoded chars, not '=' chars since '=' is | 45 // Only checks for general Base64 encoded chars, not '=' chars since '=' is |
51 // positional and may only appear at the end of a Base64 encoded string. | 46 // positional and may only appear at the end of a Base64 encoded string. |
52 PLATFORM_EXPORT bool isBase64EncodedCharacter(UChar); | 47 PLATFORM_EXPORT bool isBase64EncodedCharacter(UChar); |
53 | 48 |
54 } // namespace blink | 49 } // namespace blink |
55 | 50 |
56 #endif | 51 #endif |
OLD | NEW |