Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1120)

Unified Diff: net/quic/core/quic_unacked_packet_map.h

Issue 2915873003: This QUIC change includes: (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_stream_test.cc ('k') | net/quic/core/quic_unacked_packet_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_unacked_packet_map.h
diff --git a/net/quic/core/quic_unacked_packet_map.h b/net/quic/core/quic_unacked_packet_map.h
index 1901f49e322d18d6d956e057b88d0473a0033d44..70549b50df15dc59926600e3bd2dd09265407a0a 100644
--- a/net/quic/core/quic_unacked_packet_map.h
+++ b/net/quic/core/quic_unacked_packet_map.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "net/quic/core/quic_packets.h"
#include "net/quic/core/quic_transmission_info.h"
+#include "net/quic/core/stream_notifier_interface.h"
#include "net/quic/platform/api/quic_export.h"
namespace net {
@@ -50,6 +51,10 @@ class QUIC_EXPORT_PRIVATE QuicUnackedPacketMap {
void NotifyAndClearListeners(QuicPacketNumber newest_transmission,
QuicTime::Delta delta_largest_observed);
+ // Notifies stream_notifier that stream frames have been acked.
+ void NotifyStreamFramesAcked(const QuicTransmissionInfo& info,
+ QuicTime::Delta ack_delay);
+
// Marks |info| as no longer in flight.
void RemoveFromInFlight(QuicTransmissionInfo* info);
@@ -146,6 +151,8 @@ class QUIC_EXPORT_PRIVATE QuicUnackedPacketMap {
// RTT measurement purposes.
void RemoveObsoletePackets();
+ void SetStreamNotifier(StreamNotifierInterface* stream_notifier);
+
private:
// Called when a packet is retransmitted with a new packet number.
// |old_packet_number| will remain unacked, but will have no
@@ -194,6 +201,10 @@ class QUIC_EXPORT_PRIVATE QuicUnackedPacketMap {
// Number of retransmittable crypto handshake packets.
size_t pending_crypto_packet_count_;
+ // Receives notifications of stream frames being retransmitted or
+ // acknowledged.
+ StreamNotifierInterface* stream_notifier_;
+
DISALLOW_COPY_AND_ASSIGN(QuicUnackedPacketMap);
};
« no previous file with comments | « net/quic/core/quic_stream_test.cc ('k') | net/quic/core/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698