Index: net/spdy/spdy_session.h |
=================================================================== |
--- net/spdy/spdy_session.h (revision 218288) |
+++ net/spdy/spdy_session.h (working copy) |
@@ -186,7 +186,7 @@ |
class NET_EXPORT SpdySession : public BufferedSpdyFramerVisitorInterface, |
public SpdyFramerDebugVisitorInterface, |
- public LayeredPool { |
+ public HigherLayeredPool { |
public: |
// TODO(akalin): Use base::TickClock when it becomes available. |
typedef base::TimeTicks (*TimeFunc)(void); |
@@ -480,7 +480,7 @@ |
// Must be used only by |pool_|. |
base::WeakPtr<SpdySession> GetWeakPtr(); |
- // LayeredPool implementation: |
+ // HigherLayeredPool implementation: |
virtual bool CloseOneIdleConnection() OVERRIDE; |
private: |
@@ -906,6 +906,10 @@ |
// empty. |
SpdyStreamId PopStreamToPossiblyResume(); |
+ // Closes the session if it's idle. Much like CloseOneIdleConnection, but |
+ // without the DCHECKs. |
+ void CloseIfIdle(); |
+ |
// -------------------------- |
// Helper methods for testing |
// -------------------------- |