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

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

Issue 2678353003: Close idle H2 sockets when SpdySession is initialized. (Closed)
Patch Set: Address comments to hook directly to ClientSocketHandle Created 3 years, 9 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/http/http_proxy_client_socket_pool.h ('k') | net/socket/client_socket_handle.h » ('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 #include "net/http/http_proxy_client_socket_pool.h" 5 #include "net/http/http_proxy_client_socket_pool.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 } 259 }
260 260
261 void HttpProxyClientSocketPool::FlushWithError(int error) { 261 void HttpProxyClientSocketPool::FlushWithError(int error) {
262 base_.FlushWithError(error); 262 base_.FlushWithError(error);
263 } 263 }
264 264
265 void HttpProxyClientSocketPool::CloseIdleSockets() { 265 void HttpProxyClientSocketPool::CloseIdleSockets() {
266 base_.CloseIdleSockets(); 266 base_.CloseIdleSockets();
267 } 267 }
268 268
269 void HttpProxyClientSocketPool::CloseIdleSocketsInGroup(
270 const std::string& group_name) {
271 base_.CloseIdleSocketsInGroup(group_name);
272 }
273
269 int HttpProxyClientSocketPool::IdleSocketCount() const { 274 int HttpProxyClientSocketPool::IdleSocketCount() const {
270 return base_.idle_socket_count(); 275 return base_.idle_socket_count();
271 } 276 }
272 277
273 int HttpProxyClientSocketPool::IdleSocketCountInGroup( 278 int HttpProxyClientSocketPool::IdleSocketCountInGroup(
274 const std::string& group_name) const { 279 const std::string& group_name) const {
275 return base_.IdleSocketCountInGroup(group_name); 280 return base_.IdleSocketCountInGroup(group_name);
276 } 281 }
277 282
278 LoadState HttpProxyClientSocketPool::GetLoadState( 283 LoadState HttpProxyClientSocketPool::GetLoadState(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 base_.RemoveHigherLayeredPool(higher_pool); 325 base_.RemoveHigherLayeredPool(higher_pool);
321 } 326 }
322 327
323 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { 328 bool HttpProxyClientSocketPool::CloseOneIdleConnection() {
324 if (base_.CloseOneIdleSocket()) 329 if (base_.CloseOneIdleSocket())
325 return true; 330 return true;
326 return base_.CloseOneIdleConnectionInHigherLayeredPool(); 331 return base_.CloseOneIdleConnectionInHigherLayeredPool();
327 } 332 }
328 333
329 } // namespace net 334 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_pool.h ('k') | net/socket/client_socket_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698