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/strings/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 NET_EXPORT_PRIVATE extern bool FLAGS_pad_quic_handshake_packets; | |
22 | |
23 namespace net { | 21 namespace net { |
24 namespace test { | 22 namespace test { |
25 class QuicPacketCreatorPeer; | 23 class QuicPacketCreatorPeer; |
26 } | 24 } |
27 | 25 |
28 class QuicAckNotifier; | 26 class QuicAckNotifier; |
29 class QuicRandom; | 27 class QuicRandom; |
30 class QuicRandomBoolSource; | 28 class QuicRandomBoolSource; |
31 | 29 |
32 class NET_EXPORT_PRIVATE QuicPacketCreator : public QuicFecBuilderInterface { | 30 class NET_EXPORT_PRIVATE QuicPacketCreator : public QuicFecBuilderInterface { |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 mutable size_t packet_size_; | 219 mutable size_t packet_size_; |
222 QuicFrames queued_frames_; | 220 QuicFrames queued_frames_; |
223 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_; | 221 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_; |
224 | 222 |
225 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator); | 223 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator); |
226 }; | 224 }; |
227 | 225 |
228 } // namespace net | 226 } // namespace net |
229 | 227 |
230 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_ | 228 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_ |
OLD | NEW |