OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |