Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: net/http/http_network_session.h

Issue 11416058: Integrating the QuicStreamFactory into the network stack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Done Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 SocketPoolType pool_type, 97 SocketPoolType pool_type,
97 const HostPortPair& http_proxy); 98 const HostPortPair& http_proxy);
98 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( 99 SSLClientSocketPool* GetSocketPoolForSSLWithProxy(
99 SocketPoolType pool_type, 100 SocketPoolType pool_type,
100 const HostPortPair& proxy_server); 101 const HostPortPair& proxy_server);
101 102
102 CertVerifier* cert_verifier() { return cert_verifier_; } 103 CertVerifier* cert_verifier() { return cert_verifier_; }
103 ProxyService* proxy_service() { return proxy_service_; } 104 ProxyService* proxy_service() { return proxy_service_; }
104 SSLConfigService* ssl_config_service() { return ssl_config_service_; } 105 SSLConfigService* ssl_config_service() { return ssl_config_service_; }
105 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } 106 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; }
107 QuicStreamFactory* quic_stream_factory() { return &quic_stream_factory_; }
106 HttpAuthHandlerFactory* http_auth_handler_factory() { 108 HttpAuthHandlerFactory* http_auth_handler_factory() {
107 return http_auth_handler_factory_; 109 return http_auth_handler_factory_;
108 } 110 }
109 NetworkDelegate* network_delegate() { 111 NetworkDelegate* network_delegate() {
110 return network_delegate_; 112 return network_delegate_;
111 } 113 }
112 HttpServerProperties* http_server_properties() { 114 HttpServerProperties* http_server_properties() {
113 return http_server_properties_; 115 return http_server_properties_;
114 } 116 }
115 HttpStreamFactory* http_stream_factory() { 117 HttpStreamFactory* http_stream_factory() {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 158
157 // Not const since it's modified by HttpNetworkSessionPeer for testing. 159 // Not const since it's modified by HttpNetworkSessionPeer for testing.
158 ProxyService* proxy_service_; 160 ProxyService* proxy_service_;
159 const scoped_refptr<SSLConfigService> ssl_config_service_; 161 const scoped_refptr<SSLConfigService> ssl_config_service_;
160 162
161 HttpAuthCache http_auth_cache_; 163 HttpAuthCache http_auth_cache_;
162 SSLClientAuthCache ssl_client_auth_cache_; 164 SSLClientAuthCache ssl_client_auth_cache_;
163 scoped_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; 165 scoped_ptr<ClientSocketPoolManager> normal_socket_pool_manager_;
164 scoped_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; 166 scoped_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_;
165 SpdySessionPool spdy_session_pool_; 167 SpdySessionPool spdy_session_pool_;
168 QuicStreamFactory quic_stream_factory_;
166 scoped_ptr<HttpStreamFactory> http_stream_factory_; 169 scoped_ptr<HttpStreamFactory> http_stream_factory_;
167 std::set<HttpResponseBodyDrainer*> response_drainers_; 170 std::set<HttpResponseBodyDrainer*> response_drainers_;
168 171
169 Params params_; 172 Params params_;
170 }; 173 };
171 174
172 } // namespace net 175 } // namespace net
173 176
174 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 177 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698