xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/core/frames/quic_stop_waiting_frame.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright (c) 2016 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 QUICHE_QUIC_CORE_FRAMES_QUIC_STOP_WAITING_FRAME_H_
6 #define QUICHE_QUIC_CORE_FRAMES_QUIC_STOP_WAITING_FRAME_H_
7 
8 #include <ostream>
9 
10 #include "quiche/quic/core/frames/quic_inlined_frame.h"
11 #include "quiche/quic/core/quic_types.h"
12 #include "quiche/quic/platform/api/quic_export.h"
13 
14 namespace quic {
15 
16 struct QUICHE_EXPORT QuicStopWaitingFrame
17     : public QuicInlinedFrame<QuicStopWaitingFrame> {
18   QuicStopWaitingFrame();
19 
20   friend QUICHE_EXPORT std::ostream& operator<<(std::ostream& os,
21                                                 const QuicStopWaitingFrame& s);
22 
23   QuicFrameType type;
24 
25   // The lowest packet we've sent which is unacked, and we expect an ack for.
26   QuicPacketNumber least_unacked;
27 };
28 
29 }  // namespace quic
30 
31 #endif  // QUICHE_QUIC_CORE_FRAMES_QUIC_STOP_WAITING_FRAME_H_
32