For quic loss detection tuning, add a new reward function using average http latency and run it side by side with the existing reward function. protected by --gfe2_reloadable_flag_quic_enable_loss_detection_experiment_at_gfe.

PiperOrigin-RevId: 319825747
Change-Id: Ic990510ce43f71990edb1ecc7180b8459e706173
diff --git a/quic/core/quic_connection_stats.h b/quic/core/quic_connection_stats.h
index 3579be0..529a4ef 100644
--- a/quic/core/quic_connection_stats.h
+++ b/quic/core/quic_connection_stats.h
@@ -162,6 +162,15 @@
   // Number of sent packets that were encapsulated using Legacy Version
   // Encapsulation.
   QuicPacketCount sent_legacy_version_encapsulated_packets = 0;
+
+  // HTTP server metrics.
+  // Number of success streams. i.e. streams in which all data are acked and
+  // have no stream error.
+  uint64_t num_responses = 0;
+  // Sum of response times for all success streams. A stream's response time is
+  // the time between stream creation to the time its last ack is received,
+  // minus the peer ack delay in the last ack.
+  QuicTime::Delta total_response_time = QuicTime::Delta::Zero();
 };
 
 }  // namespace quic