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

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

Issue 627583002: Remove QuicSentPacketManager::DebugVisitor's OnSentPacket, since it's (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client_provides_an_STK_76455340
Patch Set: Created 6 years, 2 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') | net/quic/quic_connection_logger.cc » ('J')
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Interface which gets callbacks from the QuicConnection at interesting 117 // Interface which gets callbacks from the QuicConnection at interesting
118 // points. Implementations must not mutate the state of the connection 118 // points. Implementations must not mutate the state of the connection
119 // as a result of these callbacks. 119 // as a result of these callbacks.
120 class NET_EXPORT_PRIVATE QuicConnectionDebugVisitor 120 class NET_EXPORT_PRIVATE QuicConnectionDebugVisitor
121 : public QuicPacketGenerator::DebugDelegate, 121 : public QuicPacketGenerator::DebugDelegate,
122 public QuicSentPacketManager::DebugDelegate { 122 public QuicSentPacketManager::DebugDelegate {
123 public: 123 public:
124 virtual ~QuicConnectionDebugVisitor() {} 124 virtual ~QuicConnectionDebugVisitor() {}
125 125
126 // Called when a packet has been sent. 126 // Called when a packet has been sent.
127 virtual void OnPacketSent(QuicPacketSequenceNumber sequence_number, 127 virtual void OnPacketSent(const SerializedPacket& serialized_packet,
128 QuicPacketSequenceNumber original_sequence_number, 128 QuicPacketSequenceNumber original_sequence_number,
129 EncryptionLevel level, 129 EncryptionLevel level,
130 TransmissionType transmission_type, 130 TransmissionType transmission_type,
131 const QuicEncryptedPacket& packet, 131 const QuicEncryptedPacket& packet,
132 WriteResult result) {} 132 QuicTime sent_time) {}
133 133
134 // Called when a packet has been received, but before it is 134 // Called when a packet has been received, but before it is
135 // validated or parsed. 135 // validated or parsed.
136 virtual void OnPacketReceived(const IPEndPoint& self_address, 136 virtual void OnPacketReceived(const IPEndPoint& self_address,
137 const IPEndPoint& peer_address, 137 const IPEndPoint& peer_address,
138 const QuicEncryptedPacket& packet) {} 138 const QuicEncryptedPacket& packet) {}
139 139
140 // Called when a packet is received with a connection id that does not 140 // Called when a packet is received with a connection id that does not
141 // match the ID of this connection. 141 // match the ID of this connection.
142 virtual void OnIncorrectConnectionId( 142 virtual void OnIncorrectConnectionId(
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 // If non-empty this contains the set of versions received in a 811 // If non-empty this contains the set of versions received in a
812 // version negotiation packet. 812 // version negotiation packet.
813 QuicVersionVector server_supported_versions_; 813 QuicVersionVector server_supported_versions_;
814 814
815 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 815 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
816 }; 816 };
817 817
818 } // namespace net 818 } // namespace net
819 819
820 #endif // NET_QUIC_QUIC_CONNECTION_H_ 820 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_connection.cc » ('j') | net/quic/quic_connection_logger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698