blob: 81ca125b64c73fb4b6e9bcd4866772bf170f4cc8 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// Copyright (c) 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "net/third_party/quiche/src/quic/core/frames/quic_window_update_frame.h"
6#include "net/third_party/quiche/src/quic/core/quic_constants.h"
7
8namespace quic {
9
10QuicWindowUpdateFrame::QuicWindowUpdateFrame()
11 : control_frame_id(kInvalidControlFrameId) {}
12
13QuicWindowUpdateFrame::QuicWindowUpdateFrame(
14 QuicControlFrameId control_frame_id,
15 QuicStreamId stream_id,
renjietangd088eab2019-11-21 14:54:41 -080016 QuicByteCount max_data)
QUICHE teama6ef0a62019-03-07 20:34:33 -050017 : control_frame_id(control_frame_id),
18 stream_id(stream_id),
renjietangd088eab2019-11-21 14:54:41 -080019 max_data(max_data) {}
QUICHE teama6ef0a62019-03-07 20:34:33 -050020
21std::ostream& operator<<(std::ostream& os,
22 const QuicWindowUpdateFrame& window_update_frame) {
23 os << "{ control_frame_id: " << window_update_frame.control_frame_id
24 << ", stream_id: " << window_update_frame.stream_id
renjietangd088eab2019-11-21 14:54:41 -080025 << ", max_data: " << window_update_frame.max_data << " }\n";
QUICHE teama6ef0a62019-03-07 20:34:33 -050026 return os;
27}
28
29} // namespace quic