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 <stdint.h> | 9 #include <stdint.h> |
10 #include <limits> | 10 #include <limits> |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 // The connection has too many outstanding received packets. | 539 // The connection has too many outstanding received packets. |
540 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69, | 540 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69, |
541 // The quic connection job to load server config is cancelled. | 541 // The quic connection job to load server config is cancelled. |
542 QUIC_CONNECTION_CANCELLED = 70, | 542 QUIC_CONNECTION_CANCELLED = 70, |
543 // Disabled QUIC because of high packet loss rate. | 543 // Disabled QUIC because of high packet loss rate. |
544 QUIC_BAD_PACKET_LOSS_RATE = 71, | 544 QUIC_BAD_PACKET_LOSS_RATE = 71, |
545 // Disabled QUIC because of too many PUBLIC_RESETs post handshake. | 545 // Disabled QUIC because of too many PUBLIC_RESETs post handshake. |
546 QUIC_PUBLIC_RESETS_POST_HANDSHAKE = 73, | 546 QUIC_PUBLIC_RESETS_POST_HANDSHAKE = 73, |
547 // Disabled QUIC because of too many timeouts with streams open. | 547 // Disabled QUIC because of too many timeouts with streams open. |
548 QUIC_TIMEOUTS_WITH_OPEN_STREAMS = 74, | 548 QUIC_TIMEOUTS_WITH_OPEN_STREAMS = 74, |
| 549 // Closed because we failed to serialize a packet. |
| 550 QUIC_FAILED_TO_SERIALIZE_PACKET = 75, |
549 | 551 |
550 // Crypto errors. | 552 // Crypto errors. |
551 | 553 |
552 // Hanshake failed. | 554 // Hanshake failed. |
553 QUIC_HANDSHAKE_FAILED = 28, | 555 QUIC_HANDSHAKE_FAILED = 28, |
554 // Handshake message contained out of order tags. | 556 // Handshake message contained out of order tags. |
555 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, | 557 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, |
556 // Handshake message contained too many entries. | 558 // Handshake message contained too many entries. |
557 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, | 559 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, |
558 // Handshake message contained an invalid value length. | 560 // Handshake message contained an invalid value length. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 // A handshake message arrived, but we are still validating the | 600 // A handshake message arrived, but we are still validating the |
599 // previous handshake message. | 601 // previous handshake message. |
600 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, | 602 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, |
601 // A server config update arrived before the handshake is complete. | 603 // A server config update arrived before the handshake is complete. |
602 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, | 604 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, |
603 // This connection involved a version negotiation which appears to have been | 605 // This connection involved a version negotiation which appears to have been |
604 // tampered with. | 606 // tampered with. |
605 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, | 607 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, |
606 | 608 |
607 // No error. Used as bound while iterating. | 609 // No error. Used as bound while iterating. |
608 QUIC_LAST_ERROR = 75, | 610 QUIC_LAST_ERROR = 76, |
609 }; | 611 }; |
610 | 612 |
611 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 613 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
612 QuicPacketPublicHeader(); | 614 QuicPacketPublicHeader(); |
613 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 615 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
614 ~QuicPacketPublicHeader(); | 616 ~QuicPacketPublicHeader(); |
615 | 617 |
616 // Universal header. All QuicPacket headers will have a connection_id and | 618 // Universal header. All QuicPacket headers will have a connection_id and |
617 // public flags. | 619 // public flags. |
618 QuicConnectionId connection_id; | 620 QuicConnectionId connection_id; |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1095 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1094 | 1096 |
1095 const struct iovec* iov; | 1097 const struct iovec* iov; |
1096 const int iov_count; | 1098 const int iov_count; |
1097 const size_t total_length; | 1099 const size_t total_length; |
1098 }; | 1100 }; |
1099 | 1101 |
1100 } // namespace net | 1102 } // namespace net |
1101 | 1103 |
1102 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1104 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |