Index: net/base/url_util.h |
diff --git a/net/base/url_util.h b/net/base/url_util.h |
index 75f7b620be0686210434d30c4452d76efb40997f..5b71f218cecc7b2e25de3fd7e5e9dc85aa045fd4 100644 |
--- a/net/base/url_util.h |
+++ b/net/base/url_util.h |
@@ -172,6 +172,11 @@ NET_EXPORT_PRIVATE bool HasGoogleHost(const GURL& url); |
NET_EXPORT_PRIVATE bool IsLocalHostname(base::StringPiece host, |
bool* is_local6); |
+// Returns true if the |domain| matches the given |host| as described in |
+// section 5.1.3 of RFC 6265. |
+NET_EXPORT_PRIVATE bool IsDomainMatch(const std::string& domain, |
+ const std::string& host); |
+ |
} // namespace net |
#endif // NET_BASE_URL_UTIL_H_ |