summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_session.h
diff options
context:
space:
mode:
authorerikchen@google.com <erikchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 16:50:53 +0000
committererikchen@google.com <erikchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 16:50:53 +0000
commita01ea2207ead85fe7f2a3da9aea662050add3bfb (patch)
tree62ca3eaa0f61291c93c0fb89fec26f8610da2a97 /net/spdy/spdy_session.h
parent05f5654439aa4e5a24e9c4b82225e4f16c352807 (diff)
downloadchromium_src-a01ea2207ead85fe7f2a3da9aea662050add3bfb.zip
chromium_src-a01ea2207ead85fe7f2a3da9aea662050add3bfb.tar.gz
chromium_src-a01ea2207ead85fe7f2a3da9aea662050add3bfb.tar.bz2
SpdySessionPool closes down sessions accurately now.
This may or may not fix 50265. Regardless, the previous behavior was incorrect. TEST=none BUG=none Review URL: http://codereview.chromium.org/3150023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session.h')
-rw-r--r--net/spdy/spdy_session.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h
index 4230289..6fe8d37 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -150,7 +150,9 @@ class SpdySession : public base::RefCounted<SpdySession>,
// the session as permanently closed.
// |err| should not be OK; this function is intended to be called on
// error.
- void CloseSessionOnError(net::Error err);
+ // |remove_from_pool| indicates whether to also remove the session from the
+ // session pool.
+ void CloseSessionOnError(net::Error err, bool remove_from_pool);
// Indicates whether the session is being reused after having successfully
// used to send/receive data in the past.
@@ -158,6 +160,8 @@ class SpdySession : public base::RefCounted<SpdySession>,
return frames_received_ > 0;
}
+ void set_in_session_pool(bool val) { in_session_pool_ = val; }
+
private:
friend class base::RefCounted<SpdySession>;
FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GetActivePushStream);