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 19 matching lines...) Expand all Loading... |
30 bool SourceListDirective::allowInline() const | 30 bool SourceListDirective::allowInline() const |
31 { | 31 { |
32 return m_sourceList.allowInline(); | 32 return m_sourceList.allowInline(); |
33 } | 33 } |
34 | 34 |
35 bool SourceListDirective::allowEval() const | 35 bool SourceListDirective::allowEval() const |
36 { | 36 { |
37 return m_sourceList.allowEval(); | 37 return m_sourceList.allowEval(); |
38 } | 38 } |
39 | 39 |
| 40 bool SourceListDirective::allowDynamic() const |
| 41 { |
| 42 return m_sourceList.allowDynamic(); |
| 43 } |
| 44 |
40 bool SourceListDirective::allowNonce(const String& nonce) const | 45 bool SourceListDirective::allowNonce(const String& nonce) const |
41 { | 46 { |
42 return m_sourceList.allowNonce(nonce.stripWhiteSpace()); | 47 return m_sourceList.allowNonce(nonce.stripWhiteSpace()); |
43 } | 48 } |
44 | 49 |
45 bool SourceListDirective::allowHash(const CSPHashValue& hashValue) const | 50 bool SourceListDirective::allowHash(const CSPHashValue& hashValue) const |
46 { | 51 { |
47 return m_sourceList.allowHash(hashValue); | 52 return m_sourceList.allowHash(hashValue); |
48 } | 53 } |
49 | 54 |
50 bool SourceListDirective::isHashOrNoncePresent() const | 55 bool SourceListDirective::isHashOrNoncePresent() const |
51 { | 56 { |
52 return m_sourceList.isHashOrNoncePresent(); | 57 return m_sourceList.isHashOrNoncePresent(); |
53 } | 58 } |
54 | 59 |
55 uint8_t SourceListDirective::hashAlgorithmsUsed() const | 60 uint8_t SourceListDirective::hashAlgorithmsUsed() const |
56 { | 61 { |
57 return m_sourceList.hashAlgorithmsUsed(); | 62 return m_sourceList.hashAlgorithmsUsed(); |
58 } | 63 } |
59 | 64 |
60 } // namespace blink | 65 } // namespace blink |
OLD | NEW |