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

Unified Diff: net/spdy/spdy_test_util_common.h

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/spdy_test_util_common.h
diff --git a/net/spdy/spdy_test_util_common.h b/net/spdy/spdy_test_util_common.h
index d95d4689109b4231461ba54b6fab9aba4adec60a..333e509fcc7827d12e470a4c4fded55d5ea147d6 100644
--- a/net/spdy/spdy_test_util_common.h
+++ b/net/spdy/spdy_test_util_common.h
@@ -336,6 +336,13 @@ class SpdyTestUtil {
SpdySerializedFrame ConstructSpdyRstStream(SpdyStreamId stream_id,
SpdyRstStreamStatus status);
+ // Construct a PRIORITY frame. The weight is derived from |request_priority|.
+ // Returns the constructed frame. The caller takes ownership of the frame.
+ SpdySerializedFrame ConstructSpdyPriority(SpdyStreamId stream_id,
+ SpdyStreamId parent_stream_id,
+ RequestPriority request_priority,
+ bool exclusive);
+
// Constructs a standard SPDY GET HEADERS frame for |url| with header
// compression.
// |extra_headers| are the extra header-value pairs, which typically

Powered by Google App Engine
This is Rietveld 408576698