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

Unified Diff: net/quic/quic_received_packet_manager.h

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 a15d570e8d4b16547c2548ff525a50d79503f15f..7e1c88f2068347d42584eeb507bdfe98d810e540 100644
--- a/net/quic/quic_received_packet_manager.h
+++ b/net/quic/quic_received_packet_manager.h
@@ -59,6 +59,8 @@ class NET_EXPORT_PRIVATE QuicReceivedPacketManager :
void SetCumulativeEntropyUpTo(QuicPacketSequenceNumber sequence_number,
QuicPacketEntropyHash entropy_hash);
+ size_t size() const { return packets_entropy_.size(); }
+
private:
friend class test::EntropyTrackerPeer;
@@ -137,7 +139,10 @@ class NET_EXPORT_PRIVATE QuicReceivedPacketManager :
// Returns true when there are new missing packets to be reported within 3
// packets of the largest observed.
- bool HasNewMissingPackets();
+ bool HasNewMissingPackets() const;
+
+ // Returns the number of packets being tracked in the EntropyTracker.
+ size_t NumTrackedPackets() const;
QuicPacketSequenceNumber peer_least_packet_awaiting_ack() {
return peer_least_packet_awaiting_ack_;
« 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