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

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

Issue 2487983003: Part 2.3: Is policy list subsumed under subsuming policy? (Closed)
Patch Set: Adding a comment Created 4 years, 1 month 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 d4729d8cc1b84882d867f6d7ae41029e7a349a4e..282aa6c6e851486a648da3189c6bc36102611a08 100644
--- a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.h
+++ b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.h
@@ -51,6 +51,8 @@ class CORE_EXPORT SourceListDirective final : public CSPDirective {
private:
FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectCSPSources);
+ FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest,
+ GetIntersectCSPSourcesSchemes);
bool parseSource(const UChar* begin,
const UChar* end,
@@ -86,9 +88,13 @@ class CORE_EXPORT SourceListDirective final : public CSPDirective {
void addSourceHash(const ContentSecurityPolicyHashAlgorithm&,
const DigestValue& hash);
+ static void addSourceToMap(HashMap<String, CSPSource*>&, CSPSource*);
sof 2016/12/01 16:15:52 HeapHashMap<String, Member<CSPSource>> is what's p
+
bool hasSourceMatchInList(const KURL&, ResourceRequest::RedirectStatus) const;
HeapVector<Member<CSPSource>> getIntersectCSPSources(
HeapVector<Member<CSPSource>> other);
+ HashMap<String, CSPSource*> getIntersectSchemesOnly(
+ HeapVector<Member<CSPSource>> other);
Member<ContentSecurityPolicy> m_policy;
HeapVector<Member<CSPSource>> m_list;

Powered by Google App Engine
This is Rietveld 408576698