Index: net/dns/dns_util.h |
diff --git a/net/dns/dns_util.h b/net/dns/dns_util.h |
index 81eb1a28ba11dd57a0af00b91c9f69274babe707..4867c80f41d9d3f71c3750e34792562c75728478 100644 |
--- a/net/dns/dns_util.h |
+++ b/net/dns/dns_util.h |
@@ -24,6 +24,14 @@ class AddressList; |
NET_EXPORT_PRIVATE bool DNSDomainFromDot(const base::StringPiece& dotted, |
std::string* out); |
+// dotted: a string in dotted form: "www.google.com" |
+// out: a result in DNS form: "\x03www\x06google\x03com\x00" |
+// valid_name: whether or not |IsValidHostLabelCharacter| returned true for |
+// all characters in all labels in the name. |
+bool DNSDomainFromDotWithValidityCheck(const base::StringPiece& dotted, |
+ std::string* out, |
+ bool* valid_name); |
+ |
// Checks that a hostname is valid. Simple wrapper around DNSDomainFromDot. |
NET_EXPORT_PRIVATE bool IsValidDNSDomain(const base::StringPiece& dotted); |