blob: 4ec8caa5def7b536419500248883bd9b96860185 [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 "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