| Index: net/spdy/spdy_session.h
|
| diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h
|
| index 50447c0b9cce8f1f7697aac091547b9de59a20d5..563f7cfc5fa808203d881806951f501c4130d04e 100644
|
| --- a/net/spdy/spdy_session.h
|
| +++ b/net/spdy/spdy_session.h
|
| @@ -46,7 +46,8 @@ class SpdyStream;
|
| class SSLInfo;
|
|
|
| class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
|
| - public spdy::BufferedSpdyFramerVisitorInterface {
|
| + public spdy::BufferedSpdyFramerVisitorInterface,
|
| + public LayeredPool {
|
| public:
|
| // Create a new SpdySession.
|
| // |host_port_proxy_pair| is the host/port that this session connects to, and
|
| @@ -282,6 +283,9 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
|
|
|
| int GetProtocolVersion() const;
|
|
|
| + // LayeredPool implementation.
|
| + virtual bool CloseOneIdleConnection() OVERRIDE;
|
| +
|
| private:
|
| friend class base::RefCounted<SpdySession>;
|
|
|
| @@ -289,9 +293,11 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
|
| 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,
|
|
|