| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Interface which gets callbacks from the QuicConnection at interesting | 161 // Interface which gets callbacks from the QuicConnection at interesting |
| 162 // points. Implementations must not mutate the state of the connection | 162 // points. Implementations must not mutate the state of the connection |
| 163 // as a result of these callbacks. | 163 // as a result of these callbacks. |
| 164 class NET_EXPORT_PRIVATE QuicConnectionDebugVisitor | 164 class NET_EXPORT_PRIVATE QuicConnectionDebugVisitor |
| 165 : public QuicSentPacketManager::DebugDelegate { | 165 : public QuicSentPacketManager::DebugDelegate { |
| 166 public: | 166 public: |
| 167 ~QuicConnectionDebugVisitor() override {} | 167 ~QuicConnectionDebugVisitor() override {} |
| 168 | 168 |
| 169 // Called when a packet has been sent. | 169 // Called when a packet has been sent. |
| 170 virtual void OnPacketSent(const SerializedPacket& serialized_packet, | 170 virtual void OnPacketSent(const SerializedPacket& serialized_packet, |
| 171 QuicPathId original_path_id, |
| 171 QuicPacketNumber original_packet_number, | 172 QuicPacketNumber original_packet_number, |
| 172 TransmissionType transmission_type, | 173 TransmissionType transmission_type, |
| 173 QuicTime sent_time) {} | 174 QuicTime sent_time) {} |
| 174 | 175 |
| 175 // Called when a packet has been received, but before it is | 176 // Called when a packet has been received, but before it is |
| 176 // validated or parsed. | 177 // validated or parsed. |
| 177 virtual void OnPacketReceived(const IPEndPoint& self_address, | 178 virtual void OnPacketReceived(const IPEndPoint& self_address, |
| 178 const IPEndPoint& peer_address, | 179 const IPEndPoint& peer_address, |
| 179 const QuicEncryptedPacket& packet) {} | 180 const QuicEncryptedPacket& packet) {} |
| 180 | 181 |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1056 | 1057 |
| 1057 // If true, multipath is enabled for this connection. | 1058 // If true, multipath is enabled for this connection. |
| 1058 bool multipath_enabled_; | 1059 bool multipath_enabled_; |
| 1059 | 1060 |
| 1060 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1061 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1061 }; | 1062 }; |
| 1062 | 1063 |
| 1063 } // namespace net | 1064 } // namespace net |
| 1064 | 1065 |
| 1065 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1066 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |