blob: 1da520e03b06fe0a3da62cb6cec166f6afc8b0e2 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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#include "net/third_party/quiche/src/quic/core/frames/quic_blocked_frame.h"
QUICHE teama6ef0a62019-03-07 20:34:33 -05006
7namespace quic {
8
QUICHE teama6ef0a62019-03-07 20:34:33 -05009QuicBlockedFrame::QuicBlockedFrame(QuicControlFrameId control_frame_id,
10 QuicStreamId stream_id)
11 : control_frame_id(control_frame_id), stream_id(stream_id), offset(0) {}
12
13QuicBlockedFrame::QuicBlockedFrame(QuicControlFrameId control_frame_id,
14 QuicStreamId stream_id,
15 QuicStreamOffset offset)
16 : control_frame_id(control_frame_id),
17 stream_id(stream_id),
18 offset(offset) {}
19
20std::ostream& operator<<(std::ostream& os,
21 const QuicBlockedFrame& blocked_frame) {
22 os << "{ control_frame_id: " << blocked_frame.control_frame_id
23 << ", stream_id: " << blocked_frame.stream_id << " }\n";
24 return os;
25}
26
27} // namespace quic