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

Unified Diff: net/base/net_util.h

Issue 430193002: Wire 'blink::Platform::isHostnameReservedIPAddress()' to 'net::IsReservedIPAddress()'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Layering. Created 6 years, 4 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
Index: net/base/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index 364d41ebd50dccf77a92cb8c1fd908b667c80cc0..234230d06cd733e934bb1985d10caa7b38159b14 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -372,6 +372,11 @@ NET_EXPORT_PRIVATE AddressFamily GetAddressFamily(
// Maps the given AddressFamily to either AF_INET, AF_INET6 or AF_UNSPEC.
NET_EXPORT_PRIVATE int ConvertAddressFamily(AddressFamily address_family);
+// Parses a URL-safe IP literal to its numeric value. Returns true on success,
Ryan Sleevi 2014/08/06 19:42:12 // Parses a URL-safe IP literal (see RFC 3986, Sec
Mike West 2014/08/08 08:15:03 Done.
+// and fills |ip_number| with the numeric value.
+NET_EXPORT bool ParseURLHostnameToNumber(const std::string& hostname,
+ IPAddressNumber* ip_number);
+
// Parses an IP address literal (either IPv4 or IPv6) to its numeric value.
// Returns true on success and fills |ip_number| with the numeric value.
NET_EXPORT bool ParseIPLiteralToNumber(const std::string& ip_literal,

Powered by Google App Engine
This is Rietveld 408576698