blob: bf36ab4ff8df31420f2b550fb7460eb5556919a2 [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#include "net/third_party/quiche/src/quic/core/frames/quic_path_response_frame.h"
vasilvv70430d72019-07-21 12:06:49 -07006
QUICHE teama6ef0a62019-03-07 20:34:33 -05007#include "net/third_party/quiche/src/quic/core/quic_constants.h"
8#include "net/third_party/quiche/src/quic/platform/api/quic_bug_tracker.h"
vasilvv70430d72019-07-21 12:06:49 -07009#include "net/third_party/quiche/src/quic/platform/api/quic_text_utils.h"
QUICHE teama6ef0a62019-03-07 20:34:33 -050010
11namespace quic {
12
13QuicPathResponseFrame::QuicPathResponseFrame()
14 : control_frame_id(kInvalidControlFrameId) {}
15
16QuicPathResponseFrame::QuicPathResponseFrame(
17 QuicControlFrameId control_frame_id,
18 const QuicPathFrameBuffer& data_buff)
19 : control_frame_id(control_frame_id) {
20 memcpy(data_buffer.data(), data_buff.data(), data_buffer.size());
21}
22
23QuicPathResponseFrame::~QuicPathResponseFrame() {}
24
25std::ostream& operator<<(std::ostream& os, const QuicPathResponseFrame& frame) {
vasilvv70430d72019-07-21 12:06:49 -070026 os << "{ control_frame_id: " << frame.control_frame_id << ", data: "
27 << QuicTextUtils::HexEncode(
28 reinterpret_cast<const char*>(frame.data_buffer.data()),
29 frame.data_buffer.size())
30 << " }\n";
QUICHE teama6ef0a62019-03-07 20:34:33 -050031 return os;
32}
33
34} // namespace quic