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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 // Data was sent for a stream which did not exist. | 436 // Data was sent for a stream which did not exist. |
437 QUIC_PACKET_FOR_NONEXISTENT_STREAM = 15, | 437 QUIC_PACKET_FOR_NONEXISTENT_STREAM = 15, |
438 // The peer is going away. May be a client or server. | 438 // The peer is going away. May be a client or server. |
439 QUIC_PEER_GOING_AWAY = 16, | 439 QUIC_PEER_GOING_AWAY = 16, |
440 // A stream ID was invalid. | 440 // A stream ID was invalid. |
441 QUIC_INVALID_STREAM_ID = 17, | 441 QUIC_INVALID_STREAM_ID = 17, |
442 // A priority was invalid. | 442 // A priority was invalid. |
443 QUIC_INVALID_PRIORITY = 49, | 443 QUIC_INVALID_PRIORITY = 49, |
444 // Too many streams already open. | 444 // Too many streams already open. |
445 QUIC_TOO_MANY_OPEN_STREAMS = 18, | 445 QUIC_TOO_MANY_OPEN_STREAMS = 18, |
| 446 // The peer must send a FIN/RST for each stream, and has not been doing so. |
| 447 QUIC_TOO_MANY_UNFINISHED_STREAMS = 66, |
446 // Received public reset for this connection. | 448 // Received public reset for this connection. |
447 QUIC_PUBLIC_RESET = 19, | 449 QUIC_PUBLIC_RESET = 19, |
448 // Invalid protocol version. | 450 // Invalid protocol version. |
449 QUIC_INVALID_VERSION = 20, | 451 QUIC_INVALID_VERSION = 20, |
450 | 452 |
451 // deprecated: QUIC_STREAM_RST_BEFORE_HEADERS_DECOMPRESSED = 21 | 453 // deprecated: QUIC_STREAM_RST_BEFORE_HEADERS_DECOMPRESSED = 21 |
452 | 454 |
453 // The Header ID for a stream was too far from the previous. | 455 // The Header ID for a stream was too far from the previous. |
454 QUIC_INVALID_HEADER_ID = 22, | 456 QUIC_INVALID_HEADER_ID = 22, |
455 // Negotiable parameter received during handshake had invalid value. | 457 // Negotiable parameter received during handshake had invalid value. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 // A handshake message arrived, but we are still validating the | 528 // A handshake message arrived, but we are still validating the |
527 // previous handshake message. | 529 // previous handshake message. |
528 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, | 530 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, |
529 // A server config update arrived before the handshake is complete. | 531 // A server config update arrived before the handshake is complete. |
530 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, | 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 = 66, | 538 QUIC_LAST_ERROR = 67, |
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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 // Stores the sequence numbers of all transmissions of this packet. | 1058 // Stores the sequence numbers of all transmissions of this packet. |
1057 // Can never be null. | 1059 // Can never be null. |
1058 SequenceNumberSet* all_transmissions; | 1060 SequenceNumberSet* all_transmissions; |
1059 // In flight packets have not been abandoned or lost. | 1061 // In flight packets have not been abandoned or lost. |
1060 bool in_flight; | 1062 bool in_flight; |
1061 }; | 1063 }; |
1062 | 1064 |
1063 } // namespace net | 1065 } // namespace net |
1064 | 1066 |
1065 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1067 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |