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

Side by Side Diff: net/socket/websocket_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
« no previous file with comments | « net/socket/websocket_transport_client_socket_pool.h ('k') | net/spdy/spdy_session.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/websocket_transport_client_socket_pool.h" 5 #include "net/socket/websocket_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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } 456 }
457 stalled_request_map_.clear(); 457 stalled_request_map_.clear();
458 stalled_request_queue_.clear(); 458 stalled_request_queue_.clear();
459 flushing_ = false; 459 flushing_ = false;
460 } 460 }
461 461
462 void WebSocketTransportClientSocketPool::CloseIdleSockets() { 462 void WebSocketTransportClientSocketPool::CloseIdleSockets() {
463 // We have no idle sockets. 463 // We have no idle sockets.
464 } 464 }
465 465
466 void WebSocketTransportClientSocketPool::CloseIdleSocketsInGroup(
467 const std::string& group_name) {
468 // We have no idle sockets.
469 }
470
466 int WebSocketTransportClientSocketPool::IdleSocketCount() const { 471 int WebSocketTransportClientSocketPool::IdleSocketCount() const {
467 return 0; 472 return 0;
468 } 473 }
469 474
470 int WebSocketTransportClientSocketPool::IdleSocketCountInGroup( 475 int WebSocketTransportClientSocketPool::IdleSocketCountInGroup(
471 const std::string& group_name) const { 476 const std::string& group_name) const {
472 return 0; 477 return 0;
473 } 478 }
474 479
475 LoadState WebSocketTransportClientSocketPool::GetLoadState( 480 LoadState WebSocketTransportClientSocketPool::GetLoadState(
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 handle(handle), 715 handle(handle),
711 callback(callback), 716 callback(callback),
712 net_log(net_log) {} 717 net_log(net_log) {}
713 718
714 WebSocketTransportClientSocketPool::StalledRequest::StalledRequest( 719 WebSocketTransportClientSocketPool::StalledRequest::StalledRequest(
715 const StalledRequest& other) = default; 720 const StalledRequest& other) = default;
716 721
717 WebSocketTransportClientSocketPool::StalledRequest::~StalledRequest() {} 722 WebSocketTransportClientSocketPool::StalledRequest::~StalledRequest() {}
718 723
719 } // namespace net 724 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/websocket_transport_client_socket_pool.h ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698