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

Unified Diff: third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.h

Issue 1607243002: Add 'OriginAccessEntry::matchDomain'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 11 months 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/platform/weborigin/OriginAccessEntry.h
diff --git a/third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.h b/third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.h
index d364702af28068aed886f46d13d8d83e451f8062..1d2846f314bfea56741af294272a21dab77a3e34 100644
--- a/third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.h
+++ b/third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.h
@@ -62,7 +62,11 @@ public:
// If host is empty string and SubdomainSetting is not DisallowSubdomains, the entry will match all domains in the specified protocol.
// IPv6 addresses must include brackets (e.g. '[2001:db8:85a3::8a2e:370:7334]', not '2001:db8:85a3::8a2e:370:7334').
OriginAccessEntry(const String& protocol, const String& host, SubdomainSetting);
+
+ // 'matchesOrigin' requires a protocol match (e.g. 'http' != 'https'). 'matchesDomain'
+ // relaxes this constraint.
MatchResult matchesOrigin(const SecurityOrigin&) const;
+ MatchResult matchesDomain(const SecurityOrigin&) const;
const String& protocol() const { return m_protocol; }
const String& host() const { return m_host; }
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698