Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: net/quic/quic_connection.h

Issue 1037403004: Land Recent QUIC Changes until 03/27/2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698