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

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

Issue 1898133002: Add reprioritization to socket pools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated comments. Created 3 years, 10 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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 // TODO(eroman): Split out the host and port parameters. 536 // TODO(eroman): Split out the host and port parameters.
537 net_log.AddEvent( 537 net_log.AddEvent(
538 NetLogEventType::TCP_CLIENT_SOCKET_POOL_REQUESTED_SOCKETS, 538 NetLogEventType::TCP_CLIENT_SOCKET_POOL_REQUESTED_SOCKETS,
539 CreateNetLogHostPortPairCallback( 539 CreateNetLogHostPortPairCallback(
540 &casted_params->get()->destination().host_port_pair())); 540 &casted_params->get()->destination().host_port_pair()));
541 } 541 }
542 542
543 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log); 543 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log);
544 } 544 }
545 545
546 void TransportClientSocketPool::SetPriority(const std::string& group_name,
547 ClientSocketHandle* handle,
548 RequestPriority priority) {
549 base_.SetPriority(group_name, handle, priority);
550 }
551
546 void TransportClientSocketPool::CancelRequest( 552 void TransportClientSocketPool::CancelRequest(
547 const std::string& group_name, 553 const std::string& group_name,
548 ClientSocketHandle* handle) { 554 ClientSocketHandle* handle) {
549 base_.CancelRequest(group_name, handle); 555 base_.CancelRequest(group_name, handle);
550 } 556 }
551 557
552 void TransportClientSocketPool::ReleaseSocket( 558 void TransportClientSocketPool::ReleaseSocket(
553 const std::string& group_name, 559 const std::string& group_name,
554 std::unique_ptr<StreamSocket> socket, 560 std::unique_ptr<StreamSocket> socket,
555 int id) { 561 int id) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 HigherLayeredPool* higher_pool) { 603 HigherLayeredPool* higher_pool) {
598 base_.AddHigherLayeredPool(higher_pool); 604 base_.AddHigherLayeredPool(higher_pool);
599 } 605 }
600 606
601 void TransportClientSocketPool::RemoveHigherLayeredPool( 607 void TransportClientSocketPool::RemoveHigherLayeredPool(
602 HigherLayeredPool* higher_pool) { 608 HigherLayeredPool* higher_pool) {
603 base_.RemoveHigherLayeredPool(higher_pool); 609 base_.RemoveHigherLayeredPool(higher_pool);
604 } 610 }
605 611
606 } // namespace net 612 } // 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