Home | History | Annotate | Download | only in base

Lines Matching refs:hostname

381   // If the hostname starts with a bracket, it is either an IPv6 literal or
425 bool IsHostnameNonUnique(const std::string& hostname) {
427 const std::string host_or_ip = hostname.find(':') != std::string::npos ?
428 "[" + hostname + "]" : hostname;
437 // If |hostname| is an IP address, check to see if it's in an IANA-reserved
441 if (!ParseIPLiteralToNumber(hostname.substr(host_info.out_host.begin,
456 // Check for a registry controlled portion of |hostname|, ignoring private
684 // the hostname.
819 bool ParseURLHostnameToNumber(const std::string& hostname,
821 // |hostname| is an already canoncalized hostname, conforming to RFC 3986.
824 url::Component host_comp(0, hostname.size());
827 if (hostname[0] == '[') {
830 hostname.data(), host_comp, &(*ip_number)[0]);
837 hostname.data(), host_comp, &(*ip_number)[0], &num_components);
850 // Try parsing the hostname as an IPv6 literal.