| 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/quic/quic_packet_creator.h" | 49 #include "net/quic/core/quic_packet_creator.h" |
| 50 #include "net/quic/quic_sent_packet_manager.h" | 50 #include "net/quic/core/quic_sent_packet_manager.h" |
| 51 #include "net/quic/quic_types.h" | 51 #include "net/quic/core/quic_types.h" |
| 52 | 52 |
| 53 namespace net { | 53 namespace net { |
| 54 | 54 |
| 55 namespace test { | 55 namespace test { |
| 56 class QuicPacketGeneratorPeer; | 56 class QuicPacketGeneratorPeer; |
| 57 } // namespace test | 57 } // namespace test |
| 58 | 58 |
| 59 class NET_EXPORT_PRIVATE QuicPacketGenerator { | 59 class NET_EXPORT_PRIVATE QuicPacketGenerator { |
| 60 public: | 60 public: |
| 61 class NET_EXPORT_PRIVATE DelegateInterface | 61 class NET_EXPORT_PRIVATE DelegateInterface |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // retransmitted. | 216 // retransmitted. |
| 217 QuicAckFrame pending_ack_frame_; | 217 QuicAckFrame pending_ack_frame_; |
| 218 QuicStopWaitingFrame pending_stop_waiting_frame_; | 218 QuicStopWaitingFrame pending_stop_waiting_frame_; |
| 219 | 219 |
| 220 DISALLOW_COPY_AND_ASSIGN(QuicPacketGenerator); | 220 DISALLOW_COPY_AND_ASSIGN(QuicPacketGenerator); |
| 221 }; | 221 }; |
| 222 | 222 |
| 223 } // namespace net | 223 } // namespace net |
| 224 | 224 |
| 225 #endif // NET_QUIC_QUIC_PACKET_GENERATOR_H_ | 225 #endif // NET_QUIC_QUIC_PACKET_GENERATOR_H_ |
| OLD | NEW |