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

Side by Side Diff: net/socket/ssl_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/socket/ssl_client_socket_pool.h ('k') | net/socket/transport_client_socket_pool.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/socket/ssl_client_socket_pool.h" 5 #include "net/socket/ssl_client_socket_pool.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 } 599 }
600 600
601 void SSLClientSocketPool::FlushWithError(int error) { 601 void SSLClientSocketPool::FlushWithError(int error) {
602 base_.FlushWithError(error); 602 base_.FlushWithError(error);
603 } 603 }
604 604
605 void SSLClientSocketPool::CloseIdleSockets() { 605 void SSLClientSocketPool::CloseIdleSockets() {
606 base_.CloseIdleSockets(); 606 base_.CloseIdleSockets();
607 } 607 }
608 608
609 void SSLClientSocketPool::CloseIdleSocketsInGroup(
610 const std::string& group_name) {
611 base_.CloseIdleSocketsInGroup(group_name);
612 }
613
609 int SSLClientSocketPool::IdleSocketCount() const { 614 int SSLClientSocketPool::IdleSocketCount() const {
610 return base_.idle_socket_count(); 615 return base_.idle_socket_count();
611 } 616 }
612 617
613 int SSLClientSocketPool::IdleSocketCountInGroup( 618 int SSLClientSocketPool::IdleSocketCountInGroup(
614 const std::string& group_name) const { 619 const std::string& group_name) const {
615 return base_.IdleSocketCountInGroup(group_name); 620 return base_.IdleSocketCountInGroup(group_name);
616 } 621 }
617 622
618 LoadState SSLClientSocketPool::GetLoadState( 623 LoadState SSLClientSocketPool::GetLoadState(
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 if (base_.CloseOneIdleSocket()) 679 if (base_.CloseOneIdleSocket())
675 return true; 680 return true;
676 return base_.CloseOneIdleConnectionInHigherLayeredPool(); 681 return base_.CloseOneIdleConnectionInHigherLayeredPool();
677 } 682 }
678 683
679 void SSLClientSocketPool::OnSSLConfigChanged() { 684 void SSLClientSocketPool::OnSSLConfigChanged() {
680 FlushWithError(ERR_NETWORK_CHANGED); 685 FlushWithError(ERR_NETWORK_CHANGED);
681 } 686 }
682 687
683 } // namespace net 688 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.h ('k') | net/socket/transport_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698