Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1061)

Unified Diff: net/spdy/spdy_session.h

Issue 2351373003: Add methods in spdy/quic session to get stream id of pushed stream given the request url (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_session.h
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h
index 0e0d08b80fc42af857c97763832f1a7e30fa4dcb..c7875cc83f4174a897d530ff6994afab58370b46 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -812,6 +812,10 @@ class NET_EXPORT SpdySession : public BufferedSpdyFramerVisitorInterface,
// that |stream| may hold the last reference to the session.
void DeleteStream(std::unique_ptr<SpdyStream> stream, int status);
+ // Returns the stream id of the push stream if it is not claimed yet.
+ // Else return 0.
Ryan Hamilton 2016/09/22 21:41:33 nit: // Returns the stream id of the push stream i
Zhongyi Shi 2016/09/22 22:57:06 Done.
+ SpdyStreamId GetStreamIdForPush(const GURL& url);
+
// Check if we have a pending pushed-stream for this url
// Returns the stream if found (and returns it from the pending
// list). Returns NULL otherwise.

Powered by Google App Engine
This is Rietveld 408576698