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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |