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

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

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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_generator.h ('k') | net/quic/core/quic_packet_writer.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/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"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 packet_creator_.SetMaxPacketLength(length); 291 packet_creator_.SetMaxPacketLength(length);
292 } 292 }
293 293
294 std::unique_ptr<QuicEncryptedPacket> 294 std::unique_ptr<QuicEncryptedPacket>
295 QuicPacketGenerator::SerializeVersionNegotiationPacket( 295 QuicPacketGenerator::SerializeVersionNegotiationPacket(
296 const QuicVersionVector& supported_versions) { 296 const QuicVersionVector& supported_versions) {
297 return packet_creator_.SerializeVersionNegotiationPacket(supported_versions); 297 return packet_creator_.SerializeVersionNegotiationPacket(supported_versions);
298 } 298 }
299 299
300 void QuicPacketGenerator::ReserializeAllFrames( 300 void QuicPacketGenerator::ReserializeAllFrames(
301 const PendingRetransmission& retransmission, 301 const QuicPendingRetransmission& retransmission,
302 char* buffer, 302 char* buffer,
303 size_t buffer_len) { 303 size_t buffer_len) {
304 packet_creator_.ReserializeAllFrames(retransmission, buffer, buffer_len); 304 packet_creator_.ReserializeAllFrames(retransmission, buffer, buffer_len);
305 } 305 }
306 306
307 void QuicPacketGenerator::UpdateSequenceNumberLength( 307 void QuicPacketGenerator::UpdateSequenceNumberLength(
308 QuicPacketNumber least_packet_awaited_by_peer, 308 QuicPacketNumber least_packet_awaited_by_peer,
309 QuicPacketCount max_packets_in_flight) { 309 QuicPacketCount max_packets_in_flight) {
310 return packet_creator_.UpdatePacketNumberLength(least_packet_awaited_by_peer, 310 return packet_creator_.UpdatePacketNumberLength(least_packet_awaited_by_peer,
311 max_packets_in_flight); 311 max_packets_in_flight);
(...skipping 18 matching lines...) Expand all
330 330
331 void QuicPacketGenerator::SetCurrentPath( 331 void QuicPacketGenerator::SetCurrentPath(
332 QuicPathId path_id, 332 QuicPathId path_id,
333 QuicPacketNumber least_packet_awaited_by_peer, 333 QuicPacketNumber least_packet_awaited_by_peer,
334 QuicPacketCount max_packets_in_flight) { 334 QuicPacketCount max_packets_in_flight) {
335 packet_creator_.SetCurrentPath(path_id, least_packet_awaited_by_peer, 335 packet_creator_.SetCurrentPath(path_id, least_packet_awaited_by_peer,
336 max_packets_in_flight); 336 max_packets_in_flight);
337 } 337 }
338 338
339 } // namespace net 339 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_packet_generator.h ('k') | net/quic/core/quic_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698