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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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_http_stream_test.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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // single packet. Also, sets the entropy hash of the serialized packet to a 91 // single packet. Also, sets the entropy hash of the serialized packet to a
92 // random bool and returns that value as a member of SerializedPacket. 92 // random bool and returns that value as a member of SerializedPacket.
93 // Never returns a RetransmittableFrames in SerializedPacket. 93 // Never returns a RetransmittableFrames in SerializedPacket.
94 SerializedPacket SerializeAllFrames(const QuicFrames& frames); 94 SerializedPacket SerializeAllFrames(const QuicFrames& frames);
95 95
96 // Re-serializes frames with the original packet's sequence number length. 96 // Re-serializes frames with the original packet's sequence number length.
97 // Used for retransmitting packets to ensure they aren't too long. 97 // Used for retransmitting packets to ensure they aren't too long.
98 // Caller must ensure that any open FEC group is closed before calling this 98 // Caller must ensure that any open FEC group is closed before calling this
99 // method. 99 // method.
100 SerializedPacket ReserializeAllFrames( 100 SerializedPacket ReserializeAllFrames(
101 const QuicFrames& frames, 101 const RetransmittableFrames& frames,
102 QuicSequenceNumberLength original_length); 102 QuicSequenceNumberLength original_length);
103 103
104 // Returns true if there are frames pending to be serialized. 104 // Returns true if there are frames pending to be serialized.
105 bool HasPendingFrames() const; 105 bool HasPendingFrames() const;
106 106
107 // Returns true if there are retransmittable frames pending to be serialized. 107 // Returns true if there are retransmittable frames pending to be serialized.
108 bool HasPendingRetransmittableFrames() const; 108 bool HasPendingRetransmittableFrames() const;
109 109
110 // TODO(jri): Remove this method. 110 // TODO(jri): Remove this method.
111 // Returns whether FEC protection is currently enabled. Note: Enabled does not 111 // Returns whether FEC protection is currently enabled. Note: Enabled does not
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 mutable size_t packet_size_; 286 mutable size_t packet_size_;
287 QuicFrames queued_frames_; 287 QuicFrames queued_frames_;
288 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_; 288 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_;
289 289
290 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator); 290 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator);
291 }; 291 };
292 292
293 } // namespace net 293 } // namespace net
294 294
295 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_ 295 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_
OLDNEW
« no previous file with comments | « net/quic/quic_http_stream_test.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698