blob: 07e31687fbd00c81a68658182224a4c5c619ad2f [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,
16 QuicStreamOffset byte_offset)
17 : control_frame_id(control_frame_id),
18 stream_id(stream_id),
19 byte_offset(byte_offset) {}
20
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
25 << ", byte_offset: " << window_update_frame.byte_offset << " }\n";
26 return os;
27}
28
29} // namespace quic