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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
506 // The peer sent too much data, violating flow control. | 506 // The peer sent too much data, violating flow control. |
507 QUIC_FLOW_CONTROL_SENT_TOO_MUCH_DATA = 63, | 507 QUIC_FLOW_CONTROL_SENT_TOO_MUCH_DATA = 63, |
508 // The peer received an invalid flow control window. | 508 // The peer received an invalid flow control window. |
509 QUIC_FLOW_CONTROL_INVALID_WINDOW = 64, | 509 QUIC_FLOW_CONTROL_INVALID_WINDOW = 64, |
510 // The connection has been IP pooled into an existing connection. | 510 // The connection has been IP pooled into an existing connection. |
511 QUIC_CONNECTION_IP_POOLED = 62, | 511 QUIC_CONNECTION_IP_POOLED = 62, |
512 // The connection has too many outstanding sent packets. | 512 // The connection has too many outstanding sent packets. |
513 QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS = 68, | 513 QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS = 68, |
514 // The connection has too many outstanding received packets. | 514 // The connection has too many outstanding received packets. |
515 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69, | 515 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69, |
516 // The quic connection job to load server config is cancelled. | |
517 QUIC_LOAD_SERVER_CONFIG_JOB_CANCELLED = 70, | |
Ryan Hamilton
2015/02/05 20:30:27
nit: I would just name this QUIC_CONNECTION_CANCEL
ramant (doing other things)
2015/02/06 00:59:41
Done.
| |
516 | 518 |
517 // Crypto errors. | 519 // Crypto errors. |
518 | 520 |
519 // Hanshake failed. | 521 // Hanshake failed. |
520 QUIC_HANDSHAKE_FAILED = 28, | 522 QUIC_HANDSHAKE_FAILED = 28, |
521 // Handshake message contained out of order tags. | 523 // Handshake message contained out of order tags. |
522 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, | 524 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, |
523 // Handshake message contained too many entries. | 525 // Handshake message contained too many entries. |
524 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, | 526 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, |
525 // Handshake message contained an invalid value length. | 527 // Handshake message contained an invalid value length. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
563 // A handshake message arrived, but we are still validating the | 565 // A handshake message arrived, but we are still validating the |
564 // previous handshake message. | 566 // previous handshake message. |
565 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, | 567 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, |
566 // A server config update arrived before the handshake is complete. | 568 // A server config update arrived before the handshake is complete. |
567 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, | 569 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, |
568 // This connection involved a version negotiation which appears to have been | 570 // This connection involved a version negotiation which appears to have been |
569 // tampered with. | 571 // tampered with. |
570 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, | 572 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, |
571 | 573 |
572 // No error. Used as bound while iterating. | 574 // No error. Used as bound while iterating. |
573 QUIC_LAST_ERROR = 70, | 575 QUIC_LAST_ERROR = 71, |
574 }; | 576 }; |
575 | 577 |
576 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 578 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
577 QuicPacketPublicHeader(); | 579 QuicPacketPublicHeader(); |
578 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 580 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
579 ~QuicPacketPublicHeader(); | 581 ~QuicPacketPublicHeader(); |
580 | 582 |
581 // Universal header. All QuicPacket headers will have a connection_id and | 583 // Universal header. All QuicPacket headers will have a connection_id and |
582 // public flags. | 584 // public flags. |
583 QuicConnectionId connection_id; | 585 QuicConnectionId connection_id; |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1063 bool in_flight; | 1065 bool in_flight; |
1064 // True if the packet can never be acked, so it can be removed. | 1066 // True if the packet can never be acked, so it can be removed. |
1065 bool is_unackable; | 1067 bool is_unackable; |
1066 // True if the packet is an FEC packet. | 1068 // True if the packet is an FEC packet. |
1067 bool is_fec_packet; | 1069 bool is_fec_packet; |
1068 }; | 1070 }; |
1069 | 1071 |
1070 } // namespace net | 1072 } // namespace net |
1071 | 1073 |
1072 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1074 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |