| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 bool OnPaddingFrame(const QuicPaddingFrame& frame) override; | 440 bool OnPaddingFrame(const QuicPaddingFrame& frame) override; |
| 441 bool OnPingFrame(const QuicPingFrame& frame) override; | 441 bool OnPingFrame(const QuicPingFrame& frame) override; |
| 442 bool OnRstStreamFrame(const QuicRstStreamFrame& frame) override; | 442 bool OnRstStreamFrame(const QuicRstStreamFrame& frame) override; |
| 443 bool OnConnectionCloseFrame(const QuicConnectionCloseFrame& frame) override; | 443 bool OnConnectionCloseFrame(const QuicConnectionCloseFrame& frame) override; |
| 444 bool OnGoAwayFrame(const QuicGoAwayFrame& frame) override; | 444 bool OnGoAwayFrame(const QuicGoAwayFrame& frame) override; |
| 445 bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override; | 445 bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override; |
| 446 bool OnBlockedFrame(const QuicBlockedFrame& frame) override; | 446 bool OnBlockedFrame(const QuicBlockedFrame& frame) override; |
| 447 bool OnPathCloseFrame(const QuicPathCloseFrame& frame) override; | 447 bool OnPathCloseFrame(const QuicPathCloseFrame& frame) override; |
| 448 void OnPacketComplete() override; | 448 void OnPacketComplete() override; |
| 449 | 449 |
| 450 // QuicConnectionCloseDelegateInterface |
| 451 void OnUnrecoverableError(QuicErrorCode error, |
| 452 const std::string& error_details, |
| 453 ConnectionCloseSource source) override; |
| 454 |
| 450 // QuicPacketGenerator::DelegateInterface | 455 // QuicPacketGenerator::DelegateInterface |
| 451 bool ShouldGeneratePacket(HasRetransmittableData retransmittable, | 456 bool ShouldGeneratePacket(HasRetransmittableData retransmittable, |
| 452 IsHandshake handshake) override; | 457 IsHandshake handshake) override; |
| 453 const QuicFrame GetUpdatedAckFrame() override; | 458 const QuicFrame GetUpdatedAckFrame() override; |
| 454 void PopulateStopWaitingFrame(QuicStopWaitingFrame* stop_waiting) override; | 459 void PopulateStopWaitingFrame(QuicStopWaitingFrame* stop_waiting) override; |
| 455 | 460 |
| 456 // QuicPacketCreator::DelegateInterface | 461 // QuicPacketCreator::DelegateInterface |
| 457 void OnSerializedPacket(SerializedPacket* packet) override; | 462 void OnSerializedPacket(SerializedPacket* packet) override; |
| 458 void OnUnrecoverableError(QuicErrorCode error, | |
| 459 const std::string& error_details, | |
| 460 ConnectionCloseSource source) override; | |
| 461 | 463 |
| 462 // QuicSentPacketManager::NetworkChangeVisitor | 464 // QuicSentPacketManager::NetworkChangeVisitor |
| 463 void OnCongestionChange() override; | 465 void OnCongestionChange() override; |
| 464 void OnPathDegrading() override; | 466 void OnPathDegrading() override; |
| 465 void OnPathMtuIncreased(QuicPacketLength packet_size) override; | 467 void OnPathMtuIncreased(QuicPacketLength packet_size) override; |
| 466 | 468 |
| 467 // Called by the crypto stream when the handshake completes. In the server's | 469 // Called by the crypto stream when the handshake completes. In the server's |
| 468 // case this is when the SHLO has been ACKed. Clients call this on receipt of | 470 // case this is when the SHLO has been ACKed. Clients call this on receipt of |
| 469 // the SHLO. | 471 // the SHLO. |
| 470 void OnHandshakeComplete(); | 472 void OnHandshakeComplete(); |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 | 1069 |
| 1068 // If true, multipath is enabled for this connection. | 1070 // If true, multipath is enabled for this connection. |
| 1069 bool multipath_enabled_; | 1071 bool multipath_enabled_; |
| 1070 | 1072 |
| 1071 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1073 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1072 }; | 1074 }; |
| 1073 | 1075 |
| 1074 } // namespace net | 1076 } // namespace net |
| 1075 | 1077 |
| 1076 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1078 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |