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

Side by Side Diff: net/socket/transport_client_socket_pool.cc

Issue 8745007: Revert 112130 - Close idle connections / SPDY sessions when needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/transport_client_socket_pool.h ('k') | net/spdy/spdy_session.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) 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 #include "net/socket/transport_client_socket_pool.h" 5 #include "net/socket/transport_client_socket_pool.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 const std::string& group_name, 443 const std::string& group_name,
444 StreamSocket* socket, 444 StreamSocket* socket,
445 int id) { 445 int id) {
446 base_.ReleaseSocket(group_name, socket, id); 446 base_.ReleaseSocket(group_name, socket, id);
447 } 447 }
448 448
449 void TransportClientSocketPool::Flush() { 449 void TransportClientSocketPool::Flush() {
450 base_.Flush(); 450 base_.Flush();
451 } 451 }
452 452
453 bool TransportClientSocketPool::IsStalled() const {
454 return base_.IsStalled();
455 }
456
457 void TransportClientSocketPool::CloseIdleSockets() { 453 void TransportClientSocketPool::CloseIdleSockets() {
458 base_.CloseIdleSockets(); 454 base_.CloseIdleSockets();
459 } 455 }
460 456
461 int TransportClientSocketPool::IdleSocketCount() const { 457 int TransportClientSocketPool::IdleSocketCount() const {
462 return base_.idle_socket_count(); 458 return base_.idle_socket_count();
463 } 459 }
464 460
465 int TransportClientSocketPool::IdleSocketCountInGroup( 461 int TransportClientSocketPool::IdleSocketCountInGroup(
466 const std::string& group_name) const { 462 const std::string& group_name) const {
467 return base_.IdleSocketCountInGroup(group_name); 463 return base_.IdleSocketCountInGroup(group_name);
468 } 464 }
469 465
470 LoadState TransportClientSocketPool::GetLoadState( 466 LoadState TransportClientSocketPool::GetLoadState(
471 const std::string& group_name, const ClientSocketHandle* handle) const { 467 const std::string& group_name, const ClientSocketHandle* handle) const {
472 return base_.GetLoadState(group_name, handle); 468 return base_.GetLoadState(group_name, handle);
473 } 469 }
474 470
475 void TransportClientSocketPool::AddLayeredPool(LayeredPool* layered_pool) {
476 base_.AddLayeredPool(layered_pool);
477 }
478
479 void TransportClientSocketPool::RemoveLayeredPool(LayeredPool* layered_pool) {
480 base_.RemoveLayeredPool(layered_pool);
481 }
482
483 DictionaryValue* TransportClientSocketPool::GetInfoAsValue( 471 DictionaryValue* TransportClientSocketPool::GetInfoAsValue(
484 const std::string& name, 472 const std::string& name,
485 const std::string& type, 473 const std::string& type,
486 bool include_nested_pools) const { 474 bool include_nested_pools) const {
487 return base_.GetInfoAsValue(name, type); 475 return base_.GetInfoAsValue(name, type);
488 } 476 }
489 477
490 base::TimeDelta TransportClientSocketPool::ConnectionTimeout() const { 478 base::TimeDelta TransportClientSocketPool::ConnectionTimeout() const {
491 return base_.ConnectionTimeout(); 479 return base_.ConnectionTimeout();
492 } 480 }
493 481
494 ClientSocketPoolHistograms* TransportClientSocketPool::histograms() const { 482 ClientSocketPoolHistograms* TransportClientSocketPool::histograms() const {
495 return base_.histograms(); 483 return base_.histograms();
496 } 484 }
497 485
498 } // namespace net 486 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/transport_client_socket_pool.h ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698