summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_session.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-20 00:13:52 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-20 00:13:52 +0000
commita554a82621c260c45c310deb2d12653e61221ff5 (patch)
tree7cebe573f5deb37144572c53421b6620c59765e0 /net/http/http_network_session.h
parent004a953d5432f7b752aeb1e574a0109b5ca2310a (diff)
downloadchromium_src-a554a82621c260c45c310deb2d12653e61221ff5.zip
chromium_src-a554a82621c260c45c310deb2d12653e61221ff5.tar.gz
chromium_src-a554a82621c260c45c310deb2d12653e61221ff5.tar.bz2
Revert r47395. Looks like it still crashes =/
BUG=40455,40457 Review URL: http://codereview.chromium.org/2104013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47753 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_session.h')
-rw-r--r--net/http/http_network_session.h23
1 files changed, 8 insertions, 15 deletions
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index b8edd71..9674b21 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -10,7 +10,6 @@
#include "base/scoped_ptr.h"
#include "net/base/host_port_pair.h"
#include "net/base/host_resolver.h"
-#include "net/base/network_change_notifier.h"
#include "net/base/ssl_client_auth_cache.h"
#include "net/base/ssl_config_service.h"
#include "net/http/http_alternate_protocols.h"
@@ -29,9 +28,7 @@ class NetworkChangeNotifier;
class SpdySessionPool;
// This class holds session objects used by HttpNetworkTransaction objects.
-class HttpNetworkSession
- : public base::RefCounted<HttpNetworkSession>,
- public NetworkChangeNotifier::Observer {
+class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> {
public:
HttpNetworkSession(
NetworkChangeNotifier* network_change_notifier,
@@ -39,15 +36,9 @@ class HttpNetworkSession
ProxyService* proxy_service,
ClientSocketFactory* client_socket_factory,
SSLConfigService* ssl_config_service,
+ SpdySessionPool* spdy_session_pool,
HttpAuthHandlerFactory* http_auth_handler_factory);
- // NetworkChangeNotifier::Observer methods:
- virtual void OnIPAddressChanged();
-
- // Flushes cached data in the HttpNetworkSession. Typically called on IP
- // address change.
- void Flush();
-
HttpAuthCache* auth_cache() { return &auth_cache_; }
SSLClientAuthCache* ssl_client_auth_cache() {
return &ssl_client_auth_cache_;
@@ -91,6 +82,10 @@ class HttpNetworkSession
return http_auth_handler_factory_;
}
+ // Replace the current socket pool with a new one. This effectively
+ // abandons the current pool. This is only used for debugging.
+ void ReplaceTCPSocketPool();
+
static void set_max_sockets_per_group(int socket_count);
static uint16 fixed_http_port();
@@ -110,17 +105,15 @@ class HttpNetworkSession
~HttpNetworkSession();
- scoped_refptr<TCPClientSocketPool> CreateNewTCPSocketPool();
-
HttpAuthCache auth_cache_;
SSLClientAuthCache ssl_client_auth_cache_;
HttpAlternateProtocols alternate_protocols_;
NetworkChangeNotifier* const network_change_notifier_;
- ClientSocketFactory* socket_factory_;
- scoped_refptr<HostResolver> host_resolver_;
scoped_refptr<TCPClientSocketPool> tcp_socket_pool_;
HTTPProxySocketPoolMap http_proxy_socket_pool_;
SOCKSSocketPoolMap socks_socket_pool_;
+ ClientSocketFactory* socket_factory_;
+ scoped_refptr<HostResolver> host_resolver_;
scoped_refptr<ProxyService> proxy_service_;
scoped_refptr<SSLConfigService> ssl_config_service_;
scoped_refptr<SpdySessionPool> spdy_session_pool_;