| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ | 5 #ifndef NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ |
| 6 #define NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ | 6 #define NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 const QuicCongestionFeedbackFrame& feedback, | 36 const QuicCongestionFeedbackFrame& feedback, |
| 37 QuicTime feedback_receive_time, | 37 QuicTime feedback_receive_time, |
| 38 const SentPacketsMap& sent_packets) OVERRIDE; | 38 const SentPacketsMap& sent_packets) OVERRIDE; |
| 39 | 39 |
| 40 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number, | 40 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number, |
| 41 QuicByteCount acked_bytes, | 41 QuicByteCount acked_bytes, |
| 42 QuicTime::Delta rtt) OVERRIDE; | 42 QuicTime::Delta rtt) OVERRIDE; |
| 43 | 43 |
| 44 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE; | 44 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE; |
| 45 | 45 |
| 46 virtual void SentPacket(QuicTime sent_time, | 46 virtual bool SentPacket( |
| 47 QuicPacketSequenceNumber sequence_number, | 47 QuicTime sent_time, |
| 48 QuicByteCount bytes, | 48 QuicPacketSequenceNumber sequence_number, |
| 49 Retransmission is_retransmit) OVERRIDE; | 49 QuicByteCount bytes, |
| 50 Retransmission is_retransmit, |
| 51 HasRetransmittableData has_retransmittable_data) OVERRIDE; |
| 50 | 52 |
| 51 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, | 53 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, |
| 52 QuicByteCount abandoned_bytes) OVERRIDE; | 54 QuicByteCount abandoned_bytes) OVERRIDE; |
| 53 | 55 |
| 54 virtual QuicTime::Delta TimeUntilSend( | 56 virtual QuicTime::Delta TimeUntilSend( |
| 55 QuicTime now, | 57 QuicTime now, |
| 56 Retransmission is_retransmission, | 58 Retransmission is_retransmission, |
| 57 HasRetransmittableData has_retransmittable_data, | 59 HasRetransmittableData has_retransmittable_data, |
| 58 IsHandshake handshake) OVERRIDE; | 60 IsHandshake handshake) OVERRIDE; |
| 59 | 61 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 BandwidthUsage bandwidth_usage_state_; | 93 BandwidthUsage bandwidth_usage_state_; |
| 92 QuicTime back_down_time_; // Time when we decided to back down. | 94 QuicTime back_down_time_; // Time when we decided to back down. |
| 93 QuicBandwidth back_down_bandwidth_; // Bandwidth before backing down. | 95 QuicBandwidth back_down_bandwidth_; // Bandwidth before backing down. |
| 94 QuicTime::Delta back_down_congestion_delay_; // Delay when backing down. | 96 QuicTime::Delta back_down_congestion_delay_; // Delay when backing down. |
| 95 | 97 |
| 96 DISALLOW_COPY_AND_ASSIGN(InterArrivalSender); | 98 DISALLOW_COPY_AND_ASSIGN(InterArrivalSender); |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 } // namespace net | 101 } // namespace net |
| 100 #endif // NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ | 102 #endif // NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ |
| OLD | NEW |