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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // packet. Also, sets the entropy hash of the serialized packet to a random | 122 // packet. Also, sets the entropy hash of the serialized packet to a random |
123 // bool and returns that value as a member of SerializedPacket. | 123 // bool and returns that value as a member of SerializedPacket. |
124 SerializedPacket SerializeConnectionClose( | 124 SerializedPacket SerializeConnectionClose( |
125 QuicConnectionCloseFrame* close_frame); | 125 QuicConnectionCloseFrame* close_frame); |
126 | 126 |
127 // Creates a version negotiation packet which supports |supported_versions|. | 127 // Creates a version negotiation packet which supports |supported_versions|. |
128 // Caller owns the created packet. Also, sets the entropy hash of the | 128 // Caller owns the created packet. Also, sets the entropy hash of the |
129 // serialized packet to a random bool and returns that value as a member of | 129 // serialized packet to a random bool and returns that value as a member of |
130 // SerializedPacket. | 130 // SerializedPacket. |
131 QuicEncryptedPacket* SerializeVersionNegotiationPacket( | 131 QuicEncryptedPacket* SerializeVersionNegotiationPacket( |
132 const QuicTagVector& supported_versions); | 132 const QuicVersionVector& supported_versions); |
133 | 133 |
134 QuicPacketSequenceNumber sequence_number() const { | 134 QuicPacketSequenceNumber sequence_number() const { |
135 return sequence_number_; | 135 return sequence_number_; |
136 } | 136 } |
137 | 137 |
138 void set_sequence_number(QuicPacketSequenceNumber s) { | 138 void set_sequence_number(QuicPacketSequenceNumber s) { |
139 sequence_number_ = s; | 139 sequence_number_ = s; |
140 } | 140 } |
141 | 141 |
142 Options* options() { | 142 Options* options() { |
(...skipping 29 matching lines...) Expand all Loading... |
172 size_t packet_size_; | 172 size_t packet_size_; |
173 QuicFrames queued_frames_; | 173 QuicFrames queued_frames_; |
174 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_; | 174 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_; |
175 | 175 |
176 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator); | 176 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator); |
177 }; | 177 }; |
178 | 178 |
179 } // namespace net | 179 } // namespace net |
180 | 180 |
181 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_ | 181 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_ |
OLD | NEW |