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

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

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: get_canonical_name -> canonical_name. iterator to indexing Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/tcp_server_socket_win.cc ('k') | net/socket/transport_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TRANSPORT_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 base::TimeDelta timeout_duration, 62 base::TimeDelta timeout_duration,
63 ClientSocketFactory* client_socket_factory, 63 ClientSocketFactory* client_socket_factory,
64 HostResolver* host_resolver, 64 HostResolver* host_resolver,
65 Delegate* delegate, 65 Delegate* delegate,
66 NetLog* net_log); 66 NetLog* net_log);
67 virtual ~TransportConnectJob(); 67 virtual ~TransportConnectJob();
68 68
69 // ConnectJob methods. 69 // ConnectJob methods.
70 virtual LoadState GetLoadState() const OVERRIDE; 70 virtual LoadState GetLoadState() const OVERRIDE;
71 71
72 // Makes |addrlist| start with an IPv4 address if |addrlist| contains any 72 // Rolls |addrlist| forward until the first IPv4 address, if any.
73 // IPv4 address. 73 // WARNING: this method should only be used to implement the prefer-IPv4 hack.
74 // 74 static void MakeAddressListStartWithIPv4(AddressList* addrlist);
75 // WARNING: this method should only be used to implement the prefer-IPv4
76 // hack. It is a public method for the unit tests.
77 static void MakeAddrListStartWithIPv4(AddressList* addrlist);
78 75
79 static const int kIPv6FallbackTimerInMs; 76 static const int kIPv6FallbackTimerInMs;
80 77
81 private: 78 private:
82 enum State { 79 enum State {
83 STATE_RESOLVE_HOST, 80 STATE_RESOLVE_HOST,
84 STATE_RESOLVE_HOST_COMPLETE, 81 STATE_RESOLVE_HOST_COMPLETE,
85 STATE_TRANSPORT_CONNECT, 82 STATE_TRANSPORT_CONNECT,
86 STATE_TRANSPORT_CONNECT_COMPLETE, 83 STATE_TRANSPORT_CONNECT_COMPLETE,
87 STATE_NONE, 84 STATE_NONE,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 207
211 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); 208 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool);
212 }; 209 };
213 210
214 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, 211 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool,
215 TransportSocketParams); 212 TransportSocketParams);
216 213
217 } // namespace net 214 } // namespace net
218 215
219 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 216 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/tcp_server_socket_win.cc ('k') | net/socket/transport_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698