| 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 // The entity that handles framing writes for a Quic client or server. | 5 // The entity that handles framing writes for a Quic client or server. |
| 6 // Each QuicSession will have a connection associated with it. | 6 // Each QuicSession will have a connection associated with it. |
| 7 // | 7 // |
| 8 // On the server side, the Dispatcher handles the raw reads, and hands off | 8 // On the server side, the Dispatcher handles the raw reads, and hands off |
| 9 // packets via ProcessUdpPacket for framing and processing. | 9 // packets via ProcessUdpPacket for framing and processing. |
| 10 // | 10 // |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 // they are added to this list. All corresponding frames are in | 885 // they are added to this list. All corresponding frames are in |
| 886 // unacked_packets_ if they are to be retransmitted. | 886 // unacked_packets_ if they are to be retransmitted. |
| 887 QueuedPacketList queued_packets_; | 887 QueuedPacketList queued_packets_; |
| 888 | 888 |
| 889 // If true, then crypto packets will be saved as termination packets. | 889 // If true, then crypto packets will be saved as termination packets. |
| 890 bool save_crypto_packets_as_termination_packets_; | 890 bool save_crypto_packets_as_termination_packets_; |
| 891 | 891 |
| 892 // Contains the connection close packets if the connection has been closed. | 892 // Contains the connection close packets if the connection has been closed. |
| 893 scoped_ptr<std::vector<QuicEncryptedPacket*>> termination_packets_; | 893 scoped_ptr<std::vector<QuicEncryptedPacket*>> termination_packets_; |
| 894 | 894 |
| 895 // When true, the connection does not send a close packet on timeout. | 895 // When true, the connection does not send a close packet on idle timeout due |
| 896 // to lack of network activity. |
| 897 // This is particularly important on mobile, where connections are short. |
| 896 bool silent_close_enabled_; | 898 bool silent_close_enabled_; |
| 897 | 899 |
| 898 FecGroupMap group_map_; | 900 FecGroupMap group_map_; |
| 899 | 901 |
| 900 QuicReceivedPacketManager received_packet_manager_; | 902 QuicReceivedPacketManager received_packet_manager_; |
| 901 QuicSentEntropyManager sent_entropy_manager_; | 903 QuicSentEntropyManager sent_entropy_manager_; |
| 902 | 904 |
| 903 // Indicates whether an ack should be sent the next time we try to write. | 905 // Indicates whether an ack should be sent the next time we try to write. |
| 904 bool ack_queued_; | 906 bool ack_queued_; |
| 905 // How many retransmittable packets have arrived without sending an ack. | 907 // How many retransmittable packets have arrived without sending an ack. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 | 1040 |
| 1039 // If true, multipath is enabled for this connection. | 1041 // If true, multipath is enabled for this connection. |
| 1040 bool multipath_enabled_; | 1042 bool multipath_enabled_; |
| 1041 | 1043 |
| 1042 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1044 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1043 }; | 1045 }; |
| 1044 | 1046 |
| 1045 } // namespace net | 1047 } // namespace net |
| 1046 | 1048 |
| 1047 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1049 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |