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

Side by Side Diff: net/socket/transport_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
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/socket/transport_client_socket_pool.h" 5 #include "net/socket/transport_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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 } 563 }
564 564
565 void TransportClientSocketPool::FlushWithError(int error) { 565 void TransportClientSocketPool::FlushWithError(int error) {
566 base_.FlushWithError(error); 566 base_.FlushWithError(error);
567 } 567 }
568 568
569 void TransportClientSocketPool::CloseIdleSockets() { 569 void TransportClientSocketPool::CloseIdleSockets() {
570 base_.CloseIdleSockets(); 570 base_.CloseIdleSockets();
571 } 571 }
572 572
573 void TransportClientSocketPool::CloseIdleSocketsInGroup(
574 const std::string& group_name) {
575 base_.CloseIdleSocketsInGroup(group_name);
576 }
577
573 int TransportClientSocketPool::IdleSocketCount() const { 578 int TransportClientSocketPool::IdleSocketCount() const {
574 return base_.idle_socket_count(); 579 return base_.idle_socket_count();
575 } 580 }
576 581
577 int TransportClientSocketPool::IdleSocketCountInGroup( 582 int TransportClientSocketPool::IdleSocketCountInGroup(
578 const std::string& group_name) const { 583 const std::string& group_name) const {
579 return base_.IdleSocketCountInGroup(group_name); 584 return base_.IdleSocketCountInGroup(group_name);
580 } 585 }
581 586
582 LoadState TransportClientSocketPool::GetLoadState( 587 LoadState TransportClientSocketPool::GetLoadState(
(...skipping 20 matching lines...) Expand all
603 HigherLayeredPool* higher_pool) { 608 HigherLayeredPool* higher_pool) {
604 base_.AddHigherLayeredPool(higher_pool); 609 base_.AddHigherLayeredPool(higher_pool);
605 } 610 }
606 611
607 void TransportClientSocketPool::RemoveHigherLayeredPool( 612 void TransportClientSocketPool::RemoveHigherLayeredPool(
608 HigherLayeredPool* higher_pool) { 613 HigherLayeredPool* higher_pool) {
609 base_.RemoveHigherLayeredPool(higher_pool); 614 base_.RemoveHigherLayeredPool(higher_pool);
610 } 615 }
611 616
612 } // namespace net 617 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/transport_client_socket_pool.h ('k') | net/socket/websocket_transport_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698