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

Unified Diff: net/spdy/buffered_spdy_framer.cc

Issue 2596703002: http2: Update priorities of pushed streams (Closed)
Patch Set: Created 4 years 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/buffered_spdy_framer.cc
diff --git a/net/spdy/buffered_spdy_framer.cc b/net/spdy/buffered_spdy_framer.cc
index a1479c0b154517232e3f4fcd97614c9d6bbdc66f..31c78bdd29f69562f99dfcff2ae4721b0c460537 100644
--- a/net/spdy/buffered_spdy_framer.cc
+++ b/net/spdy/buffered_spdy_framer.cc
@@ -326,6 +326,17 @@ SpdySerializedFrame* BufferedSpdyFramer::CreatePushPromise(
spdy_framer_.SerializePushPromise(push_promise_ir));
}
+// TODO(jgraettinger): Eliminate uses of this method (prefer
+// SpdyPriorityIR).
+SpdySerializedFrame* BufferedSpdyFramer::CreatePriority(
+ SpdyStreamId stream_id,
+ SpdyStreamId dependency_id,
+ int weight,
+ bool exclusive) const {
+ SpdyPriorityIR priority_ir(stream_id, dependency_id, weight, exclusive);
+ return new SpdySerializedFrame(spdy_framer_.SerializePriority(priority_ir));
+}
+
SpdyPriority BufferedSpdyFramer::GetHighestPriority() const {
return spdy_framer_.GetHighestPriority();
}

Powered by Google App Engine
This is Rietveld 408576698