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

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

Issue 2555153002: Part 3.8: Is policy list subsumed under subsuming policy? (Closed)
Patch Set: Fixing c++ empty vector initialization 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
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 cd01cb55202317704e3ce5af54632c2ce964ff27..c9a78360faf0f7f0c684f52ffdf9dc09c6202272 100644
--- a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.h
+++ b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.h
@@ -58,6 +58,7 @@ class CORE_EXPORT SourceListDirective final : public CSPDirective {
GetIntersectCSPSourcesSchemes);
FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectNonces);
FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectHashes);
+ FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetSources);
FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, GetSourceVector);
FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, OperativeDirectiveGivenType);
@@ -108,6 +109,7 @@ class CORE_EXPORT SourceListDirective final : public CSPDirective {
const HeapVector<Member<CSPSource>>& other) const;
bool subsumesNoncesAndHashes(const HashSet<String>& nonces,
const HashSet<CSPHashValue> hashes) const;
+ HeapVector<Member<CSPSource>> getSources(Member<CSPSource>) const;
Member<ContentSecurityPolicy> m_policy;
HeapVector<Member<CSPSource>> m_list;
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/CSPSource.h ('k') | third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698