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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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.h ('k') | net/quic/quic_packet_generator_test.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_packet_generator.h" 5 #include "net/quic/quic_packet_generator.h"
6 6
7 #include "base/basictypes.h"
8 #include "base/logging.h" 7 #include "base/logging.h"
9 #include "net/quic/quic_fec_group.h" 8 #include "net/quic/quic_fec_group.h"
10 #include "net/quic/quic_flags.h" 9 #include "net/quic/quic_flags.h"
11 #include "net/quic/quic_utils.h" 10 #include "net/quic/quic_utils.h"
12 11
13 using base::StringPiece; 12 using base::StringPiece;
14 13
15 namespace net { 14 namespace net {
16 15
17 class QuicAckNotifier; 16 class QuicAckNotifier;
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 frames, original_encryption_level, original_length, buffer, buffer_len); 340 frames, original_encryption_level, original_length, buffer, buffer_len);
342 } 341 }
343 342
344 void QuicPacketGenerator::UpdateSequenceNumberLength( 343 void QuicPacketGenerator::UpdateSequenceNumberLength(
345 QuicPacketNumber least_packet_awaited_by_peer, 344 QuicPacketNumber least_packet_awaited_by_peer,
346 QuicPacketCount max_packets_in_flight) { 345 QuicPacketCount max_packets_in_flight) {
347 return packet_creator_.UpdatePacketNumberLength(least_packet_awaited_by_peer, 346 return packet_creator_.UpdatePacketNumberLength(least_packet_awaited_by_peer,
348 max_packets_in_flight); 347 max_packets_in_flight);
349 } 348 }
350 349
351 void QuicPacketGenerator::SetConnectionIdLength(uint32 length) { 350 void QuicPacketGenerator::SetConnectionIdLength(uint32_t length) {
352 if (length == 0) { 351 if (length == 0) {
353 packet_creator_.set_connection_id_length(PACKET_0BYTE_CONNECTION_ID); 352 packet_creator_.set_connection_id_length(PACKET_0BYTE_CONNECTION_ID);
354 } else if (length == 1) { 353 } else if (length == 1) {
355 packet_creator_.set_connection_id_length(PACKET_1BYTE_CONNECTION_ID); 354 packet_creator_.set_connection_id_length(PACKET_1BYTE_CONNECTION_ID);
356 } else if (length <= 4) { 355 } else if (length <= 4) {
357 packet_creator_.set_connection_id_length(PACKET_4BYTE_CONNECTION_ID); 356 packet_creator_.set_connection_id_length(PACKET_4BYTE_CONNECTION_ID);
358 } else { 357 } else {
359 packet_creator_.set_connection_id_length(PACKET_8BYTE_CONNECTION_ID); 358 packet_creator_.set_connection_id_length(PACKET_8BYTE_CONNECTION_ID);
360 } 359 }
361 } 360 }
(...skipping 23 matching lines...) Expand all
385 384
386 FecSendPolicy QuicPacketGenerator::fec_send_policy() { 385 FecSendPolicy QuicPacketGenerator::fec_send_policy() {
387 return packet_creator_.fec_send_policy(); 386 return packet_creator_.fec_send_policy();
388 } 387 }
389 388
390 void QuicPacketGenerator::set_fec_send_policy(FecSendPolicy fec_send_policy) { 389 void QuicPacketGenerator::set_fec_send_policy(FecSendPolicy fec_send_policy) {
391 packet_creator_.set_fec_send_policy(fec_send_policy); 390 packet_creator_.set_fec_send_policy(fec_send_policy);
392 } 391 }
393 392
394 } // namespace net 393 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_packet_generator.h ('k') | net/quic/quic_packet_generator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698