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

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

Issue 126283002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed extra space Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_http_stream.h ('k') | net/quic/quic_packet_generator_test.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 QuicGuidLength send_guid_length; 44 QuicGuidLength send_guid_length;
45 QuicSequenceNumberLength send_sequence_number_length; 45 QuicSequenceNumberLength send_sequence_number_length;
46 }; 46 };
47 47
48 // QuicRandom* required for packet entropy. 48 // QuicRandom* required for packet entropy.
49 QuicPacketCreator(QuicGuid guid, 49 QuicPacketCreator(QuicGuid guid,
50 QuicFramer* framer, 50 QuicFramer* framer,
51 QuicRandom* random_generator, 51 QuicRandom* random_generator,
52 bool is_server); 52 bool is_server);
53 53
54 virtual ~QuicPacketCreator(); 54 virtual ~QuicPacketCreator() OVERRIDE;
55 55
56 // QuicFecBuilderInterface 56 // QuicFecBuilderInterface
57 virtual void OnBuiltFecProtectedPayload(const QuicPacketHeader& header, 57 virtual void OnBuiltFecProtectedPayload(const QuicPacketHeader& header,
58 base::StringPiece payload) OVERRIDE; 58 base::StringPiece payload) OVERRIDE;
59 59
60 // Checks if it's time to send an FEC packet. |force_close| forces this to 60 // Checks if it's time to send an FEC packet. |force_close| forces this to
61 // return true if an fec group is open. 61 // return true if an fec group is open.
62 bool ShouldSendFec(bool force_close) const; 62 bool ShouldSendFec(bool force_close) const;
63 63
64 // Makes the framer not serialize the protocol version in sent packets. 64 // Makes the framer not serialize the protocol version in sent packets.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 mutable size_t packet_size_; 219 mutable size_t packet_size_;
220 QuicFrames queued_frames_; 220 QuicFrames queued_frames_;
221 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_; 221 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_;
222 222
223 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator); 223 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator);
224 }; 224 };
225 225
226 } // namespace net 226 } // namespace net
227 227
228 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_ 228 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_
OLDNEW
« no previous file with comments | « net/quic/quic_http_stream.h ('k') | net/quic/quic_packet_generator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698