diff options
Diffstat (limited to 'net/http/http_network_session.h')
-rw-r--r-- | net/http/http_network_session.h | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h index 36cb652..5c8f705 100644 --- a/net/http/http_network_session.h +++ b/net/http/http_network_session.h @@ -71,7 +71,7 @@ class HttpNetworkSession : public base::RefCounted<HttpNetworkSession>, explicit HttpNetworkSession(const Params& params); - HttpAuthCache* auth_cache() { return &auth_cache_; } + HttpAuthCache* http_auth_cache() { return &http_auth_cache_; } SSLClientAuthCache* ssl_client_auth_cache() { return &ssl_client_auth_cache_; } @@ -87,14 +87,6 @@ class HttpNetworkSession : public base::RefCounted<HttpNetworkSession>, return &alternate_protocols_; } - // Access to the SpdySettingsStorage - const SpdySettingsStorage& spdy_settings() const { - return spdy_settings_; - } - SpdySettingsStorage* mutable_spdy_settings() { - return &spdy_settings_; - } - TCPClientSocketPool* tcp_socket_pool() { return socket_pool_manager_.tcp_socket_pool(); } @@ -130,7 +122,7 @@ class HttpNetworkSession : public base::RefCounted<HttpNetworkSession>, } HttpStreamFactory* http_stream_factory() { - return &http_stream_factory_; + return http_stream_factory_.get(); } NetLog* net_log() { @@ -147,30 +139,37 @@ class HttpNetworkSession : public base::RefCounted<HttpNetworkSession>, // responsible for deleting the returned value. Value* SpdySessionPoolInfoToValue() const; - void FlushSocketPools() { + void CloseAllConnections() { socket_pool_manager_.FlushSocketPools(); + spdy_session_pool_.CloseCurrentSessions(); + } + + void CloseIdleConnections() { + socket_pool_manager_.CloseIdleSockets(); } + private: friend class base::RefCounted<HttpNetworkSession>; friend class HttpNetworkSessionPeer; ~HttpNetworkSession(); - HttpAuthCache auth_cache_; - SSLClientAuthCache ssl_client_auth_cache_; - HttpAlternateProtocols alternate_protocols_; - CertVerifier* cert_verifier_; + NetLog* const net_log_; + HttpNetworkDelegate* const network_delegate_; + CertVerifier* const cert_verifier_; + HttpAuthHandlerFactory* const http_auth_handler_factory_; + // Not const since it's modified by HttpNetworkSessionPeer for testing. scoped_refptr<ProxyService> proxy_service_; const scoped_refptr<SSLConfigService> ssl_config_service_; + + HttpAuthCache http_auth_cache_; + SSLClientAuthCache ssl_client_auth_cache_; + HttpAlternateProtocols alternate_protocols_; ClientSocketPoolManager socket_pool_manager_; SpdySessionPool spdy_session_pool_; - HttpStreamFactory http_stream_factory_; - HttpAuthHandlerFactory* const http_auth_handler_factory_; - HttpNetworkDelegate* const network_delegate_; - NetLog* const net_log_; - SpdySettingsStorage spdy_settings_; + scoped_ptr<HttpStreamFactory> http_stream_factory_; std::set<HttpResponseBodyDrainer*> response_drainers_; }; |