gfe-relnote: (n/a) Pluming work for loss detection tuning using go/smartchoices. No behavior change, not protected.
This adds 4 'broadcast' points to a quic session: SetLossDetectionTuner, OnMinRttAvailable, OnConfigNegotiated and OnConnectionClosed. Currently nothing is done at these points. The next CL will implement a loss detection tuner and use it from uStreamer.
PiperOrigin-RevId: 298729689
Change-Id: I90cabde07e9d4a1ab82b66cd4d416005db5ee7ec
diff --git a/quic/core/quic_connection.h b/quic/core/quic_connection.h
index b4c2f44..cbfa29f 100644
--- a/quic/core/quic_connection.h
+++ b/quic/core/quic_connection.h
@@ -388,6 +388,12 @@
QuicTime::Delta rtt,
bool allow_cwnd_to_decrease);
+ // Install a loss detection tuner. Must be called before OnConfigNegotiated.
+ void SetLossDetectionTuner(
+ std::unique_ptr<LossDetectionTunerInterface> tuner);
+ // Called by the session when session->is_configured() becomes true.
+ void OnConfigNegotiated();
+
// Returns the max pacing rate for the connection.
virtual QuicBandwidth MaxPacingRate() const;