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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 void RetransmitUnackedPackets(TransmissionType retransmission_type); | 541 void RetransmitUnackedPackets(TransmissionType retransmission_type); |
542 | 542 |
543 // Calls |sent_packet_manager_|'s NeuterUnencryptedPackets. Used when the | 543 // Calls |sent_packet_manager_|'s NeuterUnencryptedPackets. Used when the |
544 // connection becomes forward secure and hasn't received acks for all packets. | 544 // connection becomes forward secure and hasn't received acks for all packets. |
545 void NeuterUnencryptedPackets(); | 545 void NeuterUnencryptedPackets(); |
546 | 546 |
547 // Changes the encrypter used for level |level| to |encrypter|. The function | 547 // Changes the encrypter used for level |level| to |encrypter|. The function |
548 // takes ownership of |encrypter|. | 548 // takes ownership of |encrypter|. |
549 void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); | 549 void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); |
550 | 550 |
| 551 // SetNonceForPublicHeader sets the nonce that will be transmitted in the |
| 552 // public header of each packet encrypted at the initial encryption level |
| 553 // decrypted. This should only be called on the server side. |
| 554 void SetDiversificationNonce(const DiversificationNonce nonce); |
| 555 |
551 // SetDefaultEncryptionLevel sets the encryption level that will be applied | 556 // SetDefaultEncryptionLevel sets the encryption level that will be applied |
552 // to new packets. | 557 // to new packets. |
553 void SetDefaultEncryptionLevel(EncryptionLevel level); | 558 void SetDefaultEncryptionLevel(EncryptionLevel level); |
554 | 559 |
555 // SetDecrypter sets the primary decrypter, replacing any that already exists, | 560 // SetDecrypter sets the primary decrypter, replacing any that already exists, |
556 // and takes ownership. If an alternative decrypter is in place then the | 561 // and takes ownership. If an alternative decrypter is in place then the |
557 // function DCHECKs. This is intended for cases where one knows that future | 562 // function DCHECKs. This is intended for cases where one knows that future |
558 // packets will be using the new decrypter and the previous decrypter is now | 563 // packets will be using the new decrypter and the previous decrypter is now |
559 // obsolete. |level| indicates the encryption level of the new decrypter. | 564 // obsolete. |level| indicates the encryption level of the new decrypter. |
560 void SetDecrypter(EncryptionLevel level, QuicDecrypter* decrypter); | 565 void SetDecrypter(EncryptionLevel level, QuicDecrypter* decrypter); |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 | 1046 |
1042 // If true, multipath is enabled for this connection. | 1047 // If true, multipath is enabled for this connection. |
1043 bool multipath_enabled_; | 1048 bool multipath_enabled_; |
1044 | 1049 |
1045 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1050 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
1046 }; | 1051 }; |
1047 | 1052 |
1048 } // namespace net | 1053 } // namespace net |
1049 | 1054 |
1050 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1055 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |