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

Unified Diff: net/spdy/spdy_test_util_common.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_stream_unittest.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8f5dafb2d836eca0a9c02b7a41981ab7f6608d88..6531d1eaf7b6d42beeaa0263f72b0b29baa21d54 100644
--- a/net/spdy/spdy_test_util_common.h
+++ b/net/spdy/spdy_test_util_common.h
@@ -337,6 +337,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
« no previous file with comments | « net/spdy/spdy_stream_unittest.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698