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

Side by Side Diff: net/http/http_proxy_client_socket_pool.h

Issue 8526006: Close idle sockets next time we are about to send data. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: code conventions Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 class NET_EXPORT_PRIVATE HttpProxyClientSocketPool : public ClientSocketPool { 170 class NET_EXPORT_PRIVATE HttpProxyClientSocketPool : public ClientSocketPool {
171 public: 171 public:
172 HttpProxyClientSocketPool( 172 HttpProxyClientSocketPool(
173 int max_sockets, 173 int max_sockets,
174 int max_sockets_per_group, 174 int max_sockets_per_group,
175 ClientSocketPoolHistograms* histograms, 175 ClientSocketPoolHistograms* histograms,
176 HostResolver* host_resolver, 176 HostResolver* host_resolver,
177 TransportClientSocketPool* transport_pool, 177 TransportClientSocketPool* transport_pool,
178 SSLClientSocketPool* ssl_pool, 178 SSLClientSocketPool* ssl_pool,
179 NetLog* net_log); 179 NetLog* net_log,
180 const ClientSocketPoolOptions& options = ClientSocketPoolOptions());
willchan no longer on Chromium 2011/11/15 20:35:29 no default args
180 181
181 virtual ~HttpProxyClientSocketPool(); 182 virtual ~HttpProxyClientSocketPool();
182 183
183 // ClientSocketPool methods: 184 // ClientSocketPool methods:
184 virtual int RequestSocket(const std::string& group_name, 185 virtual int RequestSocket(const std::string& group_name,
185 const void* connect_params, 186 const void* connect_params,
186 RequestPriority priority, 187 RequestPriority priority,
187 ClientSocketHandle* handle, 188 ClientSocketHandle* handle,
188 OldCompletionCallback* callback, 189 OldCompletionCallback* callback,
189 const BoundNetLog& net_log); 190 const BoundNetLog& net_log);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 255
255 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); 256 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool);
256 }; 257 };
257 258
258 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, 259 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool,
259 HttpProxySocketParams); 260 HttpProxySocketParams);
260 261
261 } // namespace net 262 } // namespace net
262 263
263 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ 264 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698