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

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

Issue 903013002: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « net/quic/quic_config.cc ('k') | 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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 663
664 // Sets the ping alarm to the appropriate value, if any. 664 // Sets the ping alarm to the appropriate value, if any.
665 void SetPingAlarm(); 665 void SetPingAlarm();
666 666
667 // On arrival of a new packet, checks to see if the socket addresses have 667 // On arrival of a new packet, checks to see if the socket addresses have
668 // changed since the last packet we saw on this connection. 668 // changed since the last packet we saw on this connection.
669 void CheckForAddressMigration(const IPEndPoint& self_address, 669 void CheckForAddressMigration(const IPEndPoint& self_address,
670 const IPEndPoint& peer_address); 670 const IPEndPoint& peer_address);
671 671
672 HasRetransmittableData IsRetransmittable(const QueuedPacket& packet); 672 HasRetransmittableData IsRetransmittable(const QueuedPacket& packet);
673 bool IsConnectionClose(QueuedPacket packet); 673 bool IsConnectionClose(const QueuedPacket& packet);
674 674
675 QuicFramer framer_; 675 QuicFramer framer_;
676 QuicConnectionHelperInterface* helper_; // Not owned. 676 QuicConnectionHelperInterface* helper_; // Not owned.
677 QuicPacketWriter* writer_; // Owned or not depending on |owns_writer_|. 677 QuicPacketWriter* writer_; // Owned or not depending on |owns_writer_|.
678 bool owns_writer_; 678 bool owns_writer_;
679 // Encryption level for new packets. Should only be changed via 679 // Encryption level for new packets. Should only be changed via
680 // SetDefaultEncryptionLevel(). 680 // SetDefaultEncryptionLevel().
681 EncryptionLevel encryption_level_; 681 EncryptionLevel encryption_level_;
682 bool has_forward_secure_encrypter_; 682 bool has_forward_secure_encrypter_;
683 // The sequence number of the first packet which will be encrypted with the 683 // The sequence number of the first packet which will be encrypted with the
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 839
840 // True if this is a secure QUIC connection. 840 // True if this is a secure QUIC connection.
841 bool is_secure_; 841 bool is_secure_;
842 842
843 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 843 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
844 }; 844 };
845 845
846 } // namespace net 846 } // namespace net
847 847
848 #endif // NET_QUIC_QUIC_CONNECTION_H_ 848 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_config.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698