| Index: third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp
|
| index a39bd01757bc290cadd2c2d97c2aab3bd65965d3..0c93768c7be16fa081b4d4a4ae641549539c37e9 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp
|
| @@ -696,6 +696,17 @@ bool SourceListDirective::subsumes(
|
| return CSPSource::firstSubsumesSecond(normalizedA, normalizedB);
|
| }
|
|
|
| +WebContentSecurityPolicySourceList SourceListDirective::expose() const {
|
| + WebContentSecurityPolicySourceList sourceList;
|
| + sourceList.allowSelf = m_allowSelf;
|
| + sourceList.allowStar = m_allowStar;
|
| + WebVector<WebContentSecurityPolicySourceExpression> list(m_list.size());
|
| + for (size_t i = 0; i < m_list.size(); ++i)
|
| + list[i] = m_list[i]->expose();
|
| + sourceList.sourceList.swap(list);
|
| + return sourceList;
|
| +}
|
| +
|
| bool SourceListDirective::subsumesNoncesAndHashes(
|
| const HashSet<String>& nonces,
|
| const HashSet<CSPHashValue> hashes) const {
|
|
|