Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: net/quic/congestion_control/inter_arrival_probe.h

Issue 126513003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // Class that handle the initial probing phase of inter arrival congestion 5 // Class that handle the initial probing phase of inter arrival congestion
6 // control. 6 // control.
7 #ifndef NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_PROBE_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_PROBE_H_
8 #define NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_PROBE_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_PROBE_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 22
23 void set_max_segment_size(QuicByteCount max_segment_size); 23 void set_max_segment_size(QuicByteCount max_segment_size);
24 24
25 // Call every time a packet is sent to the network. 25 // Call every time a packet is sent to the network.
26 void OnPacketSent(QuicByteCount bytes); 26 void OnPacketSent(QuicByteCount bytes);
27 27
28 // Call once for each sent packet that we receive an acknowledgement from 28 // Call once for each sent packet that we receive an acknowledgement from
29 // the peer for. 29 // the peer for.
30 void OnAcknowledgedPacket(QuicByteCount bytes); 30 void OnAcknowledgedPacket(QuicByteCount bytes);
31 31
32 // Called when the RTO fires, and all packets have been lost.
33 void OnRetransmissionTimeout();
34
32 // Call to get the number of bytes that can be sent as part of this probe. 35 // Call to get the number of bytes that can be sent as part of this probe.
33 QuicByteCount GetAvailableCongestionWindow(); 36 QuicByteCount GetAvailableCongestionWindow();
34 37
35 // Call once for each sent packet we receive a congestion feedback from the 38 // Call once for each sent packet we receive a congestion feedback from the
36 // peer for. 39 // peer for.
37 // If a peer sends both and ack and feedback for a sent packet, both 40 // If a peer sends both and ack and feedback for a sent packet, both
38 // OnAcknowledgedPacket and OnIncomingFeedback should be called. 41 // OnAcknowledgedPacket and OnIncomingFeedback should be called.
39 void OnIncomingFeedback(QuicPacketSequenceNumber sequence_number, 42 void OnIncomingFeedback(QuicPacketSequenceNumber sequence_number,
40 QuicByteCount bytes_sent, 43 QuicByteCount bytes_sent,
41 QuicTime time_sent, 44 QuicTime time_sent,
(...skipping 10 matching lines...) Expand all
52 QuicPacketSequenceNumber first_sequence_number_; 55 QuicPacketSequenceNumber first_sequence_number_;
53 bool estimate_available_; 56 bool estimate_available_;
54 QuicBandwidth available_channel_estimate_; 57 QuicBandwidth available_channel_estimate_;
55 QuicByteCount unacked_data_; 58 QuicByteCount unacked_data_;
56 59
57 DISALLOW_COPY_AND_ASSIGN(InterArrivalProbe); 60 DISALLOW_COPY_AND_ASSIGN(InterArrivalProbe);
58 }; 61 };
59 62
60 } // namespace net 63 } // namespace net
61 #endif // NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_PROBE_H_ 64 #endif // NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_PROBE_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/fix_rate_sender.cc ('k') | net/quic/congestion_control/inter_arrival_probe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698