Index: net/quic/core/quic_sent_packet_manager.h |
diff --git a/net/quic/core/quic_sent_packet_manager.h b/net/quic/core/quic_sent_packet_manager.h |
index a875bc9f1e0dd8b9f632e2a91b343cd55942d27e..d2beca60173b53087841f0b2d8623192dcc9ea2f 100644 |
--- a/net/quic/core/quic_sent_packet_manager.h |
+++ b/net/quic/core/quic_sent_packet_manager.h |
@@ -15,6 +15,7 @@ |
#include "base/macros.h" |
#include "net/base/linked_hash_map.h" |
+#include "net/quic/core/congestion_control/general_loss_algorithm.h" |
#include "net/quic/core/congestion_control/loss_detection_interface.h" |
#include "net/quic/core/congestion_control/pacing_sender.h" |
#include "net/quic/core/congestion_control/rtt_stats.h" |
@@ -343,7 +344,9 @@ class NET_EXPORT_PRIVATE QuicSentPacketManager |
const QuicPacketCount initial_congestion_window_; |
RttStats rtt_stats_; |
std::unique_ptr<SendAlgorithmInterface> send_algorithm_; |
- std::unique_ptr<LossDetectionInterface> loss_algorithm_; |
+ // Not owned. Always points to |general_loss_algorithm_| outside of tests. |
+ LossDetectionInterface* loss_algorithm_; |
+ GeneralLossAlgorithm general_loss_algorithm_; |
bool n_connection_simulation_; |
// Receiver side buffer in bytes. |