Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: net/quic/core/quic_packet_generator.cc

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_packet_creator_test.cc ('k') | net/quic/core/quic_packet_generator_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_packet_creator_test.cc ('k') | net/quic/core/quic_packet_generator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698