| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 // Interface which gets callbacks from the QuicSentPacketManager when | 62 // Interface which gets callbacks from the QuicSentPacketManager when |
| 63 // network-related state changes. Implementations must not mutate the | 63 // network-related state changes. Implementations must not mutate the |
| 64 // state of the packet manager as a result of these callbacks. | 64 // state of the packet manager as a result of these callbacks. |
| 65 class NET_EXPORT_PRIVATE NetworkChangeVisitor { | 65 class NET_EXPORT_PRIVATE NetworkChangeVisitor { |
| 66 public: | 66 public: |
| 67 virtual ~NetworkChangeVisitor() {} | 67 virtual ~NetworkChangeVisitor() {} |
| 68 | 68 |
| 69 // Called when congestion window may have changed. | 69 // Called when congestion window may have changed. |
| 70 virtual void OnCongestionWindowChange(QuicByteCount congestion_window) = 0; | 70 virtual void OnCongestionWindowChange() = 0; |
| 71 // TODO(jri): Add OnRttStatsChange() to this class as well. | 71 // TODO(jri): Add OnRttStatsChange() to this class as well. |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 // Struct to store the pending retransmission information. | 74 // Struct to store the pending retransmission information. |
| 75 struct PendingRetransmission { | 75 struct PendingRetransmission { |
| 76 PendingRetransmission(QuicPacketSequenceNumber sequence_number, | 76 PendingRetransmission(QuicPacketSequenceNumber sequence_number, |
| 77 TransmissionType transmission_type, | 77 TransmissionType transmission_type, |
| 78 const RetransmittableFrames& retransmittable_frames, | 78 const RetransmittableFrames& retransmittable_frames, |
| 79 QuicSequenceNumberLength sequence_number_length) | 79 QuicSequenceNumberLength sequence_number_length) |
| 80 : sequence_number(sequence_number), | 80 : sequence_number(sequence_number), |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // Records bandwidth from server to client in normal operation, over periods | 383 // Records bandwidth from server to client in normal operation, over periods |
| 384 // of time with no loss events. | 384 // of time with no loss events. |
| 385 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 385 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
| 386 | 386 |
| 387 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 387 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 388 }; | 388 }; |
| 389 | 389 |
| 390 } // namespace net | 390 } // namespace net |
| 391 | 391 |
| 392 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 392 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |