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

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

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@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_framer.cc ('k') | net/quic/quic_packet_creator.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 // Accumulates frames for the next packet until more frames no longer fit or 5 // Accumulates frames for the next packet until more frames no longer fit or
6 // it's time to create a packet from them. Also provides packet creation of 6 // it's time to create a packet from them. Also provides packet creation of
7 // FEC packets based on previously created packets. 7 // FEC packets based on previously created packets.
8 8
9 #ifndef NET_QUIC_QUIC_PACKET_CREATOR_H_ 9 #ifndef NET_QUIC_QUIC_PACKET_CREATOR_H_
10 #define NET_QUIC_QUIC_PACKET_CREATOR_H_ 10 #define NET_QUIC_QUIC_PACKET_CREATOR_H_
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 193 }
194 194
195 void set_sequence_number(QuicPacketSequenceNumber s) { 195 void set_sequence_number(QuicPacketSequenceNumber s) {
196 sequence_number_ = s; 196 sequence_number_ = s;
197 } 197 }
198 198
199 QuicConnectionIdLength connection_id_length() const { 199 QuicConnectionIdLength connection_id_length() const {
200 return connection_id_length_; 200 return connection_id_length_;
201 } 201 }
202 202
203 void set_connection_id_length(QuicConnectionIdLength length) {
204 connection_id_length_ = length;
205 }
206
203 QuicSequenceNumberLength next_sequence_number_length() const { 207 QuicSequenceNumberLength next_sequence_number_length() const {
204 return next_sequence_number_length_; 208 return next_sequence_number_length_;
205 } 209 }
206 210
207 void set_next_sequence_number_length(QuicSequenceNumberLength length) { 211 void set_next_sequence_number_length(QuicSequenceNumberLength length) {
208 next_sequence_number_length_ = length; 212 next_sequence_number_length_ = length;
209 } 213 }
210 214
211 size_t max_packet_length() const { 215 size_t max_packet_length() const {
212 return max_packet_length_; 216 return max_packet_length_;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 mutable size_t packet_size_; 291 mutable size_t packet_size_;
288 QuicFrames queued_frames_; 292 QuicFrames queued_frames_;
289 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_; 293 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_;
290 294
291 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator); 295 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator);
292 }; 296 };
293 297
294 } // namespace net 298 } // namespace net
295 299
296 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_ 300 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_
OLDNEW
« no previous file with comments | « net/quic/quic_framer.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698