gfe-relnote: In QUIC, replaces QuicStream::priority_ with QuicStream::precedence_ and pluming it to write_blocked_list. No functional change expected. Not protected.
This is a preparation for using H2 priority.
PiperOrigin-RevId: 260000909
Change-Id: Ieee790614b259509ad12611e17e99511feedc423
diff --git a/quic/quartc/quartc_session.cc b/quic/quartc/quartc_session.cc
index 8a918ca..f851579 100644
--- a/quic/quartc/quartc_session.cc
+++ b/quic/quartc/quartc_session.cc
@@ -301,7 +301,8 @@
// Register the stream to the QuicWriteBlockedList. |priority| is clamped
// between 0 and 7, with 0 being the highest priority and 7 the lowest
// priority.
- write_blocked_streams()->UpdateStreamPriority(stream->id(), priority);
+ write_blocked_streams()->UpdateStreamPriority(
+ stream->id(), spdy::SpdyStreamPrecedence(priority));
if (IsIncomingStream(stream->id())) {
DCHECK(session_delegate_);
diff --git a/quic/quartc/quartc_stream_test.cc b/quic/quartc/quartc_stream_test.cc
index be23b75..719cca7 100644
--- a/quic/quartc/quartc_stream_test.cc
+++ b/quic/quartc/quartc_stream_test.cc
@@ -107,9 +107,9 @@
// Tracks whether the stream is write blocked and its priority.
void RegisterReliableStream(QuicStreamId stream_id,
spdy::SpdyPriority priority) {
- write_blocked_streams()->RegisterStream(stream_id,
- /*is_static_stream=*/false,
- priority);
+ write_blocked_streams()->RegisterStream(
+ stream_id,
+ /*is_static_stream=*/false, spdy::SpdyStreamPrecedence(priority));
}
// The session take ownership of the stream.