| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |