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 <list> | 10 #include <list> |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 // The peer received an invalid flow control window. | 513 // The peer received an invalid flow control window. |
514 QUIC_FLOW_CONTROL_INVALID_WINDOW = 64, | 514 QUIC_FLOW_CONTROL_INVALID_WINDOW = 64, |
515 // The connection has been IP pooled into an existing connection. | 515 // The connection has been IP pooled into an existing connection. |
516 QUIC_CONNECTION_IP_POOLED = 62, | 516 QUIC_CONNECTION_IP_POOLED = 62, |
517 // The connection has too many outstanding sent packets. | 517 // The connection has too many outstanding sent packets. |
518 QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS = 68, | 518 QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS = 68, |
519 // The connection has too many outstanding received packets. | 519 // The connection has too many outstanding received packets. |
520 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69, | 520 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69, |
521 // The quic connection job to load server config is cancelled. | 521 // The quic connection job to load server config is cancelled. |
522 QUIC_CONNECTION_CANCELLED = 70, | 522 QUIC_CONNECTION_CANCELLED = 70, |
| 523 // Disabled QUIC because of high packet loss rate. |
| 524 QUIC_BAD_PACKET_LOSS_RATE = 71, |
523 | 525 |
524 // Crypto errors. | 526 // Crypto errors. |
525 | 527 |
526 // Hanshake failed. | 528 // Hanshake failed. |
527 QUIC_HANDSHAKE_FAILED = 28, | 529 QUIC_HANDSHAKE_FAILED = 28, |
528 // Handshake message contained out of order tags. | 530 // Handshake message contained out of order tags. |
529 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, | 531 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, |
530 // Handshake message contained too many entries. | 532 // Handshake message contained too many entries. |
531 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, | 533 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, |
532 // Handshake message contained an invalid value length. | 534 // Handshake message contained an invalid value length. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 // A handshake message arrived, but we are still validating the | 572 // A handshake message arrived, but we are still validating the |
571 // previous handshake message. | 573 // previous handshake message. |
572 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, | 574 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, |
573 // A server config update arrived before the handshake is complete. | 575 // A server config update arrived before the handshake is complete. |
574 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, | 576 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, |
575 // This connection involved a version negotiation which appears to have been | 577 // This connection involved a version negotiation which appears to have been |
576 // tampered with. | 578 // tampered with. |
577 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, | 579 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, |
578 | 580 |
579 // No error. Used as bound while iterating. | 581 // No error. Used as bound while iterating. |
580 QUIC_LAST_ERROR = 71, | 582 QUIC_LAST_ERROR = 72, |
581 }; | 583 }; |
582 | 584 |
583 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 585 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
584 QuicPacketPublicHeader(); | 586 QuicPacketPublicHeader(); |
585 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 587 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
586 ~QuicPacketPublicHeader(); | 588 ~QuicPacketPublicHeader(); |
587 | 589 |
588 // Universal header. All QuicPacket headers will have a connection_id and | 590 // Universal header. All QuicPacket headers will have a connection_id and |
589 // public flags. | 591 // public flags. |
590 QuicConnectionId connection_id; | 592 QuicConnectionId connection_id; |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1047 bool in_flight; | 1049 bool in_flight; |
1048 // True if the packet can never be acked, so it can be removed. | 1050 // True if the packet can never be acked, so it can be removed. |
1049 bool is_unackable; | 1051 bool is_unackable; |
1050 // True if the packet is an FEC packet. | 1052 // True if the packet is an FEC packet. |
1051 bool is_fec_packet; | 1053 bool is_fec_packet; |
1052 }; | 1054 }; |
1053 | 1055 |
1054 } // namespace net | 1056 } // namespace net |
1055 | 1057 |
1056 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1058 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |