OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 scoped_refptr<HttpProxySocketParams> params_; | 126 scoped_refptr<HttpProxySocketParams> params_; |
127 const scoped_refptr<TCPClientSocketPool> tcp_pool_; | 127 const scoped_refptr<TCPClientSocketPool> tcp_pool_; |
128 const scoped_refptr<SSLClientSocketPool> ssl_pool_; | 128 const scoped_refptr<SSLClientSocketPool> ssl_pool_; |
129 const scoped_refptr<HostResolver> resolver_; | 129 const scoped_refptr<HostResolver> resolver_; |
130 | 130 |
131 State next_state_; | 131 State next_state_; |
132 CompletionCallbackImpl<HttpProxyConnectJob> callback_; | 132 CompletionCallbackImpl<HttpProxyConnectJob> callback_; |
133 scoped_ptr<ClientSocketHandle> transport_socket_handle_; | 133 scoped_ptr<ClientSocketHandle> transport_socket_handle_; |
134 scoped_ptr<ClientSocket> transport_socket_; | 134 scoped_ptr<ClientSocket> transport_socket_; |
| 135 bool using_spdy_; |
135 | 136 |
136 DISALLOW_COPY_AND_ASSIGN(HttpProxyConnectJob); | 137 DISALLOW_COPY_AND_ASSIGN(HttpProxyConnectJob); |
137 }; | 138 }; |
138 | 139 |
139 class HttpProxyClientSocketPool : public ClientSocketPool { | 140 class HttpProxyClientSocketPool : public ClientSocketPool { |
140 public: | 141 public: |
141 HttpProxyClientSocketPool( | 142 HttpProxyClientSocketPool( |
142 int max_sockets, | 143 int max_sockets, |
143 int max_sockets_per_group, | 144 int max_sockets_per_group, |
144 const scoped_refptr<ClientSocketPoolHistograms>& histograms, | 145 const scoped_refptr<ClientSocketPoolHistograms>& histograms, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 224 |
224 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); | 225 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); |
225 }; | 226 }; |
226 | 227 |
227 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, | 228 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, |
228 HttpProxySocketParams); | 229 HttpProxySocketParams); |
229 | 230 |
230 } // namespace net | 231 } // namespace net |
231 | 232 |
232 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 233 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |