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

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

Issue 449693002: Bring back InterArrivalReceiver and rename it to TimestampeReceiver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Move_Quic_AppendTimestampFrame_72148809
Patch Set: minor comment fix Created 6 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_CONGESTION_CONTROL_TIMESTAMP_RECEIVER_H_
6 #define NET_QUIC_CONGESTION_CONTROL_TIMESTAMP_RECEIVER_H_
7
8 #include "base/basictypes.h"
9 #include "net/quic/congestion_control/receive_algorithm_interface.h"
10 #include "net/quic/quic_clock.h"
11 #include "net/quic/quic_protocol.h"
12
13 namespace net {
14
15 class NET_EXPORT_PRIVATE TimestampReceiver : public ReceiveAlgorithmInterface {
16 public:
17 TimestampReceiver();
18 virtual ~TimestampReceiver();
19
20 virtual bool GenerateCongestionFeedback(
21 QuicCongestionFeedbackFrame* feedback) OVERRIDE;
22
23 virtual void RecordIncomingPacket(QuicByteCount bytes,
24 QuicPacketSequenceNumber sequence_number,
25 QuicTime timestamp) OVERRIDE;
26
27 private:
28 // The set of received packets since the last feedback was sent, along with
29 // their arrival times.
30 TimeMap received_packet_times_;
31
32 DISALLOW_COPY_AND_ASSIGN(TimestampReceiver);
33 };
34
35 } // namespace net
36
37 #endif // NET_QUIC_CONGESTION_CONTROL_TIMESTAMP_RECEIVER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/receive_algorithm_interface.cc ('k') | net/quic/congestion_control/timestamp_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698