| 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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53, | 627 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53, |
| 628 // A handshake message arrived, but we are still validating the | 628 // A handshake message arrived, but we are still validating the |
| 629 // previous handshake message. | 629 // previous handshake message. |
| 630 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, | 630 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, |
| 631 // A server config update arrived before the handshake is complete. | 631 // A server config update arrived before the handshake is complete. |
| 632 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, | 632 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, |
| 633 // This connection involved a version negotiation which appears to have been | 633 // This connection involved a version negotiation which appears to have been |
| 634 // tampered with. | 634 // tampered with. |
| 635 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, | 635 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, |
| 636 | 636 |
| 637 // IP address changed causing connection close. |
| 638 QUIC_IP_ADDRESS_CHANGED = 77, |
| 639 |
| 640 // Connection migration errors. |
| 641 // Network changed, but connection had no migratable streams. |
| 642 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 78, |
| 643 // Connection changed networks too many times. |
| 644 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 79, |
| 645 // Connection migration was attempted, but there was no new network to |
| 646 // migrate to. |
| 647 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 80, |
| 648 |
| 637 // No error. Used as bound while iterating. | 649 // No error. Used as bound while iterating. |
| 638 QUIC_LAST_ERROR = 77, | 650 QUIC_LAST_ERROR = 81, |
| 639 }; | 651 }; |
| 640 | 652 |
| 641 // Must be updated any time a QuicErrorCode is deprecated. | 653 // Must be updated any time a QuicErrorCode is deprecated. |
| 642 const int kDeprecatedQuicErrorCount = 4; | 654 const int kDeprecatedQuicErrorCount = 4; |
| 643 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; | 655 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; |
| 644 | 656 |
| 645 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 657 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
| 646 QuicPacketPublicHeader(); | 658 QuicPacketPublicHeader(); |
| 647 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 659 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
| 648 ~QuicPacketPublicHeader(); | 660 ~QuicPacketPublicHeader(); |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1310 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1322 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1311 | 1323 |
| 1312 const struct iovec* iov; | 1324 const struct iovec* iov; |
| 1313 const int iov_count; | 1325 const int iov_count; |
| 1314 const size_t total_length; | 1326 const size_t total_length; |
| 1315 }; | 1327 }; |
| 1316 | 1328 |
| 1317 } // namespace net | 1329 } // namespace net |
| 1318 | 1330 |
| 1319 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1331 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |