| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 void SSLClientSocketPool::RequestSockets(const std::string& group_name, | 574 void SSLClientSocketPool::RequestSockets(const std::string& group_name, |
| 575 const void* params, | 575 const void* params, |
| 576 int num_sockets, | 576 int num_sockets, |
| 577 const NetLogWithSource& net_log) { | 577 const NetLogWithSource& net_log) { |
| 578 const scoped_refptr<SSLSocketParams>* casted_params = | 578 const scoped_refptr<SSLSocketParams>* casted_params = |
| 579 static_cast<const scoped_refptr<SSLSocketParams>*>(params); | 579 static_cast<const scoped_refptr<SSLSocketParams>*>(params); |
| 580 | 580 |
| 581 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log); | 581 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log); |
| 582 } | 582 } |
| 583 | 583 |
| 584 void SSLClientSocketPool::SetPriority(const std::string& group_name, |
| 585 ClientSocketHandle* handle, |
| 586 RequestPriority priority) { |
| 587 base_.SetPriority(group_name, handle, priority); |
| 588 } |
| 589 |
| 584 void SSLClientSocketPool::CancelRequest(const std::string& group_name, | 590 void SSLClientSocketPool::CancelRequest(const std::string& group_name, |
| 585 ClientSocketHandle* handle) { | 591 ClientSocketHandle* handle) { |
| 586 base_.CancelRequest(group_name, handle); | 592 base_.CancelRequest(group_name, handle); |
| 587 } | 593 } |
| 588 | 594 |
| 589 void SSLClientSocketPool::ReleaseSocket(const std::string& group_name, | 595 void SSLClientSocketPool::ReleaseSocket(const std::string& group_name, |
| 590 std::unique_ptr<StreamSocket> socket, | 596 std::unique_ptr<StreamSocket> socket, |
| 591 int id) { | 597 int id) { |
| 592 base_.ReleaseSocket(group_name, std::move(socket), id); | 598 base_.ReleaseSocket(group_name, std::move(socket), id); |
| 593 } | 599 } |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 if (base_.CloseOneIdleSocket()) | 674 if (base_.CloseOneIdleSocket()) |
| 669 return true; | 675 return true; |
| 670 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 676 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
| 671 } | 677 } |
| 672 | 678 |
| 673 void SSLClientSocketPool::OnSSLConfigChanged() { | 679 void SSLClientSocketPool::OnSSLConfigChanged() { |
| 674 FlushWithError(ERR_NETWORK_CHANGED); | 680 FlushWithError(ERR_NETWORK_CHANGED); |
| 675 } | 681 } |
| 676 | 682 |
| 677 } // namespace net | 683 } // namespace net |
| OLD | NEW |