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

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

Issue 2487983003: Part 2.3: Is policy list subsumed under subsuming policy? (Closed)
Patch Set: Properly handling scheme-source to scheme-source matching 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/CSPSource.h
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSource.h b/third_party/WebKit/Source/core/frame/csp/CSPSource.h
index 63e9cae422f94b43bb086747f19a0d9d10633831..31882d8643a191cfb0ff483709f99ef3145784da 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPSource.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPSource.h
@@ -28,6 +28,7 @@ class CORE_EXPORT CSPSource : public GarbageCollectedFinalized<CSPSource> {
const String& path,
WildcardDisposition hostWildcard,
WildcardDisposition portWildcard);
+ bool isSchemeOnly() const;
bool matches(const KURL&,
ResourceRequest::RedirectStatus =
ResourceRequest::RedirectStatus::NoRedirect) const;
@@ -44,13 +45,14 @@ class CORE_EXPORT CSPSource : public GarbageCollectedFinalized<CSPSource> {
private:
FRIEND_TEST_ALL_PREFIXES(CSPSourceTest, IsSimilar);
FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectCSPSources);
+ FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest,
+ GetIntersectCSPSourcesSchemes);
bool schemeMatches(const String&) const;
bool hostMatches(const String&) const;
bool pathMatches(const String&) const;
// Protocol is necessary to determine default port if it is zero.
bool portMatches(int port, const String& protocol) const;
- bool isSchemeOnly() const;
bool isSimilar(CSPSource* other);
Member<ContentSecurityPolicy> m_policy;

Powered by Google App Engine
This is Rietveld 408576698