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 // Responsible for generating packets on behalf of a QuicConnection. | 5 // Responsible for generating packets on behalf of a QuicConnection. |
6 // Packets are serialized just-in-time. Control frames are queued. | 6 // Packets are serialized just-in-time. Control frames are queued. |
7 // Ack and Feedback frames will be requested from the Connection | 7 // Ack and Feedback frames will be requested from the Connection |
8 // just-in-time. When a packet needs to be sent, the Generator | 8 // just-in-time. When a packet needs to be sent, the Generator |
9 // will serialize a packet and pass it to QuicConnection::SendOrQueuePacket() | 9 // will serialize a packet and pass it to QuicConnection::SendOrQueuePacket() |
10 // | 10 // |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 #ifndef NET_QUIC_QUIC_PACKET_GENERATOR_H_ | 40 #ifndef NET_QUIC_QUIC_PACKET_GENERATOR_H_ |
41 #define NET_QUIC_QUIC_PACKET_GENERATOR_H_ | 41 #define NET_QUIC_QUIC_PACKET_GENERATOR_H_ |
42 | 42 |
43 #include <stddef.h> | 43 #include <stddef.h> |
44 #include <stdint.h> | 44 #include <stdint.h> |
45 | 45 |
46 #include <list> | 46 #include <list> |
47 | 47 |
48 #include "base/macros.h" | 48 #include "base/macros.h" |
| 49 #include "net/base/net_export.h" |
49 #include "net/quic/core/quic_packet_creator.h" | 50 #include "net/quic/core/quic_packet_creator.h" |
50 #include "net/quic/core/quic_sent_packet_manager.h" | 51 #include "net/quic/core/quic_sent_packet_manager.h" |
51 #include "net/quic/core/quic_types.h" | 52 #include "net/quic/core/quic_types.h" |
52 | 53 |
53 namespace net { | 54 namespace net { |
54 | 55 |
55 namespace test { | 56 namespace test { |
56 class QuicPacketGeneratorPeer; | 57 class QuicPacketGeneratorPeer; |
57 } // namespace test | 58 } // namespace test |
58 | 59 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // are referenced elsewhere so that they can later be (optionally) | 214 // are referenced elsewhere so that they can later be (optionally) |
214 // retransmitted. | 215 // retransmitted. |
215 QuicStopWaitingFrame pending_stop_waiting_frame_; | 216 QuicStopWaitingFrame pending_stop_waiting_frame_; |
216 | 217 |
217 DISALLOW_COPY_AND_ASSIGN(QuicPacketGenerator); | 218 DISALLOW_COPY_AND_ASSIGN(QuicPacketGenerator); |
218 }; | 219 }; |
219 | 220 |
220 } // namespace net | 221 } // namespace net |
221 | 222 |
222 #endif // NET_QUIC_QUIC_PACKET_GENERATOR_H_ | 223 #endif // NET_QUIC_QUIC_PACKET_GENERATOR_H_ |
OLD | NEW |