1 // Copyright (c) 2020 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_HANDSHAKE_DONE_FRAME_H_ 6 #define QUICHE_QUIC_CORE_FRAMES_QUIC_HANDSHAKE_DONE_FRAME_H_ 7 8 #include "quiche/quic/core/frames/quic_inlined_frame.h" 9 #include "quiche/quic/core/quic_constants.h" 10 #include "quiche/quic/core/quic_types.h" 11 #include "quiche/quic/platform/api/quic_export.h" 12 13 namespace quic { 14 15 // A HANDSHAKE_DONE frame contains no payload, and it is retransmittable, 16 // and ACK'd just like other normal frames. 17 struct QUICHE_EXPORT QuicHandshakeDoneFrame 18 : public QuicInlinedFrame<QuicHandshakeDoneFrame> { 19 QuicHandshakeDoneFrame(); 20 explicit QuicHandshakeDoneFrame(QuicControlFrameId control_frame_id); 21 22 friend QUICHE_EXPORT std::ostream& operator<<( 23 std::ostream& os, const QuicHandshakeDoneFrame& handshake_done_frame); 24 25 QuicFrameType type; 26 27 // A unique identifier of this control frame. 0 when this frame is received, 28 // and non-zero when sent. 29 QuicControlFrameId control_frame_id = kInvalidControlFrameId; 30 }; 31 32 } // namespace quic 33 34 #endif // QUICHE_QUIC_CORE_FRAMES_QUIC_HANDSHAKE_DONE_FRAME_H_ 35