| 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" |
| 11 #include "net/quic/quic_utils.h" | 11 #include "net/quic/quic_utils.h" |
| 12 | 12 |
| 13 using base::StringPiece; | 13 using base::StringPiece; |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 class QuicAckNotifier; | |
| 18 | |
| 19 QuicPacketGenerator::QuicPacketGenerator(QuicConnectionId connection_id, | 17 QuicPacketGenerator::QuicPacketGenerator(QuicConnectionId connection_id, |
| 20 QuicFramer* framer, | 18 QuicFramer* framer, |
| 21 QuicRandom* random_generator, | 19 QuicRandom* random_generator, |
| 22 QuicBufferAllocator* buffer_allocator, | 20 QuicBufferAllocator* buffer_allocator, |
| 23 DelegateInterface* delegate) | 21 DelegateInterface* delegate) |
| 24 : delegate_(delegate), | 22 : delegate_(delegate), |
| 25 packet_creator_(connection_id, | 23 packet_creator_(connection_id, |
| 26 framer, | 24 framer, |
| 27 random_generator, | 25 random_generator, |
| 28 buffer_allocator, | 26 buffer_allocator, |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 356 |
| 359 FecSendPolicy QuicPacketGenerator::fec_send_policy() { | 357 FecSendPolicy QuicPacketGenerator::fec_send_policy() { |
| 360 return packet_creator_.fec_send_policy(); | 358 return packet_creator_.fec_send_policy(); |
| 361 } | 359 } |
| 362 | 360 |
| 363 void QuicPacketGenerator::set_fec_send_policy(FecSendPolicy fec_send_policy) { | 361 void QuicPacketGenerator::set_fec_send_policy(FecSendPolicy fec_send_policy) { |
| 364 packet_creator_.set_fec_send_policy(fec_send_policy); | 362 packet_creator_.set_fec_send_policy(fec_send_policy); |
| 365 } | 363 } |
| 366 | 364 |
| 367 } // namespace net | 365 } // namespace net |
| OLD | NEW |