| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SENT_PACKET_MANAGER_H_ | 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 QuicTime::Delta delta_largest_observed); | 320 QuicTime::Delta delta_largest_observed); |
| 321 | 321 |
| 322 // Request that |sequence_number| be retransmitted after the other pending | 322 // Request that |sequence_number| be retransmitted after the other pending |
| 323 // retransmissions. Does not add it to the retransmissions if it's already | 323 // retransmissions. Does not add it to the retransmissions if it's already |
| 324 // a pending retransmission. | 324 // a pending retransmission. |
| 325 void MarkForRetransmission(QuicPacketSequenceNumber sequence_number, | 325 void MarkForRetransmission(QuicPacketSequenceNumber sequence_number, |
| 326 TransmissionType transmission_type); | 326 TransmissionType transmission_type); |
| 327 | 327 |
| 328 // Notify observers about spurious retransmits. | 328 // Notify observers about spurious retransmits. |
| 329 void RecordSpuriousRetransmissions( | 329 void RecordSpuriousRetransmissions( |
| 330 const SequenceNumberSet& all_transmissions, | 330 const SequenceNumberList& all_transmissions, |
| 331 QuicPacketSequenceNumber acked_sequence_number); | 331 QuicPacketSequenceNumber acked_sequence_number); |
| 332 | 332 |
| 333 // Newly serialized retransmittable and fec packets are added to this map, | 333 // Newly serialized retransmittable and fec packets are added to this map, |
| 334 // which contains owning pointers to any contained frames. If a packet is | 334 // which contains owning pointers to any contained frames. If a packet is |
| 335 // retransmitted, this map will contain entries for both the old and the new | 335 // retransmitted, this map will contain entries for both the old and the new |
| 336 // packet. The old packet's retransmittable frames entry will be NULL, while | 336 // packet. The old packet's retransmittable frames entry will be NULL, while |
| 337 // the new packet's entry will contain the frames to retransmit. | 337 // the new packet's entry will contain the frames to retransmit. |
| 338 // If the old packet is acked before the new packet, then the old entry will | 338 // If the old packet is acked before the new packet, then the old entry will |
| 339 // be removed from the map and the new entry's retransmittable frames will be | 339 // be removed from the map and the new entry's retransmittable frames will be |
| 340 // set to NULL. | 340 // set to NULL. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 // Records bandwidth from server to client in normal operation, over periods | 390 // Records bandwidth from server to client in normal operation, over periods |
| 391 // of time with no loss events. | 391 // of time with no loss events. |
| 392 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 392 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
| 393 | 393 |
| 394 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 394 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 395 }; | 395 }; |
| 396 | 396 |
| 397 } // namespace net | 397 } // namespace net |
| 398 | 398 |
| 399 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 399 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |