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

Side by Side Diff: net/socket/tcp_client_socket_pool.h

Issue 176024: Make GetLoadState virtual in ConnectJob(). (Closed)
Patch Set: Created 11 years, 3 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 unified diff | Download patch
« no previous file with comments | « net/socket/client_socket_pool_base_unittest.cc ('k') | net/socket/tcp_client_socket_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/socket/client_socket_pool_base_unittest.cc ('k') | net/socket/tcp_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698