Index: net/spdy/spdy_session.h |
=================================================================== |
--- net/spdy/spdy_session.h (revision 129292) |
+++ net/spdy/spdy_session.h (working copy) |
@@ -50,7 +50,8 @@ |
class SSLInfo; |
class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>, |
- public BufferedSpdyFramerVisitorInterface { |
+ public BufferedSpdyFramerVisitorInterface, |
+ public LayeredPool { |
public: |
// Create a new SpdySession. |
// |host_port_proxy_pair| is the host/port that this session connects to, and |
@@ -268,6 +269,9 @@ |
int GetProtocolVersion() const; |
+ // LayeredPool implementation. |
+ virtual bool CloseOneIdleConnection() OVERRIDE; |
+ |
private: |
friend class base::RefCounted<SpdySession>; |
@@ -275,9 +279,11 @@ |
FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, Ping); |
FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, FailedPing); |
FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, GetActivePushStream); |
+ FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, CloseOneIdleConnection); |
FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, Ping); |
FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, FailedPing); |
FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, GetActivePushStream); |
+ FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, CloseOneIdleConnection); |
struct PendingCreateStream { |
PendingCreateStream(const GURL& url, RequestPriority priority, |