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 CSPSourceList_h | 5 #ifndef CSPSourceList_h |
6 #define CSPSourceList_h | 6 #define CSPSourceList_h |
7 | 7 |
8 #include "core/frame/csp/CSPSource.h" | 8 #include "core/frame/csp/CSPSource.h" |
9 #include "platform/Crypto.h" | 9 #include "platform/Crypto.h" |
10 #include "platform/network/ContentSecurityPolicyParsers.h" | 10 #include "platform/network/ContentSecurityPolicyParsers.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void addSourceSelf(); | 44 void addSourceSelf(); |
45 void addSourceStar(); | 45 void addSourceStar(); |
46 void addSourceUnsafeInline(); | 46 void addSourceUnsafeInline(); |
47 void addSourceUnsafeEval(); | 47 void addSourceUnsafeEval(); |
48 void addSourceNonce(const String& nonce); | 48 void addSourceNonce(const String& nonce); |
49 void addSourceHash(const ContentSecurityPolicyHashAlgorithm&, const DigestVa
lue& hash); | 49 void addSourceHash(const ContentSecurityPolicyHashAlgorithm&, const DigestVa
lue& hash); |
50 | 50 |
51 ContentSecurityPolicy* m_policy; | 51 ContentSecurityPolicy* m_policy; |
52 Vector<CSPSource> m_list; | 52 Vector<CSPSource> m_list; |
53 String m_directiveName; | 53 String m_directiveName; |
| 54 bool m_allowSelf; |
54 bool m_allowStar; | 55 bool m_allowStar; |
55 bool m_allowInline; | 56 bool m_allowInline; |
56 bool m_allowEval; | 57 bool m_allowEval; |
57 HashSet<String> m_nonces; | 58 HashSet<String> m_nonces; |
58 HashSet<CSPHashValue> m_hashes; | 59 HashSet<CSPHashValue> m_hashes; |
59 uint8_t m_hashAlgorithmsUsed; | 60 uint8_t m_hashAlgorithmsUsed; |
60 }; | 61 }; |
61 | 62 |
62 | 63 |
63 } // namespace blink | 64 } // namespace blink |
64 | 65 |
65 #endif | 66 #endif |
OLD | NEW |