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

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: nits 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
« no previous file with comments | « net/quic/chromium/quic_chromium_client_session.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.h
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h
index 0e0d08b80fc42af857c97763832f1a7e30fa4dcb..4bbda1b4673c848698a29146a2282401f771e182 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, or 0
+ // otherwise.
+ 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.
« no previous file with comments | « net/quic/chromium/quic_chromium_client_session.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698