| 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 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ | 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include "base/non_thread_safe.h" | 9 #include "base/non_thread_safe.h" |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 HttpAuthHandlerFactory* http_auth_handler_factory() { | 96 HttpAuthHandlerFactory* http_auth_handler_factory() { |
| 97 return http_auth_handler_factory_; | 97 return http_auth_handler_factory_; |
| 98 } | 98 } |
| 99 HttpNetworkDelegate* network_delegate() { | 99 HttpNetworkDelegate* network_delegate() { |
| 100 return network_delegate_; | 100 return network_delegate_; |
| 101 } | 101 } |
| 102 | 102 |
| 103 static void set_max_sockets_per_group(int socket_count); | 103 static void set_max_sockets_per_group(int socket_count); |
| 104 | 104 |
| 105 static uint16 fixed_http_port(); | |
| 106 static void set_fixed_http_port(uint16 port); | |
| 107 | |
| 108 static uint16 fixed_https_port(); | |
| 109 static void set_fixed_https_port(uint16 port); | |
| 110 | |
| 111 #ifdef UNIT_TEST | 105 #ifdef UNIT_TEST |
| 112 void FlushSocketPools() { | 106 void FlushSocketPools() { |
| 113 if (ssl_socket_pool_.get()) | 107 if (ssl_socket_pool_.get()) |
| 114 ssl_socket_pool_->Flush(); | 108 ssl_socket_pool_->Flush(); |
| 115 if (tcp_socket_pool_.get()) | 109 if (tcp_socket_pool_.get()) |
| 116 tcp_socket_pool_->Flush(); | 110 tcp_socket_pool_->Flush(); |
| 117 | 111 |
| 118 for (SSLSocketPoolMap::const_iterator it = | 112 for (SSLSocketPoolMap::const_iterator it = |
| 119 ssl_socket_pools_for_proxies_.begin(); | 113 ssl_socket_pools_for_proxies_.begin(); |
| 120 it != ssl_socket_pools_for_proxies_.end(); | 114 it != ssl_socket_pools_for_proxies_.end(); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 scoped_refptr<SpdySessionPool> spdy_session_pool_; | 163 scoped_refptr<SpdySessionPool> spdy_session_pool_; |
| 170 HttpAuthHandlerFactory* http_auth_handler_factory_; | 164 HttpAuthHandlerFactory* http_auth_handler_factory_; |
| 171 HttpNetworkDelegate* const network_delegate_; | 165 HttpNetworkDelegate* const network_delegate_; |
| 172 NetLog* net_log_; | 166 NetLog* net_log_; |
| 173 SpdySettingsStorage spdy_settings_; | 167 SpdySettingsStorage spdy_settings_; |
| 174 }; | 168 }; |
| 175 | 169 |
| 176 } // namespace net | 170 } // namespace net |
| 177 | 171 |
| 178 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 172 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |