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 <cstdint> | 7 #include <cstdint> |
8 | 8 |
9 #include "net/quic/core/quic_utils.h" | 9 #include "net/quic/core/quic_utils.h" |
10 #include "net/quic/platform/api/quic_bug_tracker.h" | 10 #include "net/quic/platform/api/quic_bug_tracker.h" |
11 #include "net/quic/platform/api/quic_logging.h" | 11 #include "net/quic/platform/api/quic_logging.h" |
12 | 12 |
13 using base::StringPiece; | |
14 | |
15 namespace net { | 13 namespace net { |
16 | 14 |
17 QuicPacketGenerator::QuicPacketGenerator(QuicConnectionId connection_id, | 15 QuicPacketGenerator::QuicPacketGenerator(QuicConnectionId connection_id, |
18 QuicFramer* framer, | 16 QuicFramer* framer, |
19 QuicBufferAllocator* buffer_allocator, | 17 QuicBufferAllocator* buffer_allocator, |
20 DelegateInterface* delegate) | 18 DelegateInterface* delegate) |
21 : delegate_(delegate), | 19 : delegate_(delegate), |
22 packet_creator_(connection_id, framer, buffer_allocator, delegate), | 20 packet_creator_(connection_id, framer, buffer_allocator, delegate), |
23 batch_mode_(false), | 21 batch_mode_(false), |
24 should_send_ack_(false), | 22 should_send_ack_(false), |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 void QuicPacketGenerator::set_encryption_level(EncryptionLevel level) { | 321 void QuicPacketGenerator::set_encryption_level(EncryptionLevel level) { |
324 packet_creator_.set_encryption_level(level); | 322 packet_creator_.set_encryption_level(level); |
325 } | 323 } |
326 | 324 |
327 void QuicPacketGenerator::SetEncrypter(EncryptionLevel level, | 325 void QuicPacketGenerator::SetEncrypter(EncryptionLevel level, |
328 QuicEncrypter* encrypter) { | 326 QuicEncrypter* encrypter) { |
329 packet_creator_.SetEncrypter(level, encrypter); | 327 packet_creator_.SetEncrypter(level, encrypter); |
330 } | 328 } |
331 | 329 |
332 } // namespace net | 330 } // namespace net |
OLD | NEW |