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

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

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 years, 7 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_framer_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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // packet. Also, sets the entropy hash of the serialized packet to a random 113 // packet. Also, sets the entropy hash of the serialized packet to a random
114 // bool and returns that value as a member of SerializedPacket. 114 // bool and returns that value as a member of SerializedPacket.
115 SerializedPacket SerializeConnectionClose( 115 SerializedPacket SerializeConnectionClose(
116 QuicConnectionCloseFrame* close_frame); 116 QuicConnectionCloseFrame* close_frame);
117 117
118 // Creates a version negotiation packet which supports |supported_versions|. 118 // Creates a version negotiation packet which supports |supported_versions|.
119 // Caller owns the created packet. Also, sets the entropy hash of the 119 // Caller owns the created packet. Also, sets the entropy hash of the
120 // serialized packet to a random bool and returns that value as a member of 120 // serialized packet to a random bool and returns that value as a member of
121 // SerializedPacket. 121 // SerializedPacket.
122 QuicEncryptedPacket* SerializeVersionNegotiationPacket( 122 QuicEncryptedPacket* SerializeVersionNegotiationPacket(
123 const QuicVersionTagList& supported_versions); 123 const QuicTagVector& supported_versions);
124 124
125 QuicPacketSequenceNumber sequence_number() const { 125 QuicPacketSequenceNumber sequence_number() const {
126 return sequence_number_; 126 return sequence_number_;
127 } 127 }
128 128
129 void set_sequence_number(QuicPacketSequenceNumber s) { 129 void set_sequence_number(QuicPacketSequenceNumber s) {
130 sequence_number_ = s; 130 sequence_number_ = s;
131 } 131 }
132 132
133 Options* options() { 133 Options* options() {
(...skipping 29 matching lines...) Expand all
163 size_t packet_size_; 163 size_t packet_size_;
164 QuicFrames queued_frames_; 164 QuicFrames queued_frames_;
165 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_; 165 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_;
166 166
167 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator); 167 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator);
168 }; 168 };
169 169
170 } // namespace net 170 } // namespace net
171 171
172 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_ 172 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_
OLDNEW
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698