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 "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
11 #include "net/base/host_port_pair.h" | 11 #include "net/base/host_port_pair.h" |
12 #include "net/base/host_resolver.h" | 12 #include "net/base/host_resolver.h" |
13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
14 #include "net/base/ssl_client_auth_cache.h" | 14 #include "net/base/ssl_client_auth_cache.h" |
15 #include "net/http/http_auth_cache.h" | 15 #include "net/http/http_auth_cache.h" |
16 #include "net/http/http_stream_factory.h" | 16 #include "net/http/http_stream_factory.h" |
17 #include "net/quic/quic_stream_factory.h" | |
17 #include "net/spdy/spdy_session_pool.h" | 18 #include "net/spdy/spdy_session_pool.h" |
18 | 19 |
19 namespace base { | 20 namespace base { |
20 class Value; | 21 class Value; |
21 } | 22 } |
22 | 23 |
23 namespace net { | 24 namespace net { |
24 | 25 |
25 class CertVerifier; | 26 class CertVerifier; |
26 class ClientSocketFactory; | 27 class ClientSocketFactory; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 bool enable_spdy_ip_pooling; | 73 bool enable_spdy_ip_pooling; |
73 bool enable_spdy_credential_frames; | 74 bool enable_spdy_credential_frames; |
74 bool enable_spdy_compression; | 75 bool enable_spdy_compression; |
75 bool enable_spdy_ping_based_connection_checking; | 76 bool enable_spdy_ping_based_connection_checking; |
76 NextProto spdy_default_protocol; | 77 NextProto spdy_default_protocol; |
77 size_t spdy_initial_recv_window_size; | 78 size_t spdy_initial_recv_window_size; |
78 size_t spdy_initial_max_concurrent_streams; | 79 size_t spdy_initial_max_concurrent_streams; |
79 size_t spdy_max_concurrent_streams_limit; | 80 size_t spdy_max_concurrent_streams_limit; |
80 SpdySessionPool::TimeFunc time_func; | 81 SpdySessionPool::TimeFunc time_func; |
81 std::string trusted_spdy_proxy; | 82 std::string trusted_spdy_proxy; |
83 uint16 force_quic_port; | |
82 }; | 84 }; |
83 | 85 |
84 enum SocketPoolType { | 86 enum SocketPoolType { |
85 NORMAL_SOCKET_POOL, | 87 NORMAL_SOCKET_POOL, |
86 WEBSOCKET_SOCKET_POOL, | 88 WEBSOCKET_SOCKET_POOL, |
87 NUM_SOCKET_POOL_TYPES | 89 NUM_SOCKET_POOL_TYPES |
88 }; | 90 }; |
89 | 91 |
90 explicit HttpNetworkSession(const Params& params); | 92 explicit HttpNetworkSession(const Params& params); |
91 | 93 |
(...skipping 15 matching lines...) Expand all Loading... | |
107 SocketPoolType pool_type, | 109 SocketPoolType pool_type, |
108 const HostPortPair& http_proxy); | 110 const HostPortPair& http_proxy); |
109 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( | 111 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( |
110 SocketPoolType pool_type, | 112 SocketPoolType pool_type, |
111 const HostPortPair& proxy_server); | 113 const HostPortPair& proxy_server); |
112 | 114 |
113 CertVerifier* cert_verifier() { return cert_verifier_; } | 115 CertVerifier* cert_verifier() { return cert_verifier_; } |
114 ProxyService* proxy_service() { return proxy_service_; } | 116 ProxyService* proxy_service() { return proxy_service_; } |
115 SSLConfigService* ssl_config_service() { return ssl_config_service_; } | 117 SSLConfigService* ssl_config_service() { return ssl_config_service_; } |
116 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } | 118 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } |
119 QuicStreamFactory* quic_stream_factory() { return &quic_stream_factory_; } | |
117 HttpAuthHandlerFactory* http_auth_handler_factory() { | 120 HttpAuthHandlerFactory* http_auth_handler_factory() { |
118 return http_auth_handler_factory_; | 121 return http_auth_handler_factory_; |
119 } | 122 } |
120 NetworkDelegate* network_delegate() { | 123 NetworkDelegate* network_delegate() { |
121 return network_delegate_; | 124 return network_delegate_; |
122 } | 125 } |
123 HttpServerProperties* http_server_properties() { | 126 HttpServerProperties* http_server_properties() { |
124 return http_server_properties_; | 127 return http_server_properties_; |
125 } | 128 } |
126 HttpStreamFactory* http_stream_factory() { | 129 HttpStreamFactory* http_stream_factory() { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
167 | 170 |
168 // Not const since it's modified by HttpNetworkSessionPeer for testing. | 171 // Not const since it's modified by HttpNetworkSessionPeer for testing. |
169 ProxyService* proxy_service_; | 172 ProxyService* proxy_service_; |
170 const scoped_refptr<SSLConfigService> ssl_config_service_; | 173 const scoped_refptr<SSLConfigService> ssl_config_service_; |
171 | 174 |
172 HttpAuthCache http_auth_cache_; | 175 HttpAuthCache http_auth_cache_; |
173 SSLClientAuthCache ssl_client_auth_cache_; | 176 SSLClientAuthCache ssl_client_auth_cache_; |
174 scoped_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; | 177 scoped_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; |
175 scoped_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; | 178 scoped_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; |
176 SpdySessionPool spdy_session_pool_; | 179 SpdySessionPool spdy_session_pool_; |
180 QuicStreamFactory quic_stream_factory_; | |
willchan no longer on Chromium
2012/12/11 02:02:08
This needs to be one above the SpdySessionPool. Th
Ryan Hamilton
2012/12/11 20:03:05
Done.
| |
177 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 181 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
178 std::set<HttpResponseBodyDrainer*> response_drainers_; | 182 std::set<HttpResponseBodyDrainer*> response_drainers_; |
179 | 183 |
180 Params params_; | 184 Params params_; |
181 }; | 185 }; |
182 | 186 |
183 } // namespace net | 187 } // namespace net |
184 | 188 |
185 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 189 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |