| 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 #ifndef NET_QUIC_QUIC_FRAMER_H_ | 5 #ifndef NET_QUIC_QUIC_FRAMER_H_ |
| 6 #define NET_QUIC_QUIC_FRAMER_H_ | 6 #define NET_QUIC_QUIC_FRAMER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 // successfully decrypts a packet, we should install it as the only | 519 // successfully decrypts a packet, we should install it as the only |
| 520 // decrypter. | 520 // decrypter. |
| 521 bool alternative_decrypter_latch_; | 521 bool alternative_decrypter_latch_; |
| 522 // Encrypters used to encrypt packets via EncryptPacket(). | 522 // Encrypters used to encrypt packets via EncryptPacket(). |
| 523 scoped_ptr<QuicEncrypter> encrypter_[NUM_ENCRYPTION_LEVELS]; | 523 scoped_ptr<QuicEncrypter> encrypter_[NUM_ENCRYPTION_LEVELS]; |
| 524 // Tracks if the framer is being used by the entity that received the | 524 // Tracks if the framer is being used by the entity that received the |
| 525 // connection or the entity that initiated it. | 525 // connection or the entity that initiated it. |
| 526 bool is_server_; | 526 bool is_server_; |
| 527 // If false, skip validation that the public flags are set to legal values. | 527 // If false, skip validation that the public flags are set to legal values. |
| 528 bool validate_flags_; | 528 bool validate_flags_; |
| 529 // The time this frames was created. Time written to the wire will be | 529 // The time this framer was created. Time written to the wire will be |
| 530 // written as a delta from this value. | 530 // written as a delta from this value. |
| 531 QuicTime creation_time_; | 531 QuicTime creation_time_; |
| 532 | 532 |
| 533 DISALLOW_COPY_AND_ASSIGN(QuicFramer); | 533 DISALLOW_COPY_AND_ASSIGN(QuicFramer); |
| 534 }; | 534 }; |
| 535 | 535 |
| 536 } // namespace net | 536 } // namespace net |
| 537 | 537 |
| 538 #endif // NET_QUIC_QUIC_FRAMER_H_ | 538 #endif // NET_QUIC_QUIC_FRAMER_H_ |
| OLD | NEW |