| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
| 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 const HostResolver::RequestInfo& resolve_info, | 28 const HostResolver::RequestInfo& resolve_info, |
| 29 const ClientSocketHandle* handle, | 29 const ClientSocketHandle* handle, |
| 30 base::TimeDelta timeout_duration, | 30 base::TimeDelta timeout_duration, |
| 31 ClientSocketFactory* client_socket_factory, | 31 ClientSocketFactory* client_socket_factory, |
| 32 HostResolver* host_resolver, | 32 HostResolver* host_resolver, |
| 33 Delegate* delegate, | 33 Delegate* delegate, |
| 34 LoadLog* load_log); | 34 LoadLog* load_log); |
| 35 virtual ~TCPConnectJob(); | 35 virtual ~TCPConnectJob(); |
| 36 | 36 |
| 37 // ConnectJob methods. | 37 // ConnectJob methods. |
| 38 virtual LoadState GetLoadState() const; |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 enum State { | 41 enum State { |
| 41 kStateResolveHost, | 42 kStateResolveHost, |
| 42 kStateResolveHostComplete, | 43 kStateResolveHostComplete, |
| 43 kStateTCPConnect, | 44 kStateTCPConnect, |
| 44 kStateTCPConnectComplete, | 45 kStateTCPConnectComplete, |
| 45 kStateNone, | 46 kStateNone, |
| 46 }; | 47 }; |
| 47 | 48 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 PoolBase base_; | 141 PoolBase base_; |
| 141 | 142 |
| 142 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); | 143 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, HostResolver::RequestInfo) | 146 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, HostResolver::RequestInfo) |
| 146 | 147 |
| 147 } // namespace net | 148 } // namespace net |
| 148 | 149 |
| 149 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 150 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |