Move stream static checks from QuicSession to QuicStream.
This change is to encourage the rule of "If session needs to hand over things to the stream, let the stream do as much as it can".
gfe-relnote: no behavior change. not protected.
PiperOrigin-RevId: 298695625
Change-Id: I808702aec0f688cb1d2d83e8e84f85a4f73fa1c7
diff --git a/quic/core/quic_stream.h b/quic/core/quic_stream.h
index 36aec05..aa2e11d 100644
--- a/quic/core/quic_stream.h
+++ b/quic/core/quic_stream.h
@@ -348,8 +348,9 @@
// this method or not.
void SendStopSending(uint16_t code);
- // Handle received StopSending frame.
- virtual void OnStopSending(uint16_t /*code*/) {}
+ // Handle received StopSending frame. Returns true if the processing finishes
+ // gracefully.
+ virtual bool OnStopSending(uint16_t code);
// Close the write side of the socket. Further writes will fail.
// Can be called by the subclass or internally.