diff options
Diffstat (limited to 'net/spdy/spdy_session.h')
-rw-r--r-- | net/spdy/spdy_session.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h index 58a2710..313440c 100644 --- a/net/spdy/spdy_session.h +++ b/net/spdy/spdy_session.h @@ -51,8 +51,6 @@ class SpdySession : public base::RefCounted<SpdySession>, // Create a new SpdySession. // |host_port_proxy_pair| is the host/port that this session connects to, and // the proxy configuration settings that it's using. - // |spdy_session_pool| is the SpdySessionPool that owns us. Its lifetime must - // strictly be greater than |this|. // |session| is the HttpNetworkSession. |net_log| is the NetLog that we log // network events to. SpdySession(const HostPortProxyPair& host_port_proxy_pair, @@ -161,9 +159,7 @@ class SpdySession : public base::RefCounted<SpdySession>, return frames_received_ > 0; } - void set_spdy_session_pool(SpdySessionPool* pool) { - spdy_session_pool_ = NULL; - } + void set_in_session_pool(bool val) { in_session_pool_ = val; } // Access to the number of active and pending streams. These are primarily // available for testing and diagnostics. @@ -298,9 +294,7 @@ class SpdySession : public base::RefCounted<SpdySession>, // The domain this session is connected to. const HostPortProxyPair host_port_proxy_pair_; - // |spdy_session_pool_| owns us, therefore its lifetime must exceed ours. We - // set this to NULL after we are removed from the pool. - SpdySessionPool* spdy_session_pool_; + scoped_refptr<SpdySessionPool> spdy_session_pool_; SpdySettingsStorage* spdy_settings_; // The socket handle for this session. @@ -367,6 +361,8 @@ class SpdySession : public base::RefCounted<SpdySession>, bool received_settings_; // Did this session receive at least one settings // frame. + bool in_session_pool_; // True if the session is currently in the pool. + // Initial send window size for the session; can be changed by an // arriving SETTINGS frame; newly created streams use this value for the // initial send window size. |