And inline ShouldProcessPendingStreamImmediately() implementation in QuicSession. PiperOrigin-RevId: 572999761
diff --git a/quiche/quic/core/quic_session.cc b/quiche/quic/core/quic_session.cc index 462a564..5a66301 100644 --- a/quiche/quic/core/quic_session.cc +++ b/quiche/quic/core/quic_session.cc
@@ -240,7 +240,7 @@ if (ShouldProcessFrameByPendingStream(STREAM_FRAME, stream_id)) { PendingStream* pending = PendingStreamOnStreamFrame(frame); - if (pending != nullptr && ShouldProcessPendingStreamImmediately()) { + if (pending != nullptr && IsEncryptionEstablished()) { MaybeProcessPendingStream(pending); } return; @@ -2731,9 +2731,5 @@ } } -bool QuicSession::ShouldProcessPendingStreamImmediately() const { - return IsEncryptionEstablished(); -} - #undef ENDPOINT // undef for jumbo builds } // namespace quic
diff --git a/quiche/quic/core/quic_session.h b/quiche/quic/core/quic_session.h index 1be2c30..0531877 100644 --- a/quiche/quic/core/quic_session.h +++ b/quiche/quic/core/quic_session.h
@@ -734,10 +734,6 @@ return false; } - // Returns true if a pending stream should be converted to a real stream after - // a corresponding STREAM_FRAME is received. - bool ShouldProcessPendingStreamImmediately() const; - spdy::SpdyPriority GetSpdyPriorityofStream(QuicStreamId stream_id) const { return write_blocked_streams_->GetPriorityOfStream(stream_id) .http()