Remove notion of static stream in QuicStreamIdManager.
QuicStreamId manager now doesn't keep track of the number of static stream QuicSession has. Instead, when an application of QuicSession sends out its config for max allowed incoming stream, it should add the number of expected static streams.
This allows creation of static streams later in a QuicSession.
gfe-relnote: v99 only, not protected.
PiperOrigin-RevId: 265728450
Change-Id: I3c9ed20f7d439fc9feb3b7f867e8b70c713c33ae
diff --git a/quic/core/uber_quic_stream_id_manager.h b/quic/core/uber_quic_stream_id_manager.h
index 06edb68..61eaf62 100644
--- a/quic/core/uber_quic_stream_id_manager.h
+++ b/quic/core/uber_quic_stream_id_manager.h
@@ -27,29 +27,12 @@
QuicStreamCount max_open_incoming_bidirectional_streams,
QuicStreamCount max_open_incoming_unidirectional_streams);
- // Called when a stream with |stream_id| is registered as a static stream.
- // If |stream_already_counted| is true, the static stream is already counted
- // as an open stream earlier, so no need to count it again.
- void RegisterStaticStream(QuicStreamId id, bool stream_already_counted);
-
- // Sets the limits to max_open_streams + number of static streams
- // in existence. SetMaxOpenOutgoingStreams will QUIC_BUG if it is called
- // after getting the first MAX_STREAMS frame or the transport configuration
- // was done.
- // TODO(fkastenholz): SetMax is cognizant of the number of static streams and
- // sets the maximum to be max_streams + number_of_statics. This should
- // eventually be removed from IETF QUIC.
+ // Sets the limits to max_open_streams.
void SetMaxOpenOutgoingBidirectionalStreams(size_t max_open_streams);
void SetMaxOpenOutgoingUnidirectionalStreams(size_t max_open_streams);
void SetMaxOpenIncomingBidirectionalStreams(size_t max_open_streams);
void SetMaxOpenIncomingUnidirectionalStreams(size_t max_open_streams);
- // Sets the outgoing stream count to the number of static streams + max
- // outgoing streams. Unlike SetMaxOpenOutgoingStreams, this method will
- // not QUIC_BUG if called after getting the first MAX_STREAMS frame.
- void AdjustMaxOpenOutgoingBidirectionalStreams(size_t max_streams);
- void AdjustMaxOpenOutgoingUnidirectionalStreams(size_t max_streams);
-
// Returns true if next outgoing bidirectional stream ID can be allocated.
bool CanOpenNextOutgoingBidirectionalStream();