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

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

Issue 14813024: Introduce RequestWebSocketStream into HttpStreamFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 6 months 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
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/http/http_stream_factory.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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"
mmenke 2013/06/03 21:10:18 While you're fixing the headers, mind adding "base
yhirano 2013/06/04 02:20:13 Done.
19 21
20 namespace base { 22 namespace base {
21 class Value; 23 class Value;
22 } 24 }
23 25
24 namespace net { 26 namespace net {
25 27
26 class CertVerifier; 28 class CertVerifier;
27 class ClientSocketFactory; 29 class ClientSocketFactory;
28 class ClientSocketPoolManager; 30 class ClientSocketPoolManager;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/http/http_stream_factory.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698