| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // Called when a spurious retransmission is detected. | 50 // Called when a spurious retransmission is detected. |
| 51 virtual void OnSpuriousPacketRetransmition( | 51 virtual void OnSpuriousPacketRetransmition( |
| 52 TransmissionType transmission_type, | 52 TransmissionType transmission_type, |
| 53 QuicByteCount byte_size) {} | 53 QuicByteCount byte_size) {} |
| 54 | 54 |
| 55 virtual void OnIncomingAck( | 55 virtual void OnIncomingAck( |
| 56 const QuicAckFrame& ack_frame, | 56 const QuicAckFrame& ack_frame, |
| 57 QuicTime ack_receive_time, | 57 QuicTime ack_receive_time, |
| 58 QuicPacketSequenceNumber largest_observed, | 58 QuicPacketSequenceNumber largest_observed, |
| 59 bool largest_observed_acked, | 59 bool rtt_updated, |
| 60 QuicPacketSequenceNumber least_unacked_sent_packet) {} | 60 QuicPacketSequenceNumber least_unacked_sent_packet) {} |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 // Interface which gets callbacks from the QuicSentPacketManager when | 63 // Interface which gets callbacks from the QuicSentPacketManager when |
| 64 // network-related state changes. Implementations must not mutate the | 64 // network-related state changes. Implementations must not mutate the |
| 65 // state of the packet manager as a result of these callbacks. | 65 // state of the packet manager as a result of these callbacks. |
| 66 class NET_EXPORT_PRIVATE NetworkChangeVisitor { | 66 class NET_EXPORT_PRIVATE NetworkChangeVisitor { |
| 67 public: | 67 public: |
| 68 virtual ~NetworkChangeVisitor() {} | 68 virtual ~NetworkChangeVisitor() {} |
| 69 | 69 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 // Records bandwidth from server to client in normal operation, over periods | 405 // Records bandwidth from server to client in normal operation, over periods |
| 406 // of time with no loss events. | 406 // of time with no loss events. |
| 407 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 407 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
| 408 | 408 |
| 409 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 409 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 } // namespace net | 412 } // namespace net |
| 413 | 413 |
| 414 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 414 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |