| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/quic/quic_protocol.h" | 5 #include "net/quic/quic_protocol.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "net/quic/quic_utils.h" | 8 #include "net/quic/quic_utils.h" |
| 9 | 9 |
| 10 using base::StringPiece; | 10 using base::StringPiece; |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 ostream& operator<<(ostream& os, const QuicPacketHeader& header) { | 211 ostream& operator<<(ostream& os, const QuicPacketHeader& header) { |
| 212 os << "{ connection_id: " << header.public_header.connection_id | 212 os << "{ connection_id: " << header.public_header.connection_id |
| 213 << ", connection_id_length:" << header.public_header.connection_id_length | 213 << ", connection_id_length:" << header.public_header.connection_id_length |
| 214 << ", sequence_number_length:" | 214 << ", sequence_number_length:" |
| 215 << header.public_header.sequence_number_length | 215 << header.public_header.sequence_number_length |
| 216 << ", reset_flag: " << header.public_header.reset_flag | 216 << ", reset_flag: " << header.public_header.reset_flag |
| 217 << ", version_flag: " << header.public_header.version_flag; | 217 << ", version_flag: " << header.public_header.version_flag; |
| 218 if (header.public_header.version_flag) { | 218 if (header.public_header.version_flag) { |
| 219 os << " version: "; | 219 os << " version: "; |
| 220 for (size_t i = 0; i < header.public_header.versions.size(); ++i) { | 220 for (size_t i = 0; i < header.public_header.versions.size(); ++i) { |
| 221 os << header.public_header.versions[0] << " "; | 221 os << header.public_header.versions[i] << " "; |
| 222 } | 222 } |
| 223 } | 223 } |
| 224 os << ", fec_flag: " << header.fec_flag | 224 os << ", fec_flag: " << header.fec_flag |
| 225 << ", entropy_flag: " << header.entropy_flag | 225 << ", entropy_flag: " << header.entropy_flag |
| 226 << ", entropy hash: " << static_cast<int>(header.entropy_hash) | 226 << ", entropy hash: " << static_cast<int>(header.entropy_hash) |
| 227 << ", sequence_number: " << header.packet_sequence_number | 227 << ", sequence_number: " << header.packet_sequence_number |
| 228 << ", is_in_fec_group:" << header.is_in_fec_group | 228 << ", is_in_fec_group:" << header.is_in_fec_group |
| 229 << ", fec_group: " << header.fec_group<< "}\n"; | 229 << ", fec_group: " << header.fec_group<< "}\n"; |
| 230 return os; | 230 return os; |
| 231 } | 231 } |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 bytes_sent(bytes_sent), | 689 bytes_sent(bytes_sent), |
| 690 nack_count(0), | 690 nack_count(0), |
| 691 transmission_type(transmission_type), | 691 transmission_type(transmission_type), |
| 692 all_transmissions(nullptr), | 692 all_transmissions(nullptr), |
| 693 in_flight(false), | 693 in_flight(false), |
| 694 is_unackable(false), | 694 is_unackable(false), |
| 695 is_fec_packet(is_fec_packet) { | 695 is_fec_packet(is_fec_packet) { |
| 696 } | 696 } |
| 697 | 697 |
| 698 } // namespace net | 698 } // namespace net |
| OLD | NEW |