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

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

Issue 126283002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed extra space 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 #ifndef NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_RECEIVER_H_ 5 #ifndef NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_RECEIVER_H_
6 #define NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_RECEIVER_H_ 6 #define NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_RECEIVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/quic/congestion_control/receive_algorithm_interface.h" 11 #include "net/quic/congestion_control/receive_algorithm_interface.h"
12 #include "net/quic/quic_clock.h" 12 #include "net/quic/quic_clock.h"
13 #include "net/quic/quic_protocol.h" 13 #include "net/quic/quic_protocol.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class NET_EXPORT_PRIVATE InterArrivalReceiver 17 class NET_EXPORT_PRIVATE InterArrivalReceiver
18 : public ReceiveAlgorithmInterface { 18 : public ReceiveAlgorithmInterface {
19 public: 19 public:
20 InterArrivalReceiver(); 20 InterArrivalReceiver();
21 virtual ~InterArrivalReceiver(); 21 virtual ~InterArrivalReceiver() OVERRIDE;
22 22
23 // Start implementation of ReceiveAlgorithmInterface. 23 // Start implementation of ReceiveAlgorithmInterface.
24 virtual bool GenerateCongestionFeedback( 24 virtual bool GenerateCongestionFeedback(
25 QuicCongestionFeedbackFrame* feedback) OVERRIDE; 25 QuicCongestionFeedbackFrame* feedback) OVERRIDE;
26 26
27 virtual void RecordIncomingPacket(QuicByteCount bytes, 27 virtual void RecordIncomingPacket(QuicByteCount bytes,
28 QuicPacketSequenceNumber sequence_number, 28 QuicPacketSequenceNumber sequence_number,
29 QuicTime timestamp, 29 QuicTime timestamp,
30 bool revived) OVERRIDE; 30 bool revived) OVERRIDE;
31 // End implementation of ReceiveAlgorithmInterface. 31 // End implementation of ReceiveAlgorithmInterface.
32 32
33 private: 33 private:
34 // We need to keep track of FEC recovered packets. 34 // We need to keep track of FEC recovered packets.
35 int accumulated_number_of_recoverd_lost_packets_; 35 int accumulated_number_of_recoverd_lost_packets_;
36 36
37 // The set of received packets since the last feedback was sent, along with 37 // The set of received packets since the last feedback was sent, along with
38 // their arrival times. 38 // their arrival times.
39 TimeMap received_packet_times_; 39 TimeMap received_packet_times_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(InterArrivalReceiver); 41 DISALLOW_COPY_AND_ASSIGN(InterArrivalReceiver);
42 }; 42 };
43 43
44 } // namespace net 44 } // namespace net
45 45
46 #endif // NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_RECEIVER_H_ 46 #endif // NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_RECEIVER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/inter_arrival_probe.cc ('k') | net/quic/congestion_control/inter_arrival_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698