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

Unified Diff: net/base/url_util.h

Issue 1876683002: Implement SDCH Dictionary domain matching as per RFC 2965 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Factor out IsDomainMatch from CanonicalCookie and use it in SdchDictionary. Created 4 years, 8 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
« no previous file with comments | « net/base/sdch_dictionary.cc ('k') | net/base/url_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « net/base/sdch_dictionary.cc ('k') | net/base/url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698