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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/congestion_control/timestamp_receiver.h
diff --git a/net/quic/congestion_control/timestamp_receiver.h b/net/quic/congestion_control/timestamp_receiver.h
new file mode 100644
index 0000000000000000000000000000000000000000..3eb2a7c461e65c485ec29c5b8a578987c11853c0
--- /dev/null
+++ b/net/quic/congestion_control/timestamp_receiver.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_QUIC_CONGESTION_CONTROL_TIMESTAMP_RECEIVER_H_
+#define NET_QUIC_CONGESTION_CONTROL_TIMESTAMP_RECEIVER_H_
+
+#include "base/basictypes.h"
+#include "net/quic/congestion_control/receive_algorithm_interface.h"
+#include "net/quic/quic_clock.h"
+#include "net/quic/quic_protocol.h"
+
+namespace net {
+
+class NET_EXPORT_PRIVATE TimestampReceiver : public ReceiveAlgorithmInterface {
+ public:
+ TimestampReceiver();
+ virtual ~TimestampReceiver();
+
+ virtual bool GenerateCongestionFeedback(
+ QuicCongestionFeedbackFrame* feedback) OVERRIDE;
+
+ virtual void RecordIncomingPacket(QuicByteCount bytes,
+ QuicPacketSequenceNumber sequence_number,
+ QuicTime timestamp) OVERRIDE;
+
+ private:
+ // The set of received packets since the last feedback was sent, along with
+ // their arrival times.
+ TimeMap received_packet_times_;
+
+ DISALLOW_COPY_AND_ASSIGN(TimestampReceiver);
+};
+
+} // namespace net
+
+#endif // NET_QUIC_CONGESTION_CONTROL_TIMESTAMP_RECEIVER_H_
« 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