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

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

Powered by Google App Engine
This is Rietveld 408576698