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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
659 // Connection migration errors. | 659 // Connection migration errors. |
660 // Network changed, but connection had no migratable streams. | 660 // Network changed, but connection had no migratable streams. |
661 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 81, | 661 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 81, |
662 // Connection changed networks too many times. | 662 // Connection changed networks too many times. |
663 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 82, | 663 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 82, |
664 // Connection migration was attempted, but there was no new network to | 664 // Connection migration was attempted, but there was no new network to |
665 // migrate to. | 665 // migrate to. |
666 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83, | 666 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83, |
667 // Network changed, but connection had one or more non-migratable streams. | 667 // Network changed, but connection had one or more non-migratable streams. |
668 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, | 668 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, |
669 // Connection migration was not attempted because it was disabled in the | |
670 // received config. | |
671 QUIC_CONNECTION_MIGRATION_DISABLED = 88, | |
Ryan Hamilton
2016/03/26 15:44:47
I wonder if it wouldn't be simpler to use QUIC_IP_
Jana
2016/03/28 17:03:20
Makes sense. Done.
| |
669 | 672 |
670 // No error. Used as bound while iterating. | 673 // No error. Used as bound while iterating. |
671 QUIC_LAST_ERROR = 88, | 674 QUIC_LAST_ERROR = 89, |
672 }; | 675 }; |
673 | 676 |
674 // Must be updated any time a QuicErrorCode is deprecated. | 677 // Must be updated any time a QuicErrorCode is deprecated. |
675 const int kDeprecatedQuicErrorCount = 4; | 678 const int kDeprecatedQuicErrorCount = 4; |
676 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; | 679 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; |
677 | 680 |
678 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 681 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
679 QuicPacketPublicHeader(); | 682 QuicPacketPublicHeader(); |
680 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 683 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
681 ~QuicPacketPublicHeader(); | 684 ~QuicPacketPublicHeader(); |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1423 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1426 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1424 | 1427 |
1425 const struct iovec* iov; | 1428 const struct iovec* iov; |
1426 const int iov_count; | 1429 const int iov_count; |
1427 const size_t total_length; | 1430 const size_t total_length; |
1428 }; | 1431 }; |
1429 | 1432 |
1430 } // namespace net | 1433 } // namespace net |
1431 | 1434 |
1432 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1435 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |