Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/WebKit/Source/core/frame/csp/SourceListDirective.h

Issue 2545063002: Part 3.6: Is policy list subsumed under subsuming policy? (Closed)
Patch Set: Rebasing Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/csp/SourceListDirective.h
diff --git a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.h b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.h
index 6a3bbd58a09897178dcb45bc8e92cb1a484fea46..cd01cb55202317704e3ce5af54632c2ce964ff27 100644
--- a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.h
+++ b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.h
@@ -56,6 +56,8 @@ class CORE_EXPORT SourceListDirective final : public CSPDirective {
FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectCSPSources);
FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest,
GetIntersectCSPSourcesSchemes);
+ FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectNonces);
+ FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectHashes);
FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, GetSourceVector);
FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, OperativeDirectiveGivenType);
@@ -97,10 +99,15 @@ class CORE_EXPORT SourceListDirective final : public CSPDirective {
CSPSource*);
bool hasSourceMatchInList(const KURL&, ResourceRequest::RedirectStatus) const;
+ HashSet<String> getIntersectNonces(const HashSet<String>& other) const;
+ HashSet<CSPHashValue> getIntersectHashes(
+ const HashSet<CSPHashValue>& other) const;
HeapVector<Member<CSPSource>> getIntersectCSPSources(
const HeapVector<Member<CSPSource>>& other) const;
HeapHashMap<String, Member<CSPSource>> getIntersectSchemesOnly(
const HeapVector<Member<CSPSource>>& other) const;
+ bool subsumesNoncesAndHashes(const HashSet<String>& nonces,
+ const HashSet<CSPHashValue> hashes) const;
Member<ContentSecurityPolicy> m_policy;
HeapVector<Member<CSPSource>> m_list;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698