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

Unified Diff: net/quic/quic_received_packet_manager.h

Issue 157803007: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_x64 compiler error fix Created 6 years, 10 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/quic_protocol.cc ('k') | net/quic/quic_received_packet_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_received_packet_manager.h
diff --git a/net/quic/quic_received_packet_manager.h b/net/quic/quic_received_packet_manager.h
index 9e2fb59c2412642638dc0da3bb0ea743a6ee63d3..e08951997b85ab89196fb85a4ba666a9f8088a73 100644
--- a/net/quic/quic_received_packet_manager.h
+++ b/net/quic/quic_received_packet_manager.h
@@ -32,12 +32,11 @@ class NET_EXPORT_PRIVATE QuicReceivedPacketManager :
// bytes: the packet size in bytes including Quic Headers.
// header: the packet header.
// timestamp: the arrival time of the packet.
- // revived: true if the packet was lost and then recovered with help of a
- // FEC packet.
void RecordPacketReceived(QuicByteCount bytes,
const QuicPacketHeader& header,
- QuicTime receipt_time,
- bool revived);
+ QuicTime receipt_time);
+
+ void RecordPacketRevived(QuicPacketSequenceNumber sequence_number);
// Checks whether |sequence_number| is missing and less than largest observed.
bool IsMissing(QuicPacketSequenceNumber sequence_number);
@@ -62,12 +61,11 @@ class NET_EXPORT_PRIVATE QuicReceivedPacketManager :
virtual QuicPacketEntropyHash EntropyHash(
QuicPacketSequenceNumber sequence_number) const OVERRIDE;
- // These two are called by OnAckFrame.
- //
- // Updates internal state based on |incoming_ack.received_info|.
- void UpdatePacketInformationReceivedByPeer(const QuicAckFrame& incoming_ack);
- // Updates internal state based on |incoming_ack.sent_info|.
- void UpdatePacketInformationSentByPeer(const QuicAckFrame& incoming_ack);
+ // Updates internal state based on |received_info|.
+ void UpdatePacketInformationReceivedByPeer(
+ const ReceivedPacketInfo& received_nfo);
+ // Updates internal state based on |sent_info|.
+ void UpdatePacketInformationSentByPeer(const SentPacketInfo& sent_info);
// Returns whether the peer is missing packets.
bool HasMissingPackets();
« no previous file with comments | « net/quic/quic_protocol.cc ('k') | net/quic/quic_received_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698