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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // operations can be grouped into the same FEC group. | 47 // operations can be grouped into the same FEC group. |
48 // | 48 // |
49 // When an FEC packet is generated, it will be send to the Delegate, | 49 // When an FEC packet is generated, it will be send to the Delegate, |
50 // even if the Delegate has become unwritable after handling the | 50 // even if the Delegate has become unwritable after handling the |
51 // data packet immediately proceeding the FEC packet. | 51 // data packet immediately proceeding the FEC packet. |
52 | 52 |
53 #ifndef NET_QUIC_QUIC_PACKET_GENERATOR_H_ | 53 #ifndef NET_QUIC_QUIC_PACKET_GENERATOR_H_ |
54 #define NET_QUIC_QUIC_PACKET_GENERATOR_H_ | 54 #define NET_QUIC_QUIC_PACKET_GENERATOR_H_ |
55 | 55 |
56 #include "net/quic/quic_packet_creator.h" | 56 #include "net/quic/quic_packet_creator.h" |
| 57 #include "net/quic/quic_types.h" |
57 | 58 |
58 namespace net { | 59 namespace net { |
59 | 60 |
60 class QuicAckNotifier; | 61 class QuicAckNotifier; |
61 | 62 |
62 class NET_EXPORT_PRIVATE QuicPacketGenerator { | 63 class NET_EXPORT_PRIVATE QuicPacketGenerator { |
63 public: | 64 public: |
64 class NET_EXPORT_PRIVATE DelegateInterface { | 65 class NET_EXPORT_PRIVATE DelegateInterface { |
65 public: | 66 public: |
66 virtual ~DelegateInterface() {} | 67 virtual ~DelegateInterface() {} |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 scoped_ptr<QuicAckFrame> pending_ack_frame_; | 172 scoped_ptr<QuicAckFrame> pending_ack_frame_; |
172 scoped_ptr<QuicCongestionFeedbackFrame> pending_feedback_frame_; | 173 scoped_ptr<QuicCongestionFeedbackFrame> pending_feedback_frame_; |
173 scoped_ptr<QuicStopWaitingFrame> pending_stop_waiting_frame_; | 174 scoped_ptr<QuicStopWaitingFrame> pending_stop_waiting_frame_; |
174 | 175 |
175 DISALLOW_COPY_AND_ASSIGN(QuicPacketGenerator); | 176 DISALLOW_COPY_AND_ASSIGN(QuicPacketGenerator); |
176 }; | 177 }; |
177 | 178 |
178 } // namespace net | 179 } // namespace net |
179 | 180 |
180 #endif // NET_QUIC_QUIC_PACKET_GENERATOR_H_ | 181 #endif // NET_QUIC_QUIC_PACKET_GENERATOR_H_ |
OLD | NEW |