OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // ClientSocketPoolManager manages access to all ClientSocketPools. It's a | 5 // ClientSocketPoolManager manages access to all ClientSocketPools. It's a |
6 // simple container for all of them. Most importantly, it handles the lifetime | 6 // simple container for all of them. Most importantly, it handles the lifetime |
7 // and destruction order properly. | 7 // and destruction order properly. |
8 | 8 |
9 #include "net/socket/client_socket_pool_manager.h" | 9 #include "net/socket/client_socket_pool_manager.h" |
10 | 10 |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
560 | 560 |
561 // static | 561 // static |
562 void ClientSocketPoolManager::set_max_sockets_per_proxy_server( | 562 void ClientSocketPoolManager::set_max_sockets_per_proxy_server( |
563 int socket_count) { | 563 int socket_count) { |
564 DCHECK_LT(0, socket_count); | 564 DCHECK_LT(0, socket_count); |
565 DCHECK_GT(100, socket_count); // Sanity check. | 565 DCHECK_GT(100, socket_count); // Sanity check. |
566 // Assert this case early on. The max number of sockets per group cannot | 566 // Assert this case early on. The max number of sockets per group cannot |
567 // exceed the max number of sockets per proxy server. | 567 // exceed the max number of sockets per proxy server. |
568 DCHECK_LE(g_max_sockets_per_group, socket_count); | 568 DCHECK_LE(g_max_sockets_per_group, socket_count); |
569 g_max_sockets_per_proxy_server = socket_count; | 569 g_max_sockets_per_proxy_server = socket_count; |
570 LOG(ERROR) << "### Set the count to : " << socket_count; | |
willchan no longer on Chromium
2011/06/29 22:54:55
Remove.
pastarmovj
2011/07/01 18:52:44
Done.
| |
570 } | 571 } |
571 | 572 |
572 Value* ClientSocketPoolManager::SocketPoolInfoToValue() const { | 573 Value* ClientSocketPoolManager::SocketPoolInfoToValue() const { |
573 ListValue* list = new ListValue(); | 574 ListValue* list = new ListValue(); |
574 list->Append(transport_socket_pool_->GetInfoAsValue("transport_socket_pool", | 575 list->Append(transport_socket_pool_->GetInfoAsValue("transport_socket_pool", |
575 "transport_socket_pool", | 576 "transport_socket_pool", |
576 false)); | 577 false)); |
577 // Third parameter is false because |ssl_socket_pool_| uses | 578 // Third parameter is false because |ssl_socket_pool_| uses |
578 // |transport_socket_pool_| internally, and do not want to add it a second | 579 // |transport_socket_pool_| internally, and do not want to add it a second |
579 // time. | 580 // time. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
709 ssl_config_for_proxy, | 710 ssl_config_for_proxy, |
710 false, | 711 false, |
711 net_log, | 712 net_log, |
712 num_preconnect_streams, | 713 num_preconnect_streams, |
713 NULL, | 714 NULL, |
714 NULL); | 715 NULL); |
715 } | 716 } |
716 | 717 |
717 | 718 |
718 } // namespace net | 719 } // namespace net |
OLD | NEW |