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

Unified Diff: net/quic/core/stream_notifier_interface.h

Issue 2916033003: Landing Recent QUIC changes until 03:18 AM, May 28, UTC (Closed)
Patch Set: A few more EXPORTs. Created 3 years, 7 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
« no previous file with comments | « net/quic/core/quic_unacked_packet_map.cc ('k') | net/quic/quartc/quartc_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/stream_notifier_interface.h
diff --git a/net/quic/core/stream_notifier_interface.h b/net/quic/core/stream_notifier_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..34d90be933178ead4ef32ab7bce1f8ef8e4b7bc8
--- /dev/null
+++ b/net/quic/core/stream_notifier_interface.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2017 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_CORE_STREAM_NOTIFIER_INTERFACE_H_
+#define NET_QUIC_CORE_STREAM_NOTIFIER_INTERFACE_H_
+
+#include "net/quic/core/frames/quic_stream_frame.h"
+#include "net/quic/core/quic_time.h"
+
+namespace net {
+
+// Pure virtual class to be notified when a packet containing a stream frame is
+// acked or lost.
+class QUIC_EXPORT_PRIVATE StreamNotifierInterface {
+ public:
+ virtual ~StreamNotifierInterface() {}
+
+ // Called when |frame| is acked.
+ virtual void OnStreamFrameAcked(const QuicStreamFrame& frame,
+ QuicTime::Delta ack_delay_time) = 0;
+
+ // Called when |frame| is retransmitted.
+ virtual void OnStreamFrameRetransmitted(const QuicStreamFrame& frame) = 0;
+};
+
+} // namespace net
+
+#endif // NET_QUIC_CORE_STREAM_NOTIFIER_INTERFACE_H_
« no previous file with comments | « net/quic/core/quic_unacked_packet_map.cc ('k') | net/quic/quartc/quartc_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698