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

Unified Diff: net/quic/quic_unacked_packet_map.h

Issue 188273003: QUIC refactor to move the pending_crypto_packet_count_ from the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_sent_packet_manager.cc ('k') | net/quic/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/quic_unacked_packet_map.h
diff --git a/net/quic/quic_unacked_packet_map.h b/net/quic/quic_unacked_packet_map.h
index 6034837c05566a9dfa7f0b488cfa4670949fdcf5..d739b91ab7bac84cd257efea3ec77d0482e3d7aa 100644
--- a/net/quic/quic_unacked_packet_map.h
+++ b/net/quic/quic_unacked_packet_map.h
@@ -139,6 +139,9 @@ class NET_EXPORT_PRIVATE QuicUnackedPacketMap {
// Returns true if there are multiple packet pending.
bool HasMultiplePendingPackets() const;
+ // Returns true if there are any pending crypto packets.
+ bool HasPendingCryptoPackets() const;
+
// Removes entries from the unacked packet map, and deletes
// the retransmittable frames associated with the packet.
// Does not remove any previous or subsequent transmissions of this packet.
@@ -162,6 +165,8 @@ class NET_EXPORT_PRIVATE QuicUnackedPacketMap {
UnackedPacketMap unacked_packets_;
size_t bytes_in_flight_;
+ // Number of outstanding crypto handshake packets.
+ size_t pending_crypto_packet_count_;
DISALLOW_COPY_AND_ASSIGN(QuicUnackedPacketMap);
};
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698