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..a333354ae4fc2be3db1d90aab69219d9111f92b2 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.sources.swap(list); |
+ return sourceList; |
+} |
+ |
bool SourceListDirective::subsumesNoncesAndHashes( |
const HashSet<String>& nonces, |
const HashSet<CSPHashValue> hashes) const { |