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/logging.h" | 7 #include "base/logging.h" |
8 #include "net/quic/quic_bug_tracker.h" | 8 #include "net/quic/quic_bug_tracker.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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 if (packet_creator_.CanSetMaxPacketLength()) { | 300 if (packet_creator_.CanSetMaxPacketLength()) { |
301 packet_creator_.SetMaxPacketLength(length); | 301 packet_creator_.SetMaxPacketLength(length); |
302 } | 302 } |
303 } | 303 } |
304 | 304 |
305 QuicEncryptedPacket* QuicPacketGenerator::SerializeVersionNegotiationPacket( | 305 QuicEncryptedPacket* QuicPacketGenerator::SerializeVersionNegotiationPacket( |
306 const QuicVersionVector& supported_versions) { | 306 const QuicVersionVector& supported_versions) { |
307 return packet_creator_.SerializeVersionNegotiationPacket(supported_versions); | 307 return packet_creator_.SerializeVersionNegotiationPacket(supported_versions); |
308 } | 308 } |
309 | 309 |
310 SerializedPacket QuicPacketGenerator::ReserializeAllFrames( | 310 void QuicPacketGenerator::ReserializeAllFrames( |
311 const PendingRetransmission& retransmission, | 311 const PendingRetransmission& retransmission, |
312 char* buffer, | 312 char* buffer, |
313 size_t buffer_len) { | 313 size_t buffer_len) { |
314 return packet_creator_.ReserializeAllFrames(retransmission, buffer, | 314 packet_creator_.ReserializeAllFrames(retransmission, buffer, buffer_len); |
315 buffer_len); | |
316 } | 315 } |
317 | 316 |
318 void QuicPacketGenerator::UpdateSequenceNumberLength( | 317 void QuicPacketGenerator::UpdateSequenceNumberLength( |
319 QuicPacketNumber least_packet_awaited_by_peer, | 318 QuicPacketNumber least_packet_awaited_by_peer, |
320 QuicPacketCount max_packets_in_flight) { | 319 QuicPacketCount max_packets_in_flight) { |
321 return packet_creator_.UpdatePacketNumberLength(least_packet_awaited_by_peer, | 320 return packet_creator_.UpdatePacketNumberLength(least_packet_awaited_by_peer, |
322 max_packets_in_flight); | 321 max_packets_in_flight); |
323 } | 322 } |
324 | 323 |
325 void QuicPacketGenerator::SetConnectionIdLength(uint32_t length) { | 324 void QuicPacketGenerator::SetConnectionIdLength(uint32_t length) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 | 358 |
360 FecSendPolicy QuicPacketGenerator::fec_send_policy() { | 359 FecSendPolicy QuicPacketGenerator::fec_send_policy() { |
361 return packet_creator_.fec_send_policy(); | 360 return packet_creator_.fec_send_policy(); |
362 } | 361 } |
363 | 362 |
364 void QuicPacketGenerator::set_fec_send_policy(FecSendPolicy fec_send_policy) { | 363 void QuicPacketGenerator::set_fec_send_policy(FecSendPolicy fec_send_policy) { |
365 packet_creator_.set_fec_send_policy(fec_send_policy); | 364 packet_creator_.set_fec_send_policy(fec_send_policy); |
366 } | 365 } |
367 | 366 |
368 } // namespace net | 367 } // namespace net |
OLD | NEW |