| 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/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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 const std::string& group_name, | 585 const std::string& group_name, |
| 586 const void* params, | 586 const void* params, |
| 587 int num_sockets, | 587 int num_sockets, |
| 588 const BoundNetLog& net_log) { | 588 const BoundNetLog& net_log) { |
| 589 const scoped_refptr<SSLSocketParams>* casted_params = | 589 const scoped_refptr<SSLSocketParams>* casted_params = |
| 590 static_cast<const scoped_refptr<SSLSocketParams>*>(params); | 590 static_cast<const scoped_refptr<SSLSocketParams>*>(params); |
| 591 | 591 |
| 592 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log); | 592 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log); |
| 593 } | 593 } |
| 594 | 594 |
| 595 void SSLClientSocketPool::SetPriority(const std::string& group_name, |
| 596 ClientSocketHandle* handle, |
| 597 RequestPriority priority) { |
| 598 base_.SetPriority(group_name, handle, priority); |
| 599 } |
| 600 |
| 595 void SSLClientSocketPool::CancelRequest(const std::string& group_name, | 601 void SSLClientSocketPool::CancelRequest(const std::string& group_name, |
| 596 ClientSocketHandle* handle) { | 602 ClientSocketHandle* handle) { |
| 597 base_.CancelRequest(group_name, handle); | 603 base_.CancelRequest(group_name, handle); |
| 598 } | 604 } |
| 599 | 605 |
| 600 void SSLClientSocketPool::ReleaseSocket(const std::string& group_name, | 606 void SSLClientSocketPool::ReleaseSocket(const std::string& group_name, |
| 601 std::unique_ptr<StreamSocket> socket, | 607 std::unique_ptr<StreamSocket> socket, |
| 602 int id) { | 608 int id) { |
| 603 base_.ReleaseSocket(group_name, std::move(socket), id); | 609 base_.ReleaseSocket(group_name, std::move(socket), id); |
| 604 } | 610 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 if (base_.CloseOneIdleSocket()) | 679 if (base_.CloseOneIdleSocket()) |
| 674 return true; | 680 return true; |
| 675 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 681 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
| 676 } | 682 } |
| 677 | 683 |
| 678 void SSLClientSocketPool::OnSSLConfigChanged() { | 684 void SSLClientSocketPool::OnSSLConfigChanged() { |
| 679 FlushWithError(ERR_NETWORK_CHANGED); | 685 FlushWithError(ERR_NETWORK_CHANGED); |
| 680 } | 686 } |
| 681 | 687 |
| 682 } // namespace net | 688 } // namespace net |
| OLD | NEW |