| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2017 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_CORE_STREAM_NOTIFIER_INTERFACE_H_ |
| 6 #define NET_QUIC_CORE_STREAM_NOTIFIER_INTERFACE_H_ |
| 7 |
| 8 #include "net/quic/core/frames/quic_stream_frame.h" |
| 9 #include "net/quic/core/quic_time.h" |
| 10 |
| 11 namespace net { |
| 12 |
| 13 // Pure virtual class to be notified when a packet containing a stream frame is |
| 14 // acked or lost. |
| 15 class QUIC_EXPORT_PRIVATE StreamNotifierInterface { |
| 16 public: |
| 17 virtual ~StreamNotifierInterface() {} |
| 18 |
| 19 // Called when |frame| is acked. |
| 20 virtual void OnStreamFrameAcked(const QuicStreamFrame& frame, |
| 21 QuicTime::Delta ack_delay_time) = 0; |
| 22 |
| 23 // Called when |frame| is retransmitted. |
| 24 virtual void OnStreamFrameRetransmitted(const QuicStreamFrame& frame) = 0; |
| 25 }; |
| 26 |
| 27 } // namespace net |
| 28 |
| 29 #endif // NET_QUIC_CORE_STREAM_NOTIFIER_INTERFACE_H_ |
| OLD | NEW |