| 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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 // changes. | 470 // changes. |
| 471 void RetransmitUnackedPackets(TransmissionType retransmission_type); | 471 void RetransmitUnackedPackets(TransmissionType retransmission_type); |
| 472 | 472 |
| 473 // Calls |sent_packet_manager_|'s NeuterUnencryptedPackets. Used when the | 473 // Calls |sent_packet_manager_|'s NeuterUnencryptedPackets. Used when the |
| 474 // connection becomes forward secure and hasn't received acks for all packets. | 474 // connection becomes forward secure and hasn't received acks for all packets. |
| 475 void NeuterUnencryptedPackets(); | 475 void NeuterUnencryptedPackets(); |
| 476 | 476 |
| 477 // Changes the encrypter used for level |level| to |encrypter|. The function | 477 // Changes the encrypter used for level |level| to |encrypter|. The function |
| 478 // takes ownership of |encrypter|. | 478 // takes ownership of |encrypter|. |
| 479 void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); | 479 void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); |
| 480 const QuicEncrypter* encrypter(EncryptionLevel level) const; | |
| 481 | 480 |
| 482 // SetDefaultEncryptionLevel sets the encryption level that will be applied | 481 // SetDefaultEncryptionLevel sets the encryption level that will be applied |
| 483 // to new packets. | 482 // to new packets. |
| 484 void SetDefaultEncryptionLevel(EncryptionLevel level); | 483 void SetDefaultEncryptionLevel(EncryptionLevel level); |
| 485 | 484 |
| 486 // SetDecrypter sets the primary decrypter, replacing any that already exists, | 485 // SetDecrypter sets the primary decrypter, replacing any that already exists, |
| 487 // and takes ownership. If an alternative decrypter is in place then the | 486 // and takes ownership. If an alternative decrypter is in place then the |
| 488 // function DCHECKs. This is intended for cases where one knows that future | 487 // function DCHECKs. This is intended for cases where one knows that future |
| 489 // packets will be using the new decrypter and the previous decrypter is now | 488 // packets will be using the new decrypter and the previous decrypter is now |
| 490 // obsolete. |level| indicates the encryption level of the new decrypter. | 489 // obsolete. |level| indicates the encryption level of the new decrypter. |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 | 852 |
| 854 // True if this is a secure QUIC connection. | 853 // True if this is a secure QUIC connection. |
| 855 bool is_secure_; | 854 bool is_secure_; |
| 856 | 855 |
| 857 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 856 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 858 }; | 857 }; |
| 859 | 858 |
| 860 } // namespace net | 859 } // namespace net |
| 861 | 860 |
| 862 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 861 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |