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

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

Issue 734063004: Update from https://crrev.com/304418 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/quic_packet_generator.h ('k') | net/quic/quic_protocol.h » ('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/quic_packet_generator.h" 5 #include "net/quic/quic_packet_generator.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "net/quic/quic_fec_group.h" 9 #include "net/quic/quic_fec_group.h"
10 #include "net/quic/quic_utils.h" 10 #include "net/quic/quic_utils.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 } 350 }
351 351
352 void QuicPacketGenerator::StopSendingVersion() { 352 void QuicPacketGenerator::StopSendingVersion() {
353 packet_creator_.StopSendingVersion(); 353 packet_creator_.StopSendingVersion();
354 } 354 }
355 355
356 QuicPacketSequenceNumber QuicPacketGenerator::sequence_number() const { 356 QuicPacketSequenceNumber QuicPacketGenerator::sequence_number() const {
357 return packet_creator_.sequence_number(); 357 return packet_creator_.sequence_number();
358 } 358 }
359 359
360 size_t QuicPacketGenerator::max_packet_length() const { 360 QuicByteCount QuicPacketGenerator::max_packet_length() const {
361 return packet_creator_.max_packet_length(); 361 return packet_creator_.max_packet_length();
362 } 362 }
363 363
364 void QuicPacketGenerator::set_max_packet_length(size_t length) { 364 void QuicPacketGenerator::set_max_packet_length(QuicByteCount length) {
365 packet_creator_.set_max_packet_length(length); 365 packet_creator_.set_max_packet_length(length);
366 } 366 }
367 367
368 QuicEncryptedPacket* QuicPacketGenerator::SerializeVersionNegotiationPacket( 368 QuicEncryptedPacket* QuicPacketGenerator::SerializeVersionNegotiationPacket(
369 const QuicVersionVector& supported_versions) { 369 const QuicVersionVector& supported_versions) {
370 return packet_creator_.SerializeVersionNegotiationPacket(supported_versions); 370 return packet_creator_.SerializeVersionNegotiationPacket(supported_versions);
371 } 371 }
372 372
373 SerializedPacket QuicPacketGenerator::ReserializeAllFrames( 373 SerializedPacket QuicPacketGenerator::ReserializeAllFrames(
374 const QuicFrames& frames, 374 const QuicFrames& frames,
(...skipping 19 matching lines...) Expand all
394 packet_creator_.set_connection_id_length(PACKET_8BYTE_CONNECTION_ID); 394 packet_creator_.set_connection_id_length(PACKET_8BYTE_CONNECTION_ID);
395 } 395 }
396 } 396 }
397 397
398 398
399 void QuicPacketGenerator::set_encryption_level(EncryptionLevel level) { 399 void QuicPacketGenerator::set_encryption_level(EncryptionLevel level) {
400 packet_creator_.set_encryption_level(level); 400 packet_creator_.set_encryption_level(level);
401 } 401 }
402 402
403 } // namespace net 403 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_packet_generator.h ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698