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

Unified Diff: net/quic/quic_unacked_packet_map.h

Issue 188333003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation error - added NET_EXPORT_PRIVATE to QuicFixedUint32 Created 6 years, 9 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_test.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 1331049d30e160312bb3aad67bfcd6b6abbe5fdf..d739b91ab7bac84cd257efea3ec77d0482e3d7aa 100644
--- a/net/quic/quic_unacked_packet_map.h
+++ b/net/quic/quic_unacked_packet_map.h
@@ -46,7 +46,7 @@ class NET_EXPORT_PRIVATE QuicUnackedPacketMap {
bool pending;
};
- explicit QuicUnackedPacketMap(bool is_server);
+ QuicUnackedPacketMap();
~QuicUnackedPacketMap();
// Adds |serialized_packet| to the map. Does not mark it pending.
@@ -89,11 +89,6 @@ class NET_EXPORT_PRIVATE QuicUnackedPacketMap {
// Returns the number of unacked packets which have retransmittable frames.
size_t GetNumRetransmittablePackets() const;
- // Returns the total number of bytes associated with pending packets.
- size_t bytes_in_flight() const {
- return bytes_in_flight_;
- }
-
// Returns the largest sequence number that has been sent.
QuicPacketSequenceNumber largest_sent_packet() const {
return largest_sent_packet_;
@@ -144,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.
@@ -167,8 +165,8 @@ class NET_EXPORT_PRIVATE QuicUnackedPacketMap {
UnackedPacketMap unacked_packets_;
size_t bytes_in_flight_;
-
- bool is_server_;
+ // 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_test.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698