diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2018-01-11 05:56:18 +0300 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-01-11 10:25:26 +0000 |
commit | 79143ccfc158ec4fffc49eee600d600edb342b16 (patch) | |
tree | 0e078499d8fe3e8627e3612537e61f2dd1029625 /Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.h | |
parent | cb895f50d5c08976c0f5ecbb82e6bd19d9ea090d (diff) |
Import WebKit commit a8b574fb3cd509a2d3f2a1568ad0a66d1bf0f6e8
Change-Id: I66add69e6d08b74111ec8e7e4401e4d813501206
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.h')
-rw-r--r-- | Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.h b/Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.h index 9d4e2114c..ac650052d 100644 --- a/Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.h +++ b/Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.h @@ -39,9 +39,13 @@ public: ContentSecurityPolicySourceListDirective(const String& name, const String& value, const ContentSecurityPolicy&); bool allows(const URL&); + bool allows(const ContentSecurityPolicyHash&) const; + bool allows(const String& nonce) const; bool allowInline() const { return m_sourceList.allowInline(); } bool allowEval() const { return m_sourceList.allowEval(); } + OptionSet<ContentSecurityPolicyHashAlgorithm> hashAlgorithmsUsed() const { return m_sourceList.hashAlgorithmsUsed(); } + private: ContentSecurityPolicySourceList m_sourceList; }; |