QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // Copyright (c) 2018 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_stop_sending_frame.h" |
| 6 | #include "net/third_party/quiche/src/quic/core/quic_constants.h" |
| 7 | |
| 8 | namespace quic { |
| 9 | |
| 10 | QuicStopSendingFrame::QuicStopSendingFrame() |
| 11 | : control_frame_id(kInvalidControlFrameId), |
| 12 | stream_id(0), |
| 13 | application_error_code(0) {} |
| 14 | |
| 15 | QuicStopSendingFrame::QuicStopSendingFrame( |
| 16 | QuicControlFrameId control_frame_id, |
| 17 | QuicStreamId stream_id, |
| 18 | QuicApplicationErrorCode application_error_code) |
| 19 | : control_frame_id(control_frame_id), |
| 20 | stream_id(stream_id), |
| 21 | application_error_code(application_error_code) {} |
| 22 | |
| 23 | std::ostream& operator<<(std::ostream& os, const QuicStopSendingFrame& frame) { |
| 24 | os << "{ control_frame_id: " << frame.control_frame_id |
| 25 | << ", stream_id: " << frame.stream_id |
| 26 | << ", application_error_code: " << frame.application_error_code << " }\n"; |
| 27 | return os; |
| 28 | } |
| 29 | |
| 30 | } // namespace quic |