Move methods related to stream priority change to StreamDelegateInterface.
gfe-relnote: no behavior change. not protected.
PiperOrigin-RevId: 296006373
Change-Id: I68eda3a4373ecc1095eb484640bd17de174af434
diff --git a/quic/core/quic_stream.cc b/quic/core/quic_stream.cc
index 6dcbd36..ffbc7aa 100644
--- a/quic/core/quic_stream.cc
+++ b/quic/core/quic_stream.cc
@@ -366,7 +366,7 @@
CloseWriteSide();
}
if (type_ != CRYPTO) {
- session_->RegisterStreamPriority(id, is_static_, precedence_);
+ stream_delegate_->RegisterStreamPriority(id, is_static_, precedence_);
}
}
@@ -378,8 +378,8 @@
<< send_buffer_.stream_bytes_outstanding()
<< ", fin_outstanding: " << fin_outstanding_;
}
- if (session_ != nullptr && type_ != CRYPTO) {
- session_->UnregisterStreamPriority(id(), is_static_);
+ if (stream_delegate_ != nullptr && type_ != CRYPTO) {
+ stream_delegate_->UnregisterStreamPriority(id(), is_static_);
}
}
@@ -551,7 +551,7 @@
MaybeSendPriorityUpdateFrame();
- session_->UpdateStreamPriority(id(), precedence);
+ stream_delegate_->UpdateStreamPriority(id(), precedence);
}
void QuicStream::WriteOrBufferData(