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_new_token_frame.h" |
dschinazi | a87865c | 2019-07-21 11:34:53 -0700 | [diff] [blame] | 6 | |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 7 | #include "net/third_party/quiche/src/quic/platform/api/quic_logging.h" |
QUICHE team | d9b8aba | 2019-12-11 10:13:38 -0800 | [diff] [blame] | 8 | #include "net/third_party/quiche/src/common/platform/api/quiche_text_utils.h" |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 9 | |
| 10 | namespace quic { |
| 11 | |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 12 | QuicNewTokenFrame::QuicNewTokenFrame(QuicControlFrameId control_frame_id, |
vasilvv | c48c871 | 2019-03-11 13:38:16 -0700 | [diff] [blame] | 13 | std::string token) |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 14 | : control_frame_id(control_frame_id), token(token) {} |
| 15 | |
| 16 | std::ostream& operator<<(std::ostream& os, const QuicNewTokenFrame& s) { |
dschinazi | a87865c | 2019-07-21 11:34:53 -0700 | [diff] [blame] | 17 | os << "{ control_frame_id: " << s.control_frame_id |
QUICHE team | d9b8aba | 2019-12-11 10:13:38 -0800 | [diff] [blame] | 18 | << ", token: " << quiche::QuicheTextUtils::HexEncode(s.token) << " }\n"; |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 19 | return os; |
| 20 | } |
| 21 | |
| 22 | } // namespace quic |