| 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" |
| 11 | 11 |
| 12 using base::StringPiece; | 12 using base::StringPiece; |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 QuicPacketGenerator::QuicPacketGenerator(QuicConnectionId connection_id, | 16 QuicPacketGenerator::QuicPacketGenerator(QuicConnectionId connection_id, |
| 17 QuicFramer* framer, | 17 QuicFramer* framer, |
| 18 QuicRandom* random_generator, | |
| 19 QuicBufferAllocator* buffer_allocator, | 18 QuicBufferAllocator* buffer_allocator, |
| 20 DelegateInterface* delegate) | 19 DelegateInterface* delegate) |
| 21 : delegate_(delegate), | 20 : delegate_(delegate), |
| 22 packet_creator_(connection_id, | 21 packet_creator_(connection_id, |
| 23 framer, | 22 framer, |
| 24 random_generator, | |
| 25 buffer_allocator, | 23 buffer_allocator, |
| 26 delegate), | 24 delegate), |
| 27 batch_mode_(false), | 25 batch_mode_(false), |
| 28 should_send_ack_(false), | 26 should_send_ack_(false), |
| 29 should_send_stop_waiting_(false) {} | 27 should_send_stop_waiting_(false) {} |
| 30 | 28 |
| 31 QuicPacketGenerator::~QuicPacketGenerator() { | 29 QuicPacketGenerator::~QuicPacketGenerator() { |
| 32 QuicUtils::DeleteFrames(&queued_control_frames_); | 30 QuicUtils::DeleteFrames(&queued_control_frames_); |
| 33 } | 31 } |
| 34 | 32 |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 | 333 |
| 336 void QuicPacketGenerator::SetCurrentPath( | 334 void QuicPacketGenerator::SetCurrentPath( |
| 337 QuicPathId path_id, | 335 QuicPathId path_id, |
| 338 QuicPacketNumber least_packet_awaited_by_peer, | 336 QuicPacketNumber least_packet_awaited_by_peer, |
| 339 QuicPacketCount max_packets_in_flight) { | 337 QuicPacketCount max_packets_in_flight) { |
| 340 packet_creator_.SetCurrentPath(path_id, least_packet_awaited_by_peer, | 338 packet_creator_.SetCurrentPath(path_id, least_packet_awaited_by_peer, |
| 341 max_packets_in_flight); | 339 max_packets_in_flight); |
| 342 } | 340 } |
| 343 | 341 |
| 344 } // namespace net | 342 } // namespace net |
| OLD | NEW |