| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 const QuicFrame GetUpdatedAckFrame() override; | 454 const QuicFrame GetUpdatedAckFrame() override; |
| 455 void PopulateStopWaitingFrame(QuicStopWaitingFrame* stop_waiting) override; | 455 void PopulateStopWaitingFrame(QuicStopWaitingFrame* stop_waiting) override; |
| 456 | 456 |
| 457 // QuicPacketCreator::DelegateInterface | 457 // QuicPacketCreator::DelegateInterface |
| 458 void OnSerializedPacket(SerializedPacket* packet) override; | 458 void OnSerializedPacket(SerializedPacket* packet) override; |
| 459 void OnUnrecoverableError(QuicErrorCode error, | 459 void OnUnrecoverableError(QuicErrorCode error, |
| 460 const std::string& error_details, | 460 const std::string& error_details, |
| 461 ConnectionCloseSource source) override; | 461 ConnectionCloseSource source) override; |
| 462 | 462 |
| 463 // QuicSentPacketManager::NetworkChangeVisitor | 463 // QuicSentPacketManager::NetworkChangeVisitor |
| 464 void OnCongestionWindowChange() override; | 464 void OnCongestionChange() override; |
| 465 void OnRttChange() override; | |
| 466 void OnPathDegrading() override; | 465 void OnPathDegrading() override; |
| 467 | 466 |
| 468 // 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 |
| 469 // 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 |
| 470 // the SHLO. | 469 // the SHLO. |
| 471 void OnHandshakeComplete(); | 470 void OnHandshakeComplete(); |
| 472 | 471 |
| 473 // Accessors | 472 // Accessors |
| 474 void set_visitor(QuicConnectionVisitorInterface* visitor) { | 473 void set_visitor(QuicConnectionVisitorInterface* visitor) { |
| 475 visitor_ = visitor; | 474 visitor_ = visitor; |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 | 1058 |
| 1060 // If true, multipath is enabled for this connection. | 1059 // If true, multipath is enabled for this connection. |
| 1061 bool multipath_enabled_; | 1060 bool multipath_enabled_; |
| 1062 | 1061 |
| 1063 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1062 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1064 }; | 1063 }; |
| 1065 | 1064 |
| 1066 } // namespace net | 1065 } // namespace net |
| 1067 | 1066 |
| 1068 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1067 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |