#define NET_QUIC_QUIC_PACKET_GENERATOR_H_
#include "net/quic/quic_packet_creator.h"
+#include "net/quic/quic_sent_packet_manager.h"
#include "net/quic/quic_types.h"
namespace net {
class QuicAckNotifier;
-class NET_EXPORT_PRIVATE QuicPacketGenerator {
+class NET_EXPORT_PRIVATE QuicPacketGenerator
+ : public QuicSentPacketManager::NetworkChangeVisitor {
public:
class NET_EXPORT_PRIVATE DelegateInterface {
public:
virtual ~QuicPacketGenerator();
+ // QuicSentPacketManager::NetworkChangeVisitor methods.
+ virtual void OnCongestionWindowChange(QuicByteCount congestion_window)
+ OVERRIDE;
+
// Indicates that an ACK frame should be sent. If |also_send_feedback| is
// true, then it also indicates a CONGESTION_FEEDBACK frame should be sent.
// If |also_send_stop_waiting| is true, then it also indicates that a
// Serializes and calls the delegate on an FEC packet if one was under
// construction in the creator. When |force| is false, it relies on the
// creator being ready to send an FEC packet, otherwise FEC packet is sent
- // as long as one is under construction in the creator. Also tries to turns
+ // as long as one is under construction in the creator. Also tries to turn
// off FEC protection in the creator if it's off in the generator.
void MaybeSendFecPacketAndCloseGroup(bool force);