diff options
Diffstat (limited to 'net/socket/tcp_client_socket_pool.h')
-rw-r--r-- | net/socket/tcp_client_socket_pool.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/net/socket/tcp_client_socket_pool.h b/net/socket/tcp_client_socket_pool.h index 1906dcc..b07ea68 100644 --- a/net/socket/tcp_client_socket_pool.h +++ b/net/socket/tcp_client_socket_pool.h @@ -10,6 +10,8 @@ #include "base/basictypes.h" #include "base/ref_counted.h" #include "base/scoped_ptr.h" +#include "base/time.h" +#include "base/timer.h" #include "net/socket/client_socket_pool_base.h" #include "net/socket/client_socket_pool.h" @@ -24,6 +26,7 @@ class TCPConnectJob : public ConnectJob { TCPConnectJob(const std::string& group_name, const HostResolver::RequestInfo& resolve_info, const ClientSocketHandle* handle, + base::TimeDelta timeout_duration, ClientSocketFactory* client_socket_factory, HostResolver* host_resolver, Delegate* delegate); @@ -31,11 +34,6 @@ class TCPConnectJob : public ConnectJob { // ConnectJob methods. - // Begins the host resolution and the TCP connect. Returns OK on success - // and ERR_IO_PENDING if it cannot immediately service the request. - // Otherwise, it returns a net error code. - virtual int Connect(); - private: enum State { kStateResolveHost, @@ -45,6 +43,11 @@ class TCPConnectJob : public ConnectJob { kStateNone, }; + // Begins the host resolution and the TCP connect. Returns OK on success + // and ERR_IO_PENDING if it cannot immediately service the request. + // Otherwise, it returns a net error code. + virtual int ConnectInternal(); + void OnIOComplete(int result); // Runs the state transition loop. |