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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 // remaining unacked packets. | 410 // remaining unacked packets. |
411 void OnRetransmissionTimeout(); | 411 void OnRetransmissionTimeout(); |
412 | 412 |
413 // Retransmits all unacked packets with retransmittable frames if | 413 // Retransmits all unacked packets with retransmittable frames if |
414 // |retransmission_type| is ALL_PACKETS, otherwise retransmits only initially | 414 // |retransmission_type| is ALL_PACKETS, otherwise retransmits only initially |
415 // encrypted packets. Used when the negotiated protocol version is different | 415 // encrypted packets. Used when the negotiated protocol version is different |
416 // from what was initially assumed and when the visitor wants to re-transmit | 416 // from what was initially assumed and when the visitor wants to re-transmit |
417 // initially encrypted packets when the initial encrypter changes. | 417 // initially encrypted packets when the initial encrypter changes. |
418 void RetransmitUnackedPackets(RetransmissionType retransmission_type); | 418 void RetransmitUnackedPackets(RetransmissionType retransmission_type); |
419 | 419 |
420 // Calls |sent_packet_manager_|'s NeuterUnencryptedPackets. Used when the | 420 // Calls |sent_packet_manager_|'s DiscardUnencryptedPackets. Used when the |
421 // connection becomes forward secure and hasn't received acks for all packets. | 421 // connection becomes forward secure and hasn't received acks for all packets. |
422 void NeuterUnencryptedPackets(); | 422 void DiscardUnencryptedPackets(); |
423 | 423 |
424 // Changes the encrypter used for level |level| to |encrypter|. The function | 424 // Changes the encrypter used for level |level| to |encrypter|. The function |
425 // takes ownership of |encrypter|. | 425 // takes ownership of |encrypter|. |
426 void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); | 426 void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); |
427 const QuicEncrypter* encrypter(EncryptionLevel level) const; | 427 const QuicEncrypter* encrypter(EncryptionLevel level) const; |
428 | 428 |
429 // SetDefaultEncryptionLevel sets the encryption level that will be applied | 429 // SetDefaultEncryptionLevel sets the encryption level that will be applied |
430 // to new packets. | 430 // to new packets. |
431 void SetDefaultEncryptionLevel(EncryptionLevel level); | 431 void SetDefaultEncryptionLevel(EncryptionLevel level); |
432 | 432 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 | 747 |
748 // Used for connection level flow control. | 748 // Used for connection level flow control. |
749 scoped_ptr<QuicFlowController> flow_controller_; | 749 scoped_ptr<QuicFlowController> flow_controller_; |
750 | 750 |
751 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 751 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
752 }; | 752 }; |
753 | 753 |
754 } // namespace net | 754 } // namespace net |
755 | 755 |
756 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 756 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |