| 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 // Connection migration was attempted, but there was no new network to | 689 // Connection migration was attempted, but there was no new network to |
| 690 // migrate to. | 690 // migrate to. |
| 691 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83, | 691 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83, |
| 692 // Network changed, but connection had one or more non-migratable streams. | 692 // Network changed, but connection had one or more non-migratable streams. |
| 693 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, | 693 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, |
| 694 | 694 |
| 695 // No error. Used as bound while iterating. | 695 // No error. Used as bound while iterating. |
| 696 QUIC_LAST_ERROR = 91, | 696 QUIC_LAST_ERROR = 91, |
| 697 }; | 697 }; |
| 698 | 698 |
| 699 // Must be updated any time a QuicErrorCode is deprecated. | |
| 700 const int kDeprecatedQuicErrorCount = 4; | |
| 701 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; | |
| 702 | |
| 703 typedef char DiversificationNonce[32]; | 699 typedef char DiversificationNonce[32]; |
| 704 | 700 |
| 705 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 701 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
| 706 QuicPacketPublicHeader(); | 702 QuicPacketPublicHeader(); |
| 707 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 703 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
| 708 ~QuicPacketPublicHeader(); | 704 ~QuicPacketPublicHeader(); |
| 709 | 705 |
| 710 // Universal header. All QuicPacket headers will have a connection_id and | 706 // Universal header. All QuicPacket headers will have a connection_id and |
| 711 // public flags. | 707 // public flags. |
| 712 QuicConnectionId connection_id; | 708 QuicConnectionId connection_id; |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1481 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1486 | 1482 |
| 1487 const struct iovec* iov; | 1483 const struct iovec* iov; |
| 1488 const int iov_count; | 1484 const int iov_count; |
| 1489 const size_t total_length; | 1485 const size_t total_length; |
| 1490 }; | 1486 }; |
| 1491 | 1487 |
| 1492 } // namespace net | 1488 } // namespace net |
| 1493 | 1489 |
| 1494 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1490 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |