| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/http/http_network_session.h" | 5 #include "net/http/http_network_session.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // static | 136 // static |
| 137 uint16 HttpNetworkSession::fixed_https_port() { | 137 uint16 HttpNetworkSession::fixed_https_port() { |
| 138 return g_fixed_https_port; | 138 return g_fixed_https_port; |
| 139 } | 139 } |
| 140 | 140 |
| 141 // static | 141 // static |
| 142 void HttpNetworkSession::set_fixed_https_port(uint16 port) { | 142 void HttpNetworkSession::set_fixed_https_port(uint16 port) { |
| 143 g_fixed_https_port = port; | 143 g_fixed_https_port = port; |
| 144 } | 144 } |
| 145 | 145 |
| 146 void HttpNetworkSession::ReplaceTCPSocketPool() { | |
| 147 tcp_socket_pool_ = new TCPClientSocketPool(g_max_sockets, | |
| 148 g_max_sockets_per_group, | |
| 149 tcp_pool_histograms_, | |
| 150 host_resolver_, | |
| 151 socket_factory_, | |
| 152 network_change_notifier_, | |
| 153 net_log_); | |
| 154 } | |
| 155 | |
| 156 } // namespace net | 146 } // namespace net |
| OLD | NEW |