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_blocked_frame.h" |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 6 | |
| 7 | namespace quic { |
| 8 | |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 9 | QuicBlockedFrame::QuicBlockedFrame(QuicControlFrameId control_frame_id, |
| 10 | QuicStreamId stream_id) |
| 11 | : control_frame_id(control_frame_id), stream_id(stream_id), offset(0) {} |
| 12 | |
| 13 | QuicBlockedFrame::QuicBlockedFrame(QuicControlFrameId control_frame_id, |
| 14 | QuicStreamId stream_id, |
| 15 | QuicStreamOffset offset) |
| 16 | : control_frame_id(control_frame_id), |
| 17 | stream_id(stream_id), |
| 18 | offset(offset) {} |
| 19 | |
| 20 | std::ostream& operator<<(std::ostream& os, |
| 21 | const QuicBlockedFrame& blocked_frame) { |
| 22 | os << "{ control_frame_id: " << blocked_frame.control_frame_id |
| 23 | << ", stream_id: " << blocked_frame.stream_id << " }\n"; |
| 24 | return os; |
| 25 | } |
| 26 | |
| 27 | } // namespace quic |