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

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

Issue 2470083002: Part 2.1: Is policy list subsumed under subsuming policy? (Closed)
Patch Set: Rebasing on master 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 38752daecb9163b5dc885ed101e7156d0cc3930e..cfa961b9d10d500a013e0b3ee76022da81189d8c 100644
--- a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.h
+++ b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.h
@@ -47,6 +47,8 @@ class CORE_EXPORT SourceListDirective final : public CSPDirective {
uint8_t hashAlgorithmsUsed() const;
private:
+ FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectCSPSources);
+
bool parseSource(const UChar* begin,
const UChar* end,
String& scheme,
@@ -82,6 +84,8 @@ class CORE_EXPORT SourceListDirective final : public CSPDirective {
const DigestValue& hash);
bool hasSourceMatchInList(const KURL&, ResourceRequest::RedirectStatus) const;
+ HeapVector<Member<CSPSource>> getIntersectCSPSources(
+ HeapVector<Member<CSPSource>> other);
Member<ContentSecurityPolicy> m_policy;
HeapVector<Member<CSPSource>> m_list;

Powered by Google App Engine
This is Rietveld 408576698