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