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

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

Issue 2487613002: Landing Recent QUIC changes until 12:43 PM, Nov 5, 2016 UTC+8 (Closed)
Patch Set: Created 4 years, 1 month 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
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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 826
827 // Sets the ping alarm to the appropriate value, if any. 827 // Sets the ping alarm to the appropriate value, if any.
828 void SetPingAlarm(); 828 void SetPingAlarm();
829 829
830 // Sets the retransmission alarm based on SentPacketManager. 830 // Sets the retransmission alarm based on SentPacketManager.
831 void SetRetransmissionAlarm(); 831 void SetRetransmissionAlarm();
832 832
833 // Sets the MTU discovery alarm if necessary. 833 // Sets the MTU discovery alarm if necessary.
834 void MaybeSetMtuAlarm(); 834 void MaybeSetMtuAlarm();
835 835
836 // On arrival of a new packet, checks to see if the socket addresses have
837 // changed since the last packet we saw on this connection.
838 void CheckForAddressMigration(const IPEndPoint& self_address,
839 const IPEndPoint& peer_address);
840
841 HasRetransmittableData IsRetransmittable(const SerializedPacket& packet); 836 HasRetransmittableData IsRetransmittable(const SerializedPacket& packet);
842 bool IsTerminationPacket(const SerializedPacket& packet); 837 bool IsTerminationPacket(const SerializedPacket& packet);
843 838
844 // Set the size of the packet we are targeting while doing path MTU discovery. 839 // Set the size of the packet we are targeting while doing path MTU discovery.
845 void SetMtuDiscoveryTarget(QuicByteCount target); 840 void SetMtuDiscoveryTarget(QuicByteCount target);
846 841
847 // Returns |suggested_max_packet_size| clamped to any limits set by the 842 // Returns |suggested_max_packet_size| clamped to any limits set by the
848 // underlying writer, connection, or protocol. 843 // underlying writer, connection, or protocol.
849 QuicByteCount GetLimitedMaxPacketSize( 844 QuicByteCount GetLimitedMaxPacketSize(
850 QuicByteCount suggested_max_packet_size); 845 QuicByteCount suggested_max_packet_size);
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 // Indicates whether a write error is encountered currently. This is used to 1100 // Indicates whether a write error is encountered currently. This is used to
1106 // avoid infinite write errors. 1101 // avoid infinite write errors.
1107 bool write_error_occured_; 1102 bool write_error_occured_;
1108 1103
1109 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 1104 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
1110 }; 1105 };
1111 1106
1112 } // namespace net 1107 } // namespace net
1113 1108
1114 #endif // NET_QUIC_QUIC_CONNECTION_H_ 1109 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/tcp_cubic_sender_packets_test.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698