blob: 6177687d44e1031eca28769daad8bda283f2bfd0 [file] [log] [blame]
// Copyright (c) 2016 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 <ostream>
#include "net/third_party/quiche/src/quic/core/frames/quic_inlined_frame.h"
#include "net/third_party/quiche/src/quic/core/quic_constants.h"
#include "net/third_party/quiche/src/quic/core/quic_types.h"
#include "net/third_party/quiche/src/quic/platform/api/quic_export.h"
namespace quic {
// IETF format MAX_STREAM_ID frame.
// This frame is used by the sender to inform the peer of the largest
// stream id that the peer may open and that the sender will accept.
struct QUIC_EXPORT_PRIVATE QuicMaxStreamIdFrame
: public QuicInlinedFrame<QuicMaxStreamIdFrame> {
QuicMaxStreamIdFrame(QuicControlFrameId control_frame_id,
QuicStreamId max_stream_id);
friend QUIC_EXPORT_PRIVATE std::ostream& operator<<(
std::ostream& os,
const QuicMaxStreamIdFrame& frame);
// A unique identifier of this control frame. 0 when this frame is received,
// and non-zero when sent.
QuicControlFrameId control_frame_id;
// The maximum stream id to support.
QuicStreamId max_stream_id;
} // namespace quic