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

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

Issue 2521573006: Server push cancellation: change the ownership of ServerPushDelegate to HttpNetworkSession. (Closed)
Patch Set: address comments Created 4 years 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 std::unique_ptr<base::Value> QuicInfoToValue() const; 263 std::unique_ptr<base::Value> QuicInfoToValue() const;
264 264
265 void CloseAllConnections(); 265 void CloseAllConnections();
266 void CloseIdleConnections(); 266 void CloseIdleConnections();
267 267
268 // Returns the original Params used to construct this session. 268 // Returns the original Params used to construct this session.
269 const Params& params() const { return params_; } 269 const Params& params() const { return params_; }
270 270
271 bool IsProtocolEnabled(NextProto protocol) const; 271 bool IsProtocolEnabled(NextProto protocol) const;
272 272
273 void SetServerPushDelegate(std::unique_ptr<ServerPushDelegate> push_delegate);
274
273 // Populates |*alpn_protos| with protocols to be used with ALPN. 275 // Populates |*alpn_protos| with protocols to be used with ALPN.
274 void GetAlpnProtos(NextProtoVector* alpn_protos) const; 276 void GetAlpnProtos(NextProtoVector* alpn_protos) const;
275 277
276 // Populates |server_config| and |proxy_config| based on this session and 278 // Populates |server_config| and |proxy_config| based on this session and
277 // |request|. 279 // |request|.
278 void GetSSLConfig(const HttpRequestInfo& request, 280 void GetSSLConfig(const HttpRequestInfo& request,
279 SSLConfig* server_config, 281 SSLConfig* server_config,
280 SSLConfig* proxy_config) const; 282 SSLConfig* proxy_config) const;
281 283
282 private: 284 private:
(...skipping 14 matching lines...) Expand all
297 HttpAuthHandlerFactory* const http_auth_handler_factory_; 299 HttpAuthHandlerFactory* const http_auth_handler_factory_;
298 300
299 // Not const since it's modified by HttpNetworkSessionPeer for testing. 301 // Not const since it's modified by HttpNetworkSessionPeer for testing.
300 ProxyService* proxy_service_; 302 ProxyService* proxy_service_;
301 const scoped_refptr<SSLConfigService> ssl_config_service_; 303 const scoped_refptr<SSLConfigService> ssl_config_service_;
302 304
303 HttpAuthCache http_auth_cache_; 305 HttpAuthCache http_auth_cache_;
304 SSLClientAuthCache ssl_client_auth_cache_; 306 SSLClientAuthCache ssl_client_auth_cache_;
305 std::unique_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; 307 std::unique_ptr<ClientSocketPoolManager> normal_socket_pool_manager_;
306 std::unique_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; 308 std::unique_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_;
309 std::unique_ptr<ServerPushDelegate> push_delegate_;
307 QuicStreamFactory quic_stream_factory_; 310 QuicStreamFactory quic_stream_factory_;
308 SpdySessionPool spdy_session_pool_; 311 SpdySessionPool spdy_session_pool_;
309 std::unique_ptr<HttpStreamFactory> http_stream_factory_; 312 std::unique_ptr<HttpStreamFactory> http_stream_factory_;
310 std::unique_ptr<HttpStreamFactory> http_stream_factory_for_websocket_; 313 std::unique_ptr<HttpStreamFactory> http_stream_factory_for_websocket_;
311 std::map<HttpResponseBodyDrainer*, std::unique_ptr<HttpResponseBodyDrainer>> 314 std::map<HttpResponseBodyDrainer*, std::unique_ptr<HttpResponseBodyDrainer>>
312 response_drainers_; 315 response_drainers_;
313 std::unique_ptr<NetworkThrottleManager> network_stream_throttler_; 316 std::unique_ptr<NetworkThrottleManager> network_stream_throttler_;
314 317
315 NextProtoVector next_protos_; 318 NextProtoVector next_protos_;
316 319
317 Params params_; 320 Params params_;
318 321
319 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 322 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
320 }; 323 };
321 324
322 } // namespace net 325 } // namespace net
323 326
324 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 327 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/quic/chromium/quic_chromium_client_session.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698