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

Unified Diff: net/spdy/spdy_session.h

Issue 2596703002: http2: Update priorities of pushed streams (Closed)
Patch Set: actually rebase Created 3 years, 11 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/spdy/spdy_network_transaction_unittest.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 61f2a9d14840448dbd3dddeec8b8e570d4b07f85..4a4d85f95fa1a90de7d0abd7f53880b769071b2a 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -326,7 +326,11 @@ class NET_EXPORT SpdySession : public BufferedSpdyFramerVisitorInterface,
// okay to create a new stream (in which case |spdy_stream| is
// reset). Returns an error (not ERR_IO_PENDING) otherwise, and
// resets |spdy_stream|.
+ //
+ // If a stream was found and the stream is still open, the priority
+ // of that stream is updated to match |priority|.
int GetPushStream(const GURL& url,
+ RequestPriority priority,
base::WeakPtr<SpdyStream>* spdy_stream,
const NetLogWithSource& stream_net_log);
@@ -674,7 +678,6 @@ class NET_EXPORT SpdySession : public BufferedSpdyFramerVisitorInterface,
void TryCreatePushStream(SpdyStreamId stream_id,
SpdyStreamId associated_stream_id,
- SpdyPriority priority,
SpdyHeaderBlock headers);
// Close the stream pointed to by the given iterator. Note that that
@@ -694,13 +697,17 @@ class NET_EXPORT SpdySession : public BufferedSpdyFramerVisitorInterface,
// Send a RST_STREAM frame with the given parameters. There should
// either be no active stream with the given ID, or that active
// stream should be closed shortly after this function is called.
- //
- // TODO(akalin): Rename this to EnqueueResetStreamFrame().
void EnqueueResetStreamFrame(SpdyStreamId stream_id,
RequestPriority priority,
SpdyRstStreamStatus status,
const std::string& description);
+ // Send a PRIORITY frame with the given parameters.
+ void EnqueuePriorityFrame(SpdyStreamId stream_id,
+ SpdyStreamId dependency_id,
+ int weight,
+ bool exclusive);
+
// Calls DoReadLoop. Use this function instead of DoReadLoop when
// posting a task to pump the read loop.
void PumpReadLoop(ReadState expected_read_state, int result);
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698