| 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 | 455 |
| 456 // QuicPacketCreator::DelegateInterface | 456 // QuicPacketCreator::DelegateInterface |
| 457 void OnSerializedPacket(SerializedPacket* packet) override; | 457 void OnSerializedPacket(SerializedPacket* packet) override; |
| 458 void OnUnrecoverableError(QuicErrorCode error, | 458 void OnUnrecoverableError(QuicErrorCode error, |
| 459 const std::string& error_details, | 459 const std::string& error_details, |
| 460 ConnectionCloseSource source) override; | 460 ConnectionCloseSource source) override; |
| 461 | 461 |
| 462 // QuicSentPacketManager::NetworkChangeVisitor | 462 // QuicSentPacketManager::NetworkChangeVisitor |
| 463 void OnCongestionChange() override; | 463 void OnCongestionChange() override; |
| 464 void OnPathDegrading() override; | 464 void OnPathDegrading() override; |
| 465 void OnPathMtuIncreased(QuicPacketLength packet_size) override; |
| 465 | 466 |
| 466 // Called by the crypto stream when the handshake completes. In the server's | 467 // Called by the crypto stream when the handshake completes. In the server's |
| 467 // case this is when the SHLO has been ACKed. Clients call this on receipt of | 468 // case this is when the SHLO has been ACKed. Clients call this on receipt of |
| 468 // the SHLO. | 469 // the SHLO. |
| 469 void OnHandshakeComplete(); | 470 void OnHandshakeComplete(); |
| 470 | 471 |
| 471 // Accessors | 472 // Accessors |
| 472 void set_visitor(QuicConnectionVisitorInterface* visitor) { | 473 void set_visitor(QuicConnectionVisitorInterface* visitor) { |
| 473 visitor_ = visitor; | 474 visitor_ = visitor; |
| 474 } | 475 } |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 | 1067 |
| 1067 // If true, multipath is enabled for this connection. | 1068 // If true, multipath is enabled for this connection. |
| 1068 bool multipath_enabled_; | 1069 bool multipath_enabled_; |
| 1069 | 1070 |
| 1070 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1071 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1071 }; | 1072 }; |
| 1072 | 1073 |
| 1073 } // namespace net | 1074 } // namespace net |
| 1074 | 1075 |
| 1075 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1076 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |