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

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

Issue 1979193012: Add more information to QUIC close connection detail about QUIC_OVERLAPPING_STREAM_DATA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@121905158
Patch Set: Created 4 years, 7 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_stream_sequencer.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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 QuicAlarmFactory* alarm_factory() { return alarm_factory_; } 668 QuicAlarmFactory* alarm_factory() { return alarm_factory_; }
669 669
670 base::StringPiece GetCurrentPacket(); 670 base::StringPiece GetCurrentPacket();
671 671
672 const QuicPacketGenerator& packet_generator() const { 672 const QuicPacketGenerator& packet_generator() const {
673 return packet_generator_; 673 return packet_generator_;
674 } 674 }
675 675
676 EncryptionLevel encryption_level() const { return encryption_level_; } 676 EncryptionLevel encryption_level() const { return encryption_level_; }
677 677
678 const IPEndPoint& last_packet_source_address() const {
679 return last_packet_source_address_;
680 }
681
678 protected: 682 protected:
679 // Send a packet to the peer, and takes ownership of the packet if the packet 683 // Send a packet to the peer, and takes ownership of the packet if the packet
680 // cannot be written immediately. 684 // cannot be written immediately.
681 virtual void SendOrQueuePacket(SerializedPacket* packet); 685 virtual void SendOrQueuePacket(SerializedPacket* packet);
682 686
683 // Called after a packet is received from a new peer address and is 687 // Called after a packet is received from a new peer address and is
684 // decrypted. Starts validation of peer's address change. 688 // decrypted. Starts validation of peer's address change.
685 virtual void StartPeerMigration(PeerAddressChangeType peer_migration_type); 689 virtual void StartPeerMigration(PeerAddressChangeType peer_migration_type);
686 690
687 // Called when a peer migration is validated. 691 // Called when a peer migration is validated.
688 virtual void OnPeerMigrationValidated(); 692 virtual void OnPeerMigrationValidated();
689 693
690 // Selects and updates the version of the protocol being used by selecting a 694 // Selects and updates the version of the protocol being used by selecting a
691 // version from |available_versions| which is also supported. Returns true if 695 // version from |available_versions| which is also supported. Returns true if
692 // such a version exists, false otherwise. 696 // such a version exists, false otherwise.
693 bool SelectMutualVersion(const QuicVersionVector& available_versions); 697 bool SelectMutualVersion(const QuicVersionVector& available_versions);
694 698
695 const IPEndPoint& last_packet_source_address() const {
696 return last_packet_source_address_;
697 }
698
699 // Returns the current per-packet options for the connection. 699 // Returns the current per-packet options for the connection.
700 PerPacketOptions* per_packet_options() { return per_packet_options_; } 700 PerPacketOptions* per_packet_options() { return per_packet_options_; }
701 // Sets the current per-packet options for the connection. The QuicConnection 701 // Sets the current per-packet options for the connection. The QuicConnection
702 // does not take ownership of |options|; |options| must live for as long as 702 // does not take ownership of |options|; |options| must live for as long as
703 // the QuicConnection is in use. 703 // the QuicConnection is in use.
704 void set_per_packet_options(PerPacketOptions* options) { 704 void set_per_packet_options(PerPacketOptions* options) {
705 per_packet_options_ = options; 705 per_packet_options_ = options;
706 } 706 }
707 707
708 // If |defer| is true, configures the connection to defer sending packets in 708 // If |defer| is true, configures the connection to defer sending packets in
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 1058
1059 // If true, multipath is enabled for this connection. 1059 // If true, multipath is enabled for this connection.
1060 bool multipath_enabled_; 1060 bool multipath_enabled_;
1061 1061
1062 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 1062 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
1063 }; 1063 };
1064 1064
1065 } // namespace net 1065 } // namespace net
1066 1066
1067 #endif // NET_QUIC_QUIC_CONNECTION_H_ 1067 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_stream_sequencer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698