Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: net/quic/quic_protocol.cc

Issue 1037403004: Land Recent QUIC Changes until 03/27/2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_packet_generator_test.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_packet_generator_test.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698