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_PROTOCOL_H_ | 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ |
6 #define NET_QUIC_QUIC_PROTOCOL_H_ | 6 #define NET_QUIC_QUIC_PROTOCOL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <limits> | 9 #include <limits> |
10 #include <map> | 10 #include <map> |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 // A crypto message was received with the wrong encryption level (i.e. it | 521 // A crypto message was received with the wrong encryption level (i.e. it |
522 // should have been encrypted but was not.) | 522 // should have been encrypted but was not.) |
523 QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT = 44, | 523 QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT = 44, |
524 // The server config for a server has expired. | 524 // The server config for a server has expired. |
525 QUIC_CRYPTO_SERVER_CONFIG_EXPIRED = 45, | 525 QUIC_CRYPTO_SERVER_CONFIG_EXPIRED = 45, |
526 // We failed to setup the symmetric keys for a connection. | 526 // We failed to setup the symmetric keys for a connection. |
527 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53, | 527 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53, |
528 // A handshake message arrived, but we are still validating the | 528 // A handshake message arrived, but we are still validating the |
529 // previous handshake message. | 529 // previous handshake message. |
530 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, | 530 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, |
| 531 // A server config update arrived before the handshake is complete. |
| 532 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, |
531 // This connection involved a version negotiation which appears to have been | 533 // This connection involved a version negotiation which appears to have been |
532 // tampered with. | 534 // tampered with. |
533 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, | 535 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, |
534 | 536 |
535 // No error. Used as bound while iterating. | 537 // No error. Used as bound while iterating. |
536 QUIC_LAST_ERROR = 65, | 538 QUIC_LAST_ERROR = 66, |
537 }; | 539 }; |
538 | 540 |
539 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 541 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
540 QuicPacketPublicHeader(); | 542 QuicPacketPublicHeader(); |
541 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 543 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
542 ~QuicPacketPublicHeader(); | 544 ~QuicPacketPublicHeader(); |
543 | 545 |
544 // Universal header. All QuicPacket headers will have a connection_id and | 546 // Universal header. All QuicPacket headers will have a connection_id and |
545 // public flags. | 547 // public flags. |
546 QuicConnectionId connection_id; | 548 QuicConnectionId connection_id; |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 // Stores the sequence numbers of all transmissions of this packet. | 1067 // Stores the sequence numbers of all transmissions of this packet. |
1066 // Can never be null. | 1068 // Can never be null. |
1067 SequenceNumberSet* all_transmissions; | 1069 SequenceNumberSet* all_transmissions; |
1068 // In flight packets have not been abandoned or lost. | 1070 // In flight packets have not been abandoned or lost. |
1069 bool in_flight; | 1071 bool in_flight; |
1070 }; | 1072 }; |
1071 | 1073 |
1072 } // namespace net | 1074 } // namespace net |
1073 | 1075 |
1074 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1076 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |