OLD | NEW |
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 : public QuicPacketGenerator::DebugDelegate, | 151 : public QuicPacketGenerator::DebugDelegate, |
152 public QuicSentPacketManager::DebugDelegate { | 152 public QuicSentPacketManager::DebugDelegate { |
153 public: | 153 public: |
154 ~QuicConnectionDebugVisitor() override {} | 154 ~QuicConnectionDebugVisitor() override {} |
155 | 155 |
156 // Called when a packet has been sent. | 156 // Called when a packet has been sent. |
157 virtual void OnPacketSent(const SerializedPacket& serialized_packet, | 157 virtual void OnPacketSent(const SerializedPacket& serialized_packet, |
158 QuicPacketNumber original_packet_number, | 158 QuicPacketNumber original_packet_number, |
159 EncryptionLevel level, | 159 EncryptionLevel level, |
160 TransmissionType transmission_type, | 160 TransmissionType transmission_type, |
161 const QuicEncryptedPacket& packet, | 161 size_t encrypted_length, |
162 QuicTime sent_time) {} | 162 QuicTime sent_time) {} |
163 | 163 |
164 // Called when a packet has been received, but before it is | 164 // Called when a packet has been received, but before it is |
165 // validated or parsed. | 165 // validated or parsed. |
166 virtual void OnPacketReceived(const IPEndPoint& self_address, | 166 virtual void OnPacketReceived(const IPEndPoint& self_address, |
167 const IPEndPoint& peer_address, | 167 const IPEndPoint& peer_address, |
168 const QuicEncryptedPacket& packet) {} | 168 const QuicEncryptedPacket& packet) {} |
169 | 169 |
170 // Called when the unauthenticated portion of the header has been parsed. | 170 // Called when the unauthenticated portion of the header has been parsed. |
171 virtual void OnUnauthenticatedHeader(const QuicPacketHeader& header) {} | 171 virtual void OnUnauthenticatedHeader(const QuicPacketHeader& header) {} |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 | 982 |
983 // Whether a GoAway has been received. | 983 // Whether a GoAway has been received. |
984 bool goaway_received_; | 984 bool goaway_received_; |
985 | 985 |
986 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 986 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
987 }; | 987 }; |
988 | 988 |
989 } // namespace net | 989 } // namespace net |
990 | 990 |
991 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 991 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |