blob: 9300ce32e5118f0a7d4e1d11cd3d9ba4f41d99c7 [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 "net/third_party/quiche/src/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