diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-15 22:54:10 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-15 22:54:10 +0000 |
commit | 930cc74958f742ff83f80d0c1798bfdbeb490daa (patch) | |
tree | bf8e3f78cb60e2f060489c8bce63ac952d0d5418 /net/socket/tcp_client_socket_pool.cc | |
parent | 5dabe432f517d15c2a478a568f12b3d6f1068eab (diff) | |
download | chromium_src-930cc74958f742ff83f80d0c1798bfdbeb490daa.zip chromium_src-930cc74958f742ff83f80d0c1798bfdbeb490daa.tar.gz chromium_src-930cc74958f742ff83f80d0c1798bfdbeb490daa.tar.bz2 |
Change HostResolver::RequestInfo to take a HostPortPair rather than naked host string + port.
Review URL: http://codereview.chromium.org/3420001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59577 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/tcp_client_socket_pool.cc')
-rw-r--r-- | net/socket/tcp_client_socket_pool.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/socket/tcp_client_socket_pool.cc b/net/socket/tcp_client_socket_pool.cc index f3d94ac..f1f9b9c 100644 --- a/net/socket/tcp_client_socket_pool.cc +++ b/net/socket/tcp_client_socket_pool.cc @@ -23,7 +23,7 @@ namespace net { TCPSocketParams::TCPSocketParams(const HostPortPair& host_port_pair, RequestPriority priority, const GURL& referrer, bool disable_resolver_cache) - : destination_(host_port_pair.host(), host_port_pair.port()) { + : destination_(host_port_pair) { Initialize(priority, referrer, disable_resolver_cache); } @@ -31,7 +31,7 @@ TCPSocketParams::TCPSocketParams(const HostPortPair& host_port_pair, TCPSocketParams::TCPSocketParams(const std::string& host, int port, RequestPriority priority, const GURL& referrer, bool disable_resolver_cache) - : destination_(host, port) { + : destination_(HostPortPair(host, port)) { Initialize(priority, referrer, disable_resolver_cache); } @@ -223,9 +223,7 @@ int TCPClientSocketPool::RequestSocket( NetLog::TYPE_TCP_CLIENT_SOCKET_POOL_REQUESTED_SOCKET, new NetLogStringParameter( "host_and_port", - StringPrintf("%s [port %d]", - casted_params->get()->destination().hostname().c_str(), - casted_params->get()->destination().port()))); + casted_params->get()->destination().host_port_pair().ToString())); } return base_.RequestSocket(group_name, *casted_params, priority, handle, |