Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / net / quic / quic_packet_generator.h
index d408aea..77214df 100644 (file)
@@ -54,6 +54,7 @@
 #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 {
@@ -64,7 +65,8 @@ class QuicPacketGeneratorPeer;
 
 class QuicAckNotifier;
 
-class NET_EXPORT_PRIVATE QuicPacketGenerator {
+class NET_EXPORT_PRIVATE QuicPacketGenerator
+    : public QuicSentPacketManager::NetworkChangeVisitor {
  public:
   class NET_EXPORT_PRIVATE DelegateInterface {
    public:
@@ -98,6 +100,10 @@ class NET_EXPORT_PRIVATE QuicPacketGenerator {
 
   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
@@ -191,7 +197,7 @@ class NET_EXPORT_PRIVATE QuicPacketGenerator {
   // 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);