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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 // We received invalid data on the headers stream. | 492 // We received invalid data on the headers stream. |
493 QUIC_INVALID_HEADERS_STREAM_DATA = 56, | 493 QUIC_INVALID_HEADERS_STREAM_DATA = 56, |
494 // The peer received too much data, violating flow control. | 494 // The peer received too much data, violating flow control. |
495 QUIC_FLOW_CONTROL_RECEIVED_TOO_MUCH_DATA = 59, | 495 QUIC_FLOW_CONTROL_RECEIVED_TOO_MUCH_DATA = 59, |
496 // The peer sent too much data, violating flow control. | 496 // The peer sent too much data, violating flow control. |
497 QUIC_FLOW_CONTROL_SENT_TOO_MUCH_DATA = 63, | 497 QUIC_FLOW_CONTROL_SENT_TOO_MUCH_DATA = 63, |
498 // The peer received an invalid flow control window. | 498 // The peer received an invalid flow control window. |
499 QUIC_FLOW_CONTROL_INVALID_WINDOW = 64, | 499 QUIC_FLOW_CONTROL_INVALID_WINDOW = 64, |
500 // The connection has been IP pooled into an existing connection. | 500 // The connection has been IP pooled into an existing connection. |
501 QUIC_CONNECTION_IP_POOLED = 62, | 501 QUIC_CONNECTION_IP_POOLED = 62, |
| 502 // The connection has too many outstanding sent packets. |
| 503 QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS = 68, |
| 504 // The connection has too many outstanding received packets. |
| 505 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69, |
502 | 506 |
503 // Crypto errors. | 507 // Crypto errors. |
504 | 508 |
505 // Hanshake failed. | 509 // Hanshake failed. |
506 QUIC_HANDSHAKE_FAILED = 28, | 510 QUIC_HANDSHAKE_FAILED = 28, |
507 // Handshake message contained out of order tags. | 511 // Handshake message contained out of order tags. |
508 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, | 512 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, |
509 // Handshake message contained too many entries. | 513 // Handshake message contained too many entries. |
510 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, | 514 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, |
511 // Handshake message contained an invalid value length. | 515 // Handshake message contained an invalid value length. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 // A handshake message arrived, but we are still validating the | 553 // A handshake message arrived, but we are still validating the |
550 // previous handshake message. | 554 // previous handshake message. |
551 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, | 555 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, |
552 // A server config update arrived before the handshake is complete. | 556 // A server config update arrived before the handshake is complete. |
553 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, | 557 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, |
554 // This connection involved a version negotiation which appears to have been | 558 // This connection involved a version negotiation which appears to have been |
555 // tampered with. | 559 // tampered with. |
556 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, | 560 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, |
557 | 561 |
558 // No error. Used as bound while iterating. | 562 // No error. Used as bound while iterating. |
559 QUIC_LAST_ERROR = 68, | 563 QUIC_LAST_ERROR = 70, |
560 }; | 564 }; |
561 | 565 |
562 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 566 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
563 QuicPacketPublicHeader(); | 567 QuicPacketPublicHeader(); |
564 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 568 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
565 ~QuicPacketPublicHeader(); | 569 ~QuicPacketPublicHeader(); |
566 | 570 |
567 // Universal header. All QuicPacket headers will have a connection_id and | 571 // Universal header. All QuicPacket headers will have a connection_id and |
568 // public flags. | 572 // public flags. |
569 QuicConnectionId connection_id; | 573 QuicConnectionId connection_id; |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 SequenceNumberList* all_transmissions; | 1084 SequenceNumberList* all_transmissions; |
1081 // In flight packets have not been abandoned or lost. | 1085 // In flight packets have not been abandoned or lost. |
1082 bool in_flight; | 1086 bool in_flight; |
1083 // True if the packet can never be acked, so it can be removed. | 1087 // True if the packet can never be acked, so it can be removed. |
1084 bool is_unackable; | 1088 bool is_unackable; |
1085 }; | 1089 }; |
1086 | 1090 |
1087 } // namespace net | 1091 } // namespace net |
1088 | 1092 |
1089 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1093 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |