Change QuicStream::CloseConnectionWithDetails() to QuicStream::OnUnrecoverableError. The stream shouldn't be able to instruct the session on what to do. Instead, it should just report its state change and let the session handle it. gfe-relnote: name change only. Not protected. PiperOrigin-RevId: 294966339 Change-Id: Ibff2ed7169d0964ea5f19823445f5aa9ce8c5916
diff --git a/quic/core/quic_stream_sequencer.h b/quic/core/quic_stream_sequencer.h index 0733664..42b583f 100644 --- a/quic/core/quic_stream_sequencer.h +++ b/quic/core/quic_stream_sequencer.h
@@ -42,8 +42,8 @@ virtual void Reset(QuicRstStreamErrorCode error) = 0; // Called when an error has occurred which should result in the connection // being closed. - virtual void CloseConnectionWithDetails(QuicErrorCode error, - const std::string& details) = 0; + virtual void OnUnrecoverableError(QuicErrorCode error, + const std::string& details) = 0; // Returns the stream id of this stream. virtual QuicStreamId id() const = 0;