blob: f0579c55b6863a934227e1ee9942b44d5343dbac [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),
control_frame_id(kInvalidControlFrameId),
unidirectional(false) {}
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