| 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 #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 <set> | 8 #include <set> |
| 9 #include <string> |
| 10 |
| 9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 10 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
| 11 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" |
| 12 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
| 13 #include "net/dns/host_resolver.h" | 15 #include "net/dns/host_resolver.h" |
| 14 #include "net/http/http_auth_cache.h" | 16 #include "net/http/http_auth_cache.h" |
| 15 #include "net/http/http_stream_factory.h" | 17 #include "net/http/http_stream_factory.h" |
| 16 #include "net/quic/quic_stream_factory.h" | 18 #include "net/quic/quic_stream_factory.h" |
| 17 #include "net/spdy/spdy_session_pool.h" | 19 #include "net/spdy/spdy_session_pool.h" |
| 18 #include "net/ssl/ssl_client_auth_cache.h" | 20 #include "net/ssl/ssl_client_auth_cache.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 131 } |
| 130 NetworkDelegate* network_delegate() { | 132 NetworkDelegate* network_delegate() { |
| 131 return network_delegate_; | 133 return network_delegate_; |
| 132 } | 134 } |
| 133 HttpServerProperties* http_server_properties() { | 135 HttpServerProperties* http_server_properties() { |
| 134 return http_server_properties_; | 136 return http_server_properties_; |
| 135 } | 137 } |
| 136 HttpStreamFactory* http_stream_factory() { | 138 HttpStreamFactory* http_stream_factory() { |
| 137 return http_stream_factory_.get(); | 139 return http_stream_factory_.get(); |
| 138 } | 140 } |
| 141 HttpStreamFactory* websocket_stream_factory() { |
| 142 return websocket_stream_factory_.get(); |
| 143 } |
| 139 NetLog* net_log() { | 144 NetLog* net_log() { |
| 140 return net_log_; | 145 return net_log_; |
| 141 } | 146 } |
| 142 | 147 |
| 143 // Creates a Value summary of the state of the socket pools. The caller is | 148 // Creates a Value summary of the state of the socket pools. The caller is |
| 144 // responsible for deleting the returned value. | 149 // responsible for deleting the returned value. |
| 145 base::Value* SocketPoolInfoToValue() const; | 150 base::Value* SocketPoolInfoToValue() const; |
| 146 | 151 |
| 147 // Creates a Value summary of the state of the SPDY sessions. The caller is | 152 // Creates a Value summary of the state of the SPDY sessions. The caller is |
| 148 // responsible for deleting the returned value. | 153 // responsible for deleting the returned value. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 ProxyService* proxy_service_; | 188 ProxyService* proxy_service_; |
| 184 const scoped_refptr<SSLConfigService> ssl_config_service_; | 189 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 185 | 190 |
| 186 HttpAuthCache http_auth_cache_; | 191 HttpAuthCache http_auth_cache_; |
| 187 SSLClientAuthCache ssl_client_auth_cache_; | 192 SSLClientAuthCache ssl_client_auth_cache_; |
| 188 scoped_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; | 193 scoped_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; |
| 189 scoped_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; | 194 scoped_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; |
| 190 QuicStreamFactory quic_stream_factory_; | 195 QuicStreamFactory quic_stream_factory_; |
| 191 SpdySessionPool spdy_session_pool_; | 196 SpdySessionPool spdy_session_pool_; |
| 192 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 197 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
| 198 scoped_ptr<HttpStreamFactory> websocket_stream_factory_; |
| 193 std::set<HttpResponseBodyDrainer*> response_drainers_; | 199 std::set<HttpResponseBodyDrainer*> response_drainers_; |
| 194 | 200 |
| 195 Params params_; | 201 Params params_; |
| 196 }; | 202 }; |
| 197 | 203 |
| 198 } // namespace net | 204 } // namespace net |
| 199 | 205 |
| 200 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 206 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |