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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 bool ShouldGeneratePacket(TransmissionType transmission_type, | 376 bool ShouldGeneratePacket(TransmissionType transmission_type, |
377 HasRetransmittableData retransmittable, | 377 HasRetransmittableData retransmittable, |
378 IsHandshake handshake) override; | 378 IsHandshake handshake) override; |
379 QuicAckFrame* CreateAckFrame() override; | 379 QuicAckFrame* CreateAckFrame() override; |
380 QuicCongestionFeedbackFrame* CreateFeedbackFrame() override; | 380 QuicCongestionFeedbackFrame* CreateFeedbackFrame() override; |
381 QuicStopWaitingFrame* CreateStopWaitingFrame() override; | 381 QuicStopWaitingFrame* CreateStopWaitingFrame() override; |
382 void OnSerializedPacket(const SerializedPacket& packet) override; | 382 void OnSerializedPacket(const SerializedPacket& packet) override; |
383 | 383 |
384 // QuicSentPacketManager::NetworkChangeVisitor | 384 // QuicSentPacketManager::NetworkChangeVisitor |
385 void OnCongestionWindowChange() override; | 385 void OnCongestionWindowChange() override; |
| 386 void OnRttChange() override; |
386 | 387 |
387 // Called by the crypto stream when the handshake completes. In the server's | 388 // Called by the crypto stream when the handshake completes. In the server's |
388 // case this is when the SHLO has been ACKed. Clients call this on receipt of | 389 // case this is when the SHLO has been ACKed. Clients call this on receipt of |
389 // the SHLO. | 390 // the SHLO. |
390 void OnHandshakeComplete(); | 391 void OnHandshakeComplete(); |
391 | 392 |
392 // Accessors | 393 // Accessors |
393 void set_visitor(QuicConnectionVisitorInterface* visitor) { | 394 void set_visitor(QuicConnectionVisitorInterface* visitor) { |
394 visitor_ = visitor; | 395 visitor_ = visitor; |
395 } | 396 } |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 | 842 |
842 // True if this is a secure QUIC connection. | 843 // True if this is a secure QUIC connection. |
843 bool is_secure_; | 844 bool is_secure_; |
844 | 845 |
845 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 846 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
846 }; | 847 }; |
847 | 848 |
848 } // namespace net | 849 } // namespace net |
849 | 850 |
850 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 851 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |