blob: 41ba1443ce9e2631d06ada97709ea1fe3d45430e [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"
6#include "net/third_party/quiche/src/quic/core/quic_constants.h"
7
8namespace quic {
9
10QuicBlockedFrame::QuicBlockedFrame()
11 : control_frame_id(kInvalidControlFrameId), stream_id(0), offset(0) {}
12
13QuicBlockedFrame::QuicBlockedFrame(QuicControlFrameId control_frame_id,
14 QuicStreamId stream_id)
15 : control_frame_id(control_frame_id), stream_id(stream_id), offset(0) {}
16
17QuicBlockedFrame::QuicBlockedFrame(QuicControlFrameId control_frame_id,
18 QuicStreamId stream_id,
19 QuicStreamOffset offset)
20 : control_frame_id(control_frame_id),
21 stream_id(stream_id),
22 offset(offset) {}
23
24std::ostream& operator<<(std::ostream& os,
25 const QuicBlockedFrame& blocked_frame) {
26 os << "{ control_frame_id: " << blocked_frame.control_frame_id
27 << ", stream_id: " << blocked_frame.stream_id << " }\n";
28 return os;
29}
30
31} // namespace quic