blob: 0178422526c9c47acc7e1094d8d27dcadc6ffdc9 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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"
dschinazia87865c2019-07-21 11:34:53 -07006
QUICHE teama6ef0a62019-03-07 20:34:33 -05007#include "net/third_party/quiche/src/quic/platform/api/quic_logging.h"
QUICHE teamd9b8aba2019-12-11 10:13:38 -08008#include "net/third_party/quiche/src/common/platform/api/quiche_text_utils.h"
QUICHE teama6ef0a62019-03-07 20:34:33 -05009
10namespace quic {
11
QUICHE teama6ef0a62019-03-07 20:34:33 -050012QuicNewTokenFrame::QuicNewTokenFrame(QuicControlFrameId control_frame_id,
vasilvvc48c8712019-03-11 13:38:16 -070013 std::string token)
QUICHE teama6ef0a62019-03-07 20:34:33 -050014 : control_frame_id(control_frame_id), token(token) {}
15
16std::ostream& operator<<(std::ostream& os, const QuicNewTokenFrame& s) {
dschinazia87865c2019-07-21 11:34:53 -070017 os << "{ control_frame_id: " << s.control_frame_id
QUICHE teamd9b8aba2019-12-11 10:13:38 -080018 << ", token: " << quiche::QuicheTextUtils::HexEncode(s.token) << " }\n";
QUICHE teama6ef0a62019-03-07 20:34:33 -050019 return os;
20}
21
22} // namespace quic