| 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 DiscardUnencryptedPackets. Used when the | 420 // Calls |sent_packet_manager_|'s NeuterUnencryptedPackets. 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 DiscardUnencryptedPackets(); | 422 void NeuterUnencryptedPackets(); |
| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 | 766 |
| 767 // Used for connection level flow control. | 767 // Used for connection level flow control. |
| 768 scoped_ptr<QuicFlowController> flow_controller_; | 768 scoped_ptr<QuicFlowController> flow_controller_; |
| 769 | 769 |
| 770 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 770 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 771 }; | 771 }; |
| 772 | 772 |
| 773 } // namespace net | 773 } // namespace net |
| 774 | 774 |
| 775 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 775 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |