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

Side by Side Diff: net/quic/quic_unacked_packet_map.h

Issue 990533002: Land Recent QUIC Changes until 03/06/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_stream_sequencer_test.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_ 5 #ifndef NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_
6 #define NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_ 6 #define NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "net/quic/quic_protocol.h" 10 #include "net/quic/quic_protocol.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 bool HasInFlightPackets() const; 91 bool HasInFlightPackets() const;
92 92
93 // Returns the TransmissionInfo associated with |sequence_number|, which 93 // Returns the TransmissionInfo associated with |sequence_number|, which
94 // must be unacked. 94 // must be unacked.
95 const TransmissionInfo& GetTransmissionInfo( 95 const TransmissionInfo& GetTransmissionInfo(
96 QuicPacketSequenceNumber sequence_number) const; 96 QuicPacketSequenceNumber sequence_number) const;
97 97
98 // Returns the time that the last unacked packet was sent. 98 // Returns the time that the last unacked packet was sent.
99 QuicTime GetLastPacketSentTime() const; 99 QuicTime GetLastPacketSentTime() const;
100 100
101 // Returns the time that the first in flight packet was sent.
102 QuicTime GetFirstInFlightPacketSentTime() const;
103
104 // Returns the number of unacked packets. 101 // Returns the number of unacked packets.
105 size_t GetNumUnackedPacketsDebugOnly() const; 102 size_t GetNumUnackedPacketsDebugOnly() const;
106 103
107 // Returns true if there are multiple packets in flight. 104 // Returns true if there are multiple packets in flight.
108 bool HasMultipleInFlightPackets() const; 105 bool HasMultipleInFlightPackets() const;
109 106
110 // Returns true if there are any pending crypto packets. 107 // Returns true if there are any pending crypto packets.
111 bool HasPendingCryptoPackets() const; 108 bool HasPendingCryptoPackets() const;
112 109
113 // Removes any retransmittable frames from this transmission or an associated 110 // Removes any retransmittable frames from this transmission or an associated
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 QuicByteCount bytes_in_flight_; 173 QuicByteCount bytes_in_flight_;
177 // Number of retransmittable crypto handshake packets. 174 // Number of retransmittable crypto handshake packets.
178 size_t pending_crypto_packet_count_; 175 size_t pending_crypto_packet_count_;
179 176
180 DISALLOW_COPY_AND_ASSIGN(QuicUnackedPacketMap); 177 DISALLOW_COPY_AND_ASSIGN(QuicUnackedPacketMap);
181 }; 178 };
182 179
183 } // namespace net 180 } // namespace net
184 181
185 #endif // NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_ 182 #endif // NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_
OLDNEW
« no previous file with comments | « net/quic/quic_stream_sequencer_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