blob: 6d6a6d2f6e287fdfd76dcfba9c09f2071385fad6 [file] [log] [blame]
// Copyright (c) 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "quiche/quic/core/frames/quic_streams_blocked_frame.h"
namespace quic {
QuicStreamsBlockedFrame::QuicStreamsBlockedFrame()
: QuicInlinedFrame(STREAMS_BLOCKED_FRAME) {}
QuicStreamsBlockedFrame::QuicStreamsBlockedFrame(
QuicControlFrameId control_frame_id, QuicStreamCount stream_count,
bool unidirectional)
: QuicInlinedFrame(STREAMS_BLOCKED_FRAME),
control_frame_id(control_frame_id),
stream_count(stream_count),
unidirectional(unidirectional) {}
std::ostream& operator<<(std::ostream& os,
const QuicStreamsBlockedFrame& frame) {
os << "{ control_frame_id: " << frame.control_frame_id
<< ", stream count: " << frame.stream_count
<< ((frame.unidirectional) ? ", unidirectional }\n"
: ", bidirectional }\n");
return os;
}
} // namespace quic