| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // Interface which gets callbacks from the QuicConnection at interesting | 159 // Interface which gets callbacks from the QuicConnection at interesting |
| 160 // points. Implementations must not mutate the state of the connection | 160 // points. Implementations must not mutate the state of the connection |
| 161 // as a result of these callbacks. | 161 // as a result of these callbacks. |
| 162 class QUIC_EXPORT_PRIVATE QuicConnectionDebugVisitor | 162 class QUIC_EXPORT_PRIVATE QuicConnectionDebugVisitor |
| 163 : public QuicSentPacketManager::DebugDelegate { | 163 : public QuicSentPacketManager::DebugDelegate { |
| 164 public: | 164 public: |
| 165 ~QuicConnectionDebugVisitor() override {} | 165 ~QuicConnectionDebugVisitor() override {} |
| 166 | 166 |
| 167 // Called when a packet has been sent. | 167 // Called when a packet has been sent. |
| 168 virtual void OnPacketSent(const SerializedPacket& serialized_packet, | 168 virtual void OnPacketSent(const SerializedPacket& serialized_packet, |
| 169 QuicPathId original_path_id, | |
| 170 QuicPacketNumber original_packet_number, | 169 QuicPacketNumber original_packet_number, |
| 171 TransmissionType transmission_type, | 170 TransmissionType transmission_type, |
| 172 QuicTime sent_time) {} | 171 QuicTime sent_time) {} |
| 173 | 172 |
| 174 // Called when an PING frame has been sent. | 173 // Called when an PING frame has been sent. |
| 175 virtual void OnPingSent() {} | 174 virtual void OnPingSent() {} |
| 176 | 175 |
| 177 // Called when a packet has been received, but before it is | 176 // Called when a packet has been received, but before it is |
| 178 // validated or parsed. | 177 // validated or parsed. |
| 179 virtual void OnPacketReceived(const QuicSocketAddress& self_address, | 178 virtual void OnPacketReceived(const QuicSocketAddress& self_address, |
| (...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 // Indicates whether a write error is encountered currently. This is used to | 1104 // Indicates whether a write error is encountered currently. This is used to |
| 1106 // avoid infinite write errors. | 1105 // avoid infinite write errors. |
| 1107 bool write_error_occured_; | 1106 bool write_error_occured_; |
| 1108 | 1107 |
| 1109 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1108 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1110 }; | 1109 }; |
| 1111 | 1110 |
| 1112 } // namespace net | 1111 } // namespace net |
| 1113 | 1112 |
| 1114 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ | 1113 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ |
| OLD | NEW |