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

Unified Diff: net/base/registry_controlled_domains/registry_controlled_domain.h

Issue 2568133007: Allow CrossSiteDocumentClassifier to operate on Origins (Closed)
Patch Set: rebase 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: net/base/registry_controlled_domains/registry_controlled_domain.h
diff --git a/net/base/registry_controlled_domains/registry_controlled_domain.h b/net/base/registry_controlled_domains/registry_controlled_domain.h
index 429a5770cc2b26522d6f516a120750b57f03379b..0c106685aa5d57597b763b6cf783e63d8347f0da 100644
--- a/net/base/registry_controlled_domains/registry_controlled_domain.h
+++ b/net/base/registry_controlled_domains/registry_controlled_domain.h
@@ -195,6 +195,9 @@ NET_EXPORT std::string GetDomainAndRegistry(base::StringPiece host,
// URLs. Note that this means the trailing dot, if any, must match too.
// Effectively, callers can use this function to check whether the input URLs
// represent hosts "on the same site".
+NET_EXPORT bool SameDomainOrHost(base::StringPiece host1,
+ base::StringPiece host2,
+ PrivateRegistryFilter filter);
NET_EXPORT bool SameDomainOrHost(const GURL& gurl1, const GURL& gurl2,
PrivateRegistryFilter filter);
NET_EXPORT bool SameDomainOrHost(const url::Origin& origin1,

Powered by Google App Engine
This is Rietveld 408576698