Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 public base::MemoryCoordinatorClient { | 78 public base::MemoryCoordinatorClient { |
| 79 public: | 79 public: |
| 80 struct NET_EXPORT Params { | 80 struct NET_EXPORT Params { |
| 81 Params(); | 81 Params(); |
| 82 Params(const Params& other); | 82 Params(const Params& other); |
| 83 ~Params(); | 83 ~Params(); |
| 84 | 84 |
| 85 ClientSocketFactory* client_socket_factory; | 85 ClientSocketFactory* client_socket_factory; |
| 86 HostResolver* host_resolver; | 86 HostResolver* host_resolver; |
| 87 CertVerifier* cert_verifier; | 87 CertVerifier* cert_verifier; |
| 88 bool enable_server_push_cancellation; | |
| 88 ChannelIDService* channel_id_service; | 89 ChannelIDService* channel_id_service; |
| 89 TransportSecurityState* transport_security_state; | 90 TransportSecurityState* transport_security_state; |
| 90 CTVerifier* cert_transparency_verifier; | 91 CTVerifier* cert_transparency_verifier; |
| 91 CTPolicyEnforcer* ct_policy_enforcer; | 92 CTPolicyEnforcer* ct_policy_enforcer; |
| 92 ProxyService* proxy_service; | 93 ProxyService* proxy_service; |
| 93 SSLConfigService* ssl_config_service; | 94 SSLConfigService* ssl_config_service; |
| 94 HttpAuthHandlerFactory* http_auth_handler_factory; | 95 HttpAuthHandlerFactory* http_auth_handler_factory; |
| 95 HttpServerProperties* http_server_properties; | 96 HttpServerProperties* http_server_properties; |
| 96 NetLog* net_log; | 97 NetLog* net_log; |
| 97 HostMappingRules* host_mapping_rules; | 98 HostMappingRules* host_mapping_rules; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 317 // Flush sockets on low memory notifications callback. | 318 // Flush sockets on low memory notifications callback. |
| 318 void OnMemoryPressure( | 319 void OnMemoryPressure( |
| 319 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 320 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
| 320 | 321 |
| 321 // base::MemoryCoordinatorClient implementation: | 322 // base::MemoryCoordinatorClient implementation: |
| 322 void OnPurgeMemory() override; | 323 void OnPurgeMemory() override; |
| 323 | 324 |
| 324 NetLog* const net_log_; | 325 NetLog* const net_log_; |
| 325 HttpServerProperties* const http_server_properties_; | 326 HttpServerProperties* const http_server_properties_; |
| 326 CertVerifier* const cert_verifier_; | 327 CertVerifier* const cert_verifier_; |
| 328 bool enable_server_push_cancellation_; | |
|
Ryan Hamilton
2017/02/16 15:15:07
It's surprising to see this field as a member of H
Zhongyi Shi
2017/02/19 20:19:53
Done.
| |
| 327 HttpAuthHandlerFactory* const http_auth_handler_factory_; | 329 HttpAuthHandlerFactory* const http_auth_handler_factory_; |
| 328 | 330 |
| 329 // Not const since it's modified by HttpNetworkSessionPeer for testing. | 331 // Not const since it's modified by HttpNetworkSessionPeer for testing. |
| 330 ProxyService* proxy_service_; | 332 ProxyService* proxy_service_; |
| 331 const scoped_refptr<SSLConfigService> ssl_config_service_; | 333 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 332 | 334 |
| 333 HttpAuthCache http_auth_cache_; | 335 HttpAuthCache http_auth_cache_; |
| 334 SSLClientAuthCache ssl_client_auth_cache_; | 336 SSLClientAuthCache ssl_client_auth_cache_; |
| 335 std::unique_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; | 337 std::unique_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; |
| 336 std::unique_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; | 338 std::unique_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; |
| 337 std::unique_ptr<ServerPushDelegate> push_delegate_; | 339 std::unique_ptr<ServerPushDelegate> push_delegate_; |
| 338 QuicStreamFactory quic_stream_factory_; | 340 QuicStreamFactory quic_stream_factory_; |
| 339 SpdySessionPool spdy_session_pool_; | 341 SpdySessionPool spdy_session_pool_; |
| 340 std::unique_ptr<HttpStreamFactory> http_stream_factory_; | 342 std::unique_ptr<HttpStreamFactory> http_stream_factory_; |
| 341 std::unique_ptr<HttpStreamFactory> http_stream_factory_for_websocket_; | 343 std::unique_ptr<HttpStreamFactory> http_stream_factory_for_websocket_; |
| 342 std::map<HttpResponseBodyDrainer*, std::unique_ptr<HttpResponseBodyDrainer>> | 344 std::map<HttpResponseBodyDrainer*, std::unique_ptr<HttpResponseBodyDrainer>> |
| 343 response_drainers_; | 345 response_drainers_; |
| 344 std::unique_ptr<NetworkThrottleManager> network_stream_throttler_; | 346 std::unique_ptr<NetworkThrottleManager> network_stream_throttler_; |
| 345 | 347 |
| 346 NextProtoVector next_protos_; | 348 NextProtoVector next_protos_; |
| 347 | 349 |
| 348 Params params_; | 350 Params params_; |
| 349 | 351 |
| 350 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 352 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 351 }; | 353 }; |
| 352 | 354 |
| 353 } // namespace net | 355 } // namespace net |
| 354 | 356 |
| 355 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 357 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |