| 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/core/quic_packet_generator.h" | 5 #include "net/quic/core/quic_packet_generator.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/quic/core/quic_bug_tracker.h" | 8 #include "net/quic/core/quic_bug_tracker.h" |
| 9 #include "net/quic/core/quic_flags.h" | 9 #include "net/quic/core/quic_flags.h" |
| 10 #include "net/quic/core/quic_utils.h" | 10 #include "net/quic/core/quic_utils.h" |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 packet_creator_.SetMaxPacketLength(length); | 291 packet_creator_.SetMaxPacketLength(length); |
| 292 } | 292 } |
| 293 | 293 |
| 294 std::unique_ptr<QuicEncryptedPacket> | 294 std::unique_ptr<QuicEncryptedPacket> |
| 295 QuicPacketGenerator::SerializeVersionNegotiationPacket( | 295 QuicPacketGenerator::SerializeVersionNegotiationPacket( |
| 296 const QuicVersionVector& supported_versions) { | 296 const QuicVersionVector& supported_versions) { |
| 297 return packet_creator_.SerializeVersionNegotiationPacket(supported_versions); | 297 return packet_creator_.SerializeVersionNegotiationPacket(supported_versions); |
| 298 } | 298 } |
| 299 | 299 |
| 300 void QuicPacketGenerator::ReserializeAllFrames( | 300 void QuicPacketGenerator::ReserializeAllFrames( |
| 301 const PendingRetransmission& retransmission, | 301 const QuicPendingRetransmission& retransmission, |
| 302 char* buffer, | 302 char* buffer, |
| 303 size_t buffer_len) { | 303 size_t buffer_len) { |
| 304 packet_creator_.ReserializeAllFrames(retransmission, buffer, buffer_len); | 304 packet_creator_.ReserializeAllFrames(retransmission, buffer, buffer_len); |
| 305 } | 305 } |
| 306 | 306 |
| 307 void QuicPacketGenerator::UpdateSequenceNumberLength( | 307 void QuicPacketGenerator::UpdateSequenceNumberLength( |
| 308 QuicPacketNumber least_packet_awaited_by_peer, | 308 QuicPacketNumber least_packet_awaited_by_peer, |
| 309 QuicPacketCount max_packets_in_flight) { | 309 QuicPacketCount max_packets_in_flight) { |
| 310 return packet_creator_.UpdatePacketNumberLength(least_packet_awaited_by_peer, | 310 return packet_creator_.UpdatePacketNumberLength(least_packet_awaited_by_peer, |
| 311 max_packets_in_flight); | 311 max_packets_in_flight); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 330 | 330 |
| 331 void QuicPacketGenerator::SetCurrentPath( | 331 void QuicPacketGenerator::SetCurrentPath( |
| 332 QuicPathId path_id, | 332 QuicPathId path_id, |
| 333 QuicPacketNumber least_packet_awaited_by_peer, | 333 QuicPacketNumber least_packet_awaited_by_peer, |
| 334 QuicPacketCount max_packets_in_flight) { | 334 QuicPacketCount max_packets_in_flight) { |
| 335 packet_creator_.SetCurrentPath(path_id, least_packet_awaited_by_peer, | 335 packet_creator_.SetCurrentPath(path_id, least_packet_awaited_by_peer, |
| 336 max_packets_in_flight); | 336 max_packets_in_flight); |
| 337 } | 337 } |
| 338 | 338 |
| 339 } // namespace net | 339 } // namespace net |
| OLD | NEW |