| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Called when RTT may have changed, including when an RTT is read from | 70 // Called when RTT may have changed, including when an RTT is read from |
| 71 // the config. | 71 // the config. |
| 72 virtual void OnRttChange() = 0; | 72 virtual void OnRttChange() = 0; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 // Struct to store the pending retransmission information. | 75 // Struct to store the pending retransmission information. |
| 76 struct PendingRetransmission { | 76 struct PendingRetransmission { |
| 77 PendingRetransmission(QuicPacketNumber packet_number, | 77 PendingRetransmission(QuicPacketNumber packet_number, |
| 78 TransmissionType transmission_type, | 78 TransmissionType transmission_type, |
| 79 const RetransmittableFrames& retransmittable_frames, | 79 const RetransmittableFrames& retransmittable_frames, |
| 80 EncryptionLevel encryption_level, |
| 80 QuicPacketNumberLength packet_number_length) | 81 QuicPacketNumberLength packet_number_length) |
| 81 : packet_number(packet_number), | 82 : packet_number(packet_number), |
| 82 transmission_type(transmission_type), | 83 transmission_type(transmission_type), |
| 83 retransmittable_frames(retransmittable_frames), | 84 retransmittable_frames(retransmittable_frames), |
| 85 encryption_level(encryption_level), |
| 84 packet_number_length(packet_number_length) {} | 86 packet_number_length(packet_number_length) {} |
| 85 | 87 |
| 86 QuicPacketNumber packet_number; | 88 QuicPacketNumber packet_number; |
| 87 TransmissionType transmission_type; | 89 TransmissionType transmission_type; |
| 88 const RetransmittableFrames& retransmittable_frames; | 90 const RetransmittableFrames& retransmittable_frames; |
| 91 EncryptionLevel encryption_level; |
| 89 QuicPacketNumberLength packet_number_length; | 92 QuicPacketNumberLength packet_number_length; |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 QuicSentPacketManager(Perspective perspective, | 95 QuicSentPacketManager(Perspective perspective, |
| 93 const QuicClock* clock, | 96 const QuicClock* clock, |
| 94 QuicConnectionStats* stats, | 97 QuicConnectionStats* stats, |
| 95 CongestionControlType congestion_control_type, | 98 CongestionControlType congestion_control_type, |
| 96 LossDetectionType loss_type); | 99 LossDetectionType loss_type); |
| 97 virtual ~QuicSentPacketManager(); | 100 virtual ~QuicSentPacketManager(); |
| 98 | 101 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 // Records bandwidth from server to client in normal operation, over periods | 410 // Records bandwidth from server to client in normal operation, over periods |
| 408 // of time with no loss events. | 411 // of time with no loss events. |
| 409 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 412 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
| 410 | 413 |
| 411 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 414 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 412 }; | 415 }; |
| 413 | 416 |
| 414 } // namespace net | 417 } // namespace net |
| 415 | 418 |
| 416 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 419 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |