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 | 10 |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53, | 624 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53, |
625 // A handshake message arrived, but we are still validating the | 625 // A handshake message arrived, but we are still validating the |
626 // previous handshake message. | 626 // previous handshake message. |
627 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, | 627 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, |
628 // A server config update arrived before the handshake is complete. | 628 // A server config update arrived before the handshake is complete. |
629 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, | 629 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, |
630 // This connection involved a version negotiation which appears to have been | 630 // This connection involved a version negotiation which appears to have been |
631 // tampered with. | 631 // tampered with. |
632 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, | 632 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, |
633 | 633 |
| 634 // IP address changed causing connection close. |
| 635 QUIC_IP_ADDRESS_CHANGED = 77, |
| 636 |
| 637 // Connection migration errors. |
| 638 // Network changed, but connection had no migratable streams. |
| 639 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 78, |
| 640 // Connection changed networks too many times. |
| 641 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 79, |
| 642 // Connection migration was attempted, but there was no new network to |
| 643 // migrate to. |
| 644 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 80, |
| 645 |
634 // No error. Used as bound while iterating. | 646 // No error. Used as bound while iterating. |
635 QUIC_LAST_ERROR = 77, | 647 QUIC_LAST_ERROR = 81, |
636 }; | 648 }; |
637 | 649 |
638 // Must be updated any time a QuicErrorCode is deprecated. | 650 // Must be updated any time a QuicErrorCode is deprecated. |
639 const int kDeprecatedQuicErrorCount = 4; | 651 const int kDeprecatedQuicErrorCount = 4; |
640 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; | 652 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; |
641 | 653 |
642 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 654 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
643 QuicPacketPublicHeader(); | 655 QuicPacketPublicHeader(); |
644 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 656 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
645 ~QuicPacketPublicHeader(); | 657 ~QuicPacketPublicHeader(); |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1292 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1281 | 1293 |
1282 const struct iovec* iov; | 1294 const struct iovec* iov; |
1283 const int iov_count; | 1295 const int iov_count; |
1284 const size_t total_length; | 1296 const size_t total_length; |
1285 }; | 1297 }; |
1286 | 1298 |
1287 } // namespace net | 1299 } // namespace net |
1288 | 1300 |
1289 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1301 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |