Chromium Code Reviews| 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 #include <limits> | 10 #include <limits> |
| (...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, | |
|
Ryan Hamilton
2015/12/18 21:51:23
Do we expect this to go away in favor of the MIGRA
Jana
2015/12/21 23:10:19
Eventually, on Android devices. But we don't yet h
| |
| 639 | |
| 640 // Connection migration errors. | |
| 641 // Network changed, but connection had no migratable streams. | |
| 642 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 78, | |
|
Ryan Hamilton
2015/12/18 21:51:23
How different is this from IP_ADDRESS_CHANGED?
Jana
2015/12/21 23:10:19
This is when migration could have happened, but di
| |
| 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 631 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 |