Index: net/spdy/spdy_session.h |
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h |
index af2ff0cd29f30c328afd64a36c2d44e6396ec47c..fcd2badc18e92c9e04519d1a2d60b7d5f84c6e06 100644 |
--- a/net/spdy/spdy_session.h |
+++ b/net/spdy/spdy_session.h |
@@ -573,6 +573,8 @@ class NET_EXPORT SpdySession : public BufferedSpdyFramerVisitorInterface, |
FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GetActivePushStream); |
FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, DeleteExpiredPushStreams); |
FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, MetricsCollectionOnPushStreams); |
+ FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, CancelPushBeforeClaimed); |
+ FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, CancelPushAfterExpired); |
FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, ProtocolNegotiation); |
FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, ClearSettings); |
FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, AdjustRecvWindowSize); |
@@ -675,6 +677,10 @@ class NET_EXPORT SpdySession : public BufferedSpdyFramerVisitorInterface, |
SpdyPriority priority, |
SpdyHeaderBlock headers); |
+ // Called when the pushed stream should be cancelled. If the pushed stream is |
+ // not claimed and active, sends RST to the server to cancel the stream. |
+ void CancelPush(const GURL& url); |
+ |
// Close the stream pointed to by the given iterator. Note that that |
// stream may hold the last reference to the session. |
void CloseActiveStreamIterator(ActiveStreamMap::iterator it, int status); |