blob: cdb0ba89e7c227adb19e4e00e40ab1ca5fbeeb2d [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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_PATH_RESPONSE_FRAME_H_
6#define QUICHE_QUIC_CORE_FRAMES_QUIC_PATH_RESPONSE_FRAME_H_
7
8#include <memory>
9#include <ostream>
10
wubbddcc502020-04-21 07:10:57 -070011#include "net/third_party/quiche/src/quic/core/quic_constants.h"
QUICHE teama6ef0a62019-03-07 20:34:33 -050012#include "net/third_party/quiche/src/quic/core/quic_types.h"
13
14namespace quic {
15
QUICHE teama6ef0a62019-03-07 20:34:33 -050016struct QUIC_EXPORT_PRIVATE QuicPathResponseFrame {
wubbddcc502020-04-21 07:10:57 -070017 QuicPathResponseFrame() = default;
QUICHE teama6ef0a62019-03-07 20:34:33 -050018 QuicPathResponseFrame(QuicControlFrameId control_frame_id,
19 const QuicPathFrameBuffer& data_buff);
20 ~QuicPathResponseFrame();
21
22 friend QUIC_EXPORT_PRIVATE std::ostream& operator<<(
23 std::ostream& os,
24 const QuicPathResponseFrame& frame);
25
26 // A unique identifier of this control frame. 0 when this frame is received,
27 // and non-zero when sent.
wubbddcc502020-04-21 07:10:57 -070028 QuicControlFrameId control_frame_id = kInvalidControlFrameId;
QUICHE teama6ef0a62019-03-07 20:34:33 -050029
30 QuicPathFrameBuffer data_buffer;
31};
32} // namespace quic
33
34#endif // QUICHE_QUIC_CORE_FRAMES_QUIC_PATH_RESPONSE_FRAME_H_