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

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

Issue 1710173002: relnote: Deprecate FLAGS_quic_retransmit_via_onserializedpacket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/quic_packet_creator_test.cc ('k') | net/quic/quic_packet_generator.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 // Responsible for generating packets on behalf of a QuicConnection. 5 // Responsible for generating packets on behalf of a QuicConnection.
6 // Packets are serialized just-in-time. Control frames are queued. 6 // Packets are serialized just-in-time. Control frames are queued.
7 // Ack and Feedback frames will be requested from the Connection 7 // Ack and Feedback frames will be requested from the Connection
8 // just-in-time. When a packet needs to be sent, the Generator 8 // just-in-time. When a packet needs to be sent, the Generator
9 // will serialize a packet and pass it to QuicConnection::SendOrQueuePacket() 9 // will serialize a packet and pass it to QuicConnection::SendOrQueuePacket()
10 // 10 //
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Caller owns the created packet. Also, sets the entropy hash of the 141 // Caller owns the created packet. Also, sets the entropy hash of the
142 // serialized packet to a random bool and returns that value as a member of 142 // serialized packet to a random bool and returns that value as a member of
143 // SerializedPacket. 143 // SerializedPacket.
144 QuicEncryptedPacket* SerializeVersionNegotiationPacket( 144 QuicEncryptedPacket* SerializeVersionNegotiationPacket(
145 const QuicVersionVector& supported_versions); 145 const QuicVersionVector& supported_versions);
146 146
147 // Re-serializes frames with the original packet's packet number length. 147 // Re-serializes frames with the original packet's packet number length.
148 // Used for retransmitting packets to ensure they aren't too long. 148 // Used for retransmitting packets to ensure they aren't too long.
149 // Caller must ensure that any open FEC group is closed before calling this 149 // Caller must ensure that any open FEC group is closed before calling this
150 // method. 150 // method.
151 SerializedPacket ReserializeAllFrames( 151 void ReserializeAllFrames(const PendingRetransmission& retransmission,
152 const PendingRetransmission& retransmission, 152 char* buffer,
153 char* buffer, 153 size_t buffer_len);
154 size_t buffer_len);
155 154
156 // Update the packet number length to use in future packets as soon as it 155 // Update the packet number length to use in future packets as soon as it
157 // can be safely changed. 156 // can be safely changed.
158 void UpdateSequenceNumberLength(QuicPacketNumber least_packet_awaited_by_peer, 157 void UpdateSequenceNumberLength(QuicPacketNumber least_packet_awaited_by_peer,
159 QuicPacketCount max_packets_in_flight); 158 QuicPacketCount max_packets_in_flight);
160 159
161 // Set the minimum number of bytes for the connection id length; 160 // Set the minimum number of bytes for the connection id length;
162 void SetConnectionIdLength(uint32_t length); 161 void SetConnectionIdLength(uint32_t length);
163 162
164 // Called when the FEC alarm fires. 163 // Called when the FEC alarm fires.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // the maximum size we are actually using now, if we are in the middle of the 245 // the maximum size we are actually using now, if we are in the middle of the
247 // packet. 246 // packet.
248 QuicByteCount max_packet_length_; 247 QuicByteCount max_packet_length_;
249 248
250 DISALLOW_COPY_AND_ASSIGN(QuicPacketGenerator); 249 DISALLOW_COPY_AND_ASSIGN(QuicPacketGenerator);
251 }; 250 };
252 251
253 } // namespace net 252 } // namespace net
254 253
255 #endif // NET_QUIC_QUIC_PACKET_GENERATOR_H_ 254 #endif // NET_QUIC_QUIC_PACKET_GENERATOR_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_packet_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698