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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 // QuicPacketGenerator::DelegateInterface | 368 // QuicPacketGenerator::DelegateInterface |
369 bool ShouldGeneratePacket(TransmissionType transmission_type, | 369 bool ShouldGeneratePacket(TransmissionType transmission_type, |
370 HasRetransmittableData retransmittable, | 370 HasRetransmittableData retransmittable, |
371 IsHandshake handshake) override; | 371 IsHandshake handshake) override; |
372 QuicAckFrame* CreateAckFrame() override; | 372 QuicAckFrame* CreateAckFrame() override; |
373 QuicCongestionFeedbackFrame* CreateFeedbackFrame() override; | 373 QuicCongestionFeedbackFrame* CreateFeedbackFrame() override; |
374 QuicStopWaitingFrame* CreateStopWaitingFrame() override; | 374 QuicStopWaitingFrame* CreateStopWaitingFrame() override; |
375 void OnSerializedPacket(const SerializedPacket& packet) override; | 375 void OnSerializedPacket(const SerializedPacket& packet) override; |
376 | 376 |
377 // QuicSentPacketManager::NetworkChangeVisitor | 377 // QuicSentPacketManager::NetworkChangeVisitor |
378 void OnCongestionWindowChange(QuicByteCount congestion_window) override; | 378 void OnCongestionWindowChange() override; |
379 | 379 |
380 // Called by the crypto stream when the handshake completes. In the server's | 380 // Called by the crypto stream when the handshake completes. In the server's |
381 // case this is when the SHLO has been ACKed. Clients call this on receipt of | 381 // case this is when the SHLO has been ACKed. Clients call this on receipt of |
382 // the SHLO. | 382 // the SHLO. |
383 void OnHandshakeComplete(); | 383 void OnHandshakeComplete(); |
384 | 384 |
385 // Accessors | 385 // Accessors |
386 void set_visitor(QuicConnectionVisitorInterface* visitor) { | 386 void set_visitor(QuicConnectionVisitorInterface* visitor) { |
387 visitor_ = visitor; | 387 visitor_ = visitor; |
388 } | 388 } |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 // If non-empty this contains the set of versions received in a | 838 // If non-empty this contains the set of versions received in a |
839 // version negotiation packet. | 839 // version negotiation packet. |
840 QuicVersionVector server_supported_versions_; | 840 QuicVersionVector server_supported_versions_; |
841 | 841 |
842 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 842 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
843 }; | 843 }; |
844 | 844 |
845 } // namespace net | 845 } // namespace net |
846 | 846 |
847 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 847 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |