Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: net/quic/quic_connection.h

Issue 561513003: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 // Contains the connection close packet if the connection has been closed. 716 // Contains the connection close packet if the connection has been closed.
717 scoped_ptr<QuicEncryptedPacket> connection_close_packet_; 717 scoped_ptr<QuicEncryptedPacket> connection_close_packet_;
718 718
719 FecGroupMap group_map_; 719 FecGroupMap group_map_;
720 720
721 QuicReceivedPacketManager received_packet_manager_; 721 QuicReceivedPacketManager received_packet_manager_;
722 QuicSentEntropyManager sent_entropy_manager_; 722 QuicSentEntropyManager sent_entropy_manager_;
723 723
724 // Indicates whether an ack should be sent the next time we try to write. 724 // Indicates whether an ack should be sent the next time we try to write.
725 bool ack_queued_; 725 bool ack_queued_;
726 // Indicates how many consecutive packets have arrived without sending an ack.
727 uint32 num_packets_received_since_last_ack_sent_;
726 // Indicates how many consecutive times an ack has arrived which indicates 728 // Indicates how many consecutive times an ack has arrived which indicates
727 // the peer needs to stop waiting for some packets. 729 // the peer needs to stop waiting for some packets.
728 int stop_waiting_count_; 730 int stop_waiting_count_;
729 731
730 // An alarm that fires when an ACK should be sent to the peer. 732 // An alarm that fires when an ACK should be sent to the peer.
731 scoped_ptr<QuicAlarm> ack_alarm_; 733 scoped_ptr<QuicAlarm> ack_alarm_;
732 // An alarm that fires when a packet needs to be retransmitted. 734 // An alarm that fires when a packet needs to be retransmitted.
733 scoped_ptr<QuicAlarm> retransmission_alarm_; 735 scoped_ptr<QuicAlarm> retransmission_alarm_;
734 // An alarm that is scheduled when the sent scheduler requires a 736 // An alarm that is scheduled when the sent scheduler requires a
735 // a delay before sending packets and fires when the packet may be sent. 737 // a delay before sending packets and fires when the packet may be sent.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 // If non-empty this contains the set of versions received in a 802 // If non-empty this contains the set of versions received in a
801 // version negotiation packet. 803 // version negotiation packet.
802 QuicVersionVector server_supported_versions_; 804 QuicVersionVector server_supported_versions_;
803 805
804 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 806 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
805 }; 807 };
806 808
807 } // namespace net 809 } // namespace net
808 810
809 #endif // NET_QUIC_QUIC_CONNECTION_H_ 811 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698