From b30241405fd188d9896843a84b52fea3f3c57828 Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Thu, 30 Sep 2010 00:57:13 +0000 Subject: Revert 61015 (broke fetch_client) - Stop refcounting SpdySessionPool. BUG=57343 TEST=none Review URL: http://codereview.chromium.org/3602001 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/3541005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61018 0039d316-1c4b-4281-b951-d872f2087c98 --- net/spdy/spdy_session_pool.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'net/spdy/spdy_session_pool.h') diff --git a/net/spdy/spdy_session_pool.h b/net/spdy/spdy_session_pool.h index 49f9e45..7dc5f27 100644 --- a/net/spdy/spdy_session_pool.h +++ b/net/spdy/spdy_session_pool.h @@ -35,11 +35,11 @@ class SpdySettingsStorage; // This is a very simple pool for open SpdySessions. // TODO(mbelshe): Make this production ready. class SpdySessionPool - : public NetworkChangeNotifier::Observer, + : public base::RefCounted, + public NetworkChangeNotifier::Observer, public SSLConfigService::Observer { public: explicit SpdySessionPool(SSLConfigService* ssl_config_service); - virtual ~SpdySessionPool(); // Either returns an existing SpdySession or creates a new SpdySession for // use. @@ -101,6 +101,7 @@ class SpdySessionPool virtual void OnSSLConfigChanged(); private: + friend class base::RefCounted; friend class SpdySessionPoolPeer; // For testing. friend class SpdyNetworkTransactionTest; // For testing. FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateOverflow); @@ -108,6 +109,8 @@ class SpdySessionPool typedef std::list > SpdySessionList; typedef std::map SpdySessionsMap; + virtual ~SpdySessionPool(); + // Helper functions for manipulating the lists. SpdySessionList* AddSessionList( const HostPortProxyPair& host_port_proxy_pair); -- cgit v1.1