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_ |
11 | 11 |
12 #include <utility> | 12 #include <utility> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/string_piece.h" | 16 #include "base/strings/string_piece.h" |
17 #include "net/quic/quic_fec_group.h" | 17 #include "net/quic/quic_fec_group.h" |
18 #include "net/quic/quic_framer.h" | 18 #include "net/quic/quic_framer.h" |
19 #include "net/quic/quic_protocol.h" | 19 #include "net/quic/quic_protocol.h" |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 namespace test { | 22 namespace test { |
23 class QuicPacketCreatorPeer; | 23 class QuicPacketCreatorPeer; |
24 } | 24 } |
25 | 25 |
26 class QuicRandom; | 26 class QuicRandom; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |