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

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

Issue 1495243002: Remove EncryptionLevel from QUIC's RetransmittableFrames and add it to TransmissionInfo. No functi… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@108735153
Patch Set: 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_protocol.h » ('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" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "net/quic/quic_fec_group.h" 9 #include "net/quic/quic_fec_group.h"
10 #include "net/quic/quic_flags.h" 10 #include "net/quic/quic_flags.h"
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 360 }
361 } 361 }
362 362
363 QuicEncryptedPacket* QuicPacketGenerator::SerializeVersionNegotiationPacket( 363 QuicEncryptedPacket* QuicPacketGenerator::SerializeVersionNegotiationPacket(
364 const QuicVersionVector& supported_versions) { 364 const QuicVersionVector& supported_versions) {
365 return packet_creator_.SerializeVersionNegotiationPacket(supported_versions); 365 return packet_creator_.SerializeVersionNegotiationPacket(supported_versions);
366 } 366 }
367 367
368 SerializedPacket QuicPacketGenerator::ReserializeAllFrames( 368 SerializedPacket QuicPacketGenerator::ReserializeAllFrames(
369 const RetransmittableFrames& frames, 369 const RetransmittableFrames& frames,
370 EncryptionLevel original_encryption_level,
370 QuicPacketNumberLength original_length, 371 QuicPacketNumberLength original_length,
371 char* buffer, 372 char* buffer,
372 size_t buffer_len) { 373 size_t buffer_len) {
373 return packet_creator_.ReserializeAllFrames(frames, original_length, buffer, 374 return packet_creator_.ReserializeAllFrames(
374 buffer_len); 375 frames, original_encryption_level, original_length, buffer, buffer_len);
375 } 376 }
376 377
377 void QuicPacketGenerator::UpdateSequenceNumberLength( 378 void QuicPacketGenerator::UpdateSequenceNumberLength(
378 QuicPacketNumber least_packet_awaited_by_peer, 379 QuicPacketNumber least_packet_awaited_by_peer,
379 QuicPacketCount max_packets_in_flight) { 380 QuicPacketCount max_packets_in_flight) {
380 return packet_creator_.UpdatePacketNumberLength(least_packet_awaited_by_peer, 381 return packet_creator_.UpdatePacketNumberLength(least_packet_awaited_by_peer,
381 max_packets_in_flight); 382 max_packets_in_flight);
382 } 383 }
383 384
384 void QuicPacketGenerator::SetConnectionIdLength(uint32 length) { 385 void QuicPacketGenerator::SetConnectionIdLength(uint32 length) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 444
444 FecSendPolicy QuicPacketGenerator::fec_send_policy() { 445 FecSendPolicy QuicPacketGenerator::fec_send_policy() {
445 return packet_creator_.fec_send_policy(); 446 return packet_creator_.fec_send_policy();
446 } 447 }
447 448
448 void QuicPacketGenerator::set_fec_send_policy(FecSendPolicy fec_send_policy) { 449 void QuicPacketGenerator::set_fec_send_policy(FecSendPolicy fec_send_policy) {
449 packet_creator_.set_fec_send_policy(fec_send_policy); 450 packet_creator_.set_fec_send_policy(fec_send_policy);
450 } 451 }
451 452
452 } // namespace net 453 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_packet_generator.h ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698