Merge QuicStream::ValidateFlowControlLimit() into QuicStream::ConfigSendWindowOffset(). No behavior change. not protected. PiperOrigin-RevId: 325854323 Change-Id: I99220463651fc308c49d88ab754d2c8311bc1a34
diff --git a/quic/core/quic_stream.h b/quic/core/quic_stream.h index 8d7ce19..a01d163 100644 --- a/quic/core/quic_stream.h +++ b/quic/core/quic_stream.h
@@ -179,12 +179,6 @@ // Send PRIORITY_UPDATE frame if application protocol supports it. virtual void MaybeSendPriorityUpdateFrame() {} - // Closes the connection and returns false if |new_window| is lower than - // stream's current flow control window. - // Returns true otherwise. - bool ValidateFlowControlLimit(QuicStreamOffset new_window, - bool was_zero_rtt_rejected); - // Sets |priority_| to priority. This should only be called before bytes are // written to the server. For a server stream, this is called when a // PRIORITY_UPDATE frame is received. This calls @@ -244,7 +238,11 @@ bool MaybeIncreaseHighestReceivedOffset(QuicStreamOffset new_offset); // Set the flow controller's send window offset from session config. - bool ConfigSendWindowOffset(QuicStreamOffset new_offset); + // |was_zero_rtt_rejected| is true if this config is from a rejected IETF QUIC + // 0-RTT attempt. Closes the connection and returns false if |new_offset| is + // not valid. + bool MaybeConfigSendWindowOffset(QuicStreamOffset new_offset, + bool was_zero_rtt_rejected); // Returns true if the stream has received either a RST_STREAM or a FIN - // either of which gives a definitive number of bytes which the peer has