From d16659fd251cabdfdbf456ab8a8e8aafdab410b3 Mon Sep 17 00:00:00 2001 From: "wtc@chromium.org" Date: Mon, 18 May 2009 16:47:32 +0000 Subject: Include C system headers before C++ system headers. Document that GetHostAndPort returns an IPv6 literal address with square brackets. Document that the host parameter to the ProxyServer constructor takes an IPv6 literal address with square brackets. R=eroman BUG=N/A TEST=N/A Review URL: http://codereview.chromium.org/113494 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16287 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/net_util.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'net/base/net_util.h') diff --git a/net/base/net_util.h b/net/base/net_util.h index 9aba789..9c59b90 100644 --- a/net/base/net_util.h +++ b/net/base/net_util.h @@ -7,12 +7,12 @@ #include "build/build_config.h" -#include - #ifdef OS_WIN #include #endif +#include + #include "base/basictypes.h" struct addrinfo; @@ -39,7 +39,8 @@ bool FileURLToFilePath(const GURL& url, FilePath* file_path); // Saves the result into |*host| and |*port|. If the input did not have // the optional port, sets |*port| to -1. // Returns true if the parsing was successful, false otherwise. -// The returned host is NOT canonicalized, and may be invalid. +// The returned host is NOT canonicalized, and may be invalid. If is +// an IPv6 literal address, the returned host includes the square brackets. bool GetHostAndPort(std::string::const_iterator host_and_port_begin, std::string::const_iterator host_and_port_end, std::string* host, -- cgit v1.1