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

Unified Diff: net/dns/dns_util.h

Issue 2294343003: Refuse to resolve some types of invalid DNS addresses. (Closed)
Patch Set: Oops Created 4 years, 3 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/dns/dns_hosts_unittest.cc ('k') | net/dns/dns_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_util.h
diff --git a/net/dns/dns_util.h b/net/dns/dns_util.h
index 470242c0cedc11992558c76989d1445ba1e0f8fe..c81ffde34ada56f1957aeebe345f6733eb3ee025 100644
--- a/net/dns/dns_util.h
+++ b/net/dns/dns_util.h
@@ -24,6 +24,9 @@ class AddressList;
NET_EXPORT_PRIVATE bool DNSDomainFromDot(const base::StringPiece& dotted,
std::string* out);
+// Checks that a hostname is valid. Simple wrapper around DNSDomainFromDot.
+NET_EXPORT_PRIVATE bool IsValidDNSDomain(const base::StringPiece& dotted);
+
// DNSDomainToString converts a domain in DNS format to a dotted string.
// Excludes the dot at the end.
NET_EXPORT_PRIVATE std::string DNSDomainToString(
« no previous file with comments | « net/dns/dns_hosts_unittest.cc ('k') | net/dns/dns_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698