QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // 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 | |
| 8 | namespace quic { |
| 9 | |
| 10 | QuicWindowUpdateFrame::QuicWindowUpdateFrame() |
| 11 | : control_frame_id(kInvalidControlFrameId) {} |
| 12 | |
| 13 | QuicWindowUpdateFrame::QuicWindowUpdateFrame( |
| 14 | QuicControlFrameId control_frame_id, |
| 15 | QuicStreamId stream_id, |
renjietang | d088eab | 2019-11-21 14:54:41 -0800 | [diff] [blame] | 16 | QuicByteCount max_data) |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 17 | : control_frame_id(control_frame_id), |
| 18 | stream_id(stream_id), |
renjietang | d088eab | 2019-11-21 14:54:41 -0800 | [diff] [blame] | 19 | max_data(max_data) {} |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 20 | |
| 21 | std::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 |
renjietang | d088eab | 2019-11-21 14:54:41 -0800 | [diff] [blame] | 25 | << ", max_data: " << window_update_frame.max_data << " }\n"; |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 26 | return os; |
| 27 | } |
| 28 | |
| 29 | } // namespace quic |