1 // Copyright (c) 2018 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_SENDING_FRAME_H_
6 #define QUICHE_QUIC_CORE_FRAMES_QUIC_STOP_SENDING_FRAME_H_
7 
8 #include <ostream>
9 
10 #include "net/third_party/quiche/src/quic/core/quic_error_codes.h"
11 #include "net/third_party/quiche/src/quic/core/quic_types.h"
12 
13 namespace quic {
14 
15 struct QUIC_EXPORT_PRIVATE QuicStopSendingFrame {
16   QuicStopSendingFrame();
17   QuicStopSendingFrame(QuicControlFrameId control_frame_id,
18                        QuicStreamId stream_id,
19                        QuicApplicationErrorCode application_error_code);
20 
21   friend QUIC_EXPORT_PRIVATE std::ostream& operator<<(
22       std::ostream& os,
23       const QuicStopSendingFrame& frame);
24 
25   // A unique identifier of this control frame. 0 when this frame is received,
26   // and non-zero when sent.
27   QuicControlFrameId control_frame_id;
28   QuicStreamId stream_id;
29   QuicApplicationErrorCode application_error_code;
30 };
31 
32 }  // namespace quic
33 
34 #endif  // QUICHE_QUIC_CORE_FRAMES_QUIC_STOP_SENDING_FRAME_H_
35