| 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_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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |