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 #include "core/frame/csp/SourceListDirective.h" | 5 #include "core/frame/csp/SourceListDirective.h" |
6 | 6 |
7 #include "core/frame/csp/CSPSourceList.h" | 7 #include "core/frame/csp/CSPSourceList.h" |
8 #include "core/frame/csp/ContentSecurityPolicy.h" | 8 #include "core/frame/csp/ContentSecurityPolicy.h" |
9 #include "platform/network/ContentSecurityPolicyParsers.h" | 9 #include "platform/network/ContentSecurityPolicyParsers.h" |
10 #include "platform/weborigin/KURL.h" | 10 #include "platform/weborigin/KURL.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 bool SourceListDirective::allowNonce(const String& nonce) const | 45 bool SourceListDirective::allowNonce(const String& nonce) const |
46 { | 46 { |
47 return m_sourceList.allowNonce(nonce.stripWhiteSpace()); | 47 return m_sourceList.allowNonce(nonce.stripWhiteSpace()); |
48 } | 48 } |
49 | 49 |
50 bool SourceListDirective::allowHash(const CSPHashValue& hashValue) const | 50 bool SourceListDirective::allowHash(const CSPHashValue& hashValue) const |
51 { | 51 { |
52 return m_sourceList.allowHash(hashValue); | 52 return m_sourceList.allowHash(hashValue); |
53 } | 53 } |
54 | 54 |
| 55 bool SourceListDirective::allowHashedAttributes() const |
| 56 { |
| 57 return m_sourceList.allowHashedAttributes(); |
| 58 } |
| 59 |
55 bool SourceListDirective::isHashOrNoncePresent() const | 60 bool SourceListDirective::isHashOrNoncePresent() const |
56 { | 61 { |
57 return m_sourceList.isHashOrNoncePresent(); | 62 return m_sourceList.isHashOrNoncePresent(); |
58 } | 63 } |
59 | 64 |
60 uint8_t SourceListDirective::hashAlgorithmsUsed() const | 65 uint8_t SourceListDirective::hashAlgorithmsUsed() const |
61 { | 66 { |
62 return m_sourceList.hashAlgorithmsUsed(); | 67 return m_sourceList.hashAlgorithmsUsed(); |
63 } | 68 } |
64 | 69 |
65 DEFINE_TRACE(SourceListDirective) | 70 DEFINE_TRACE(SourceListDirective) |
66 { | 71 { |
67 visitor->trace(m_sourceList); | 72 visitor->trace(m_sourceList); |
68 CSPDirective::trace(visitor); | 73 CSPDirective::trace(visitor); |
69 } | 74 } |
70 | 75 |
71 } // namespace blink | 76 } // namespace blink |
OLD | NEW |