| 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 bool entropy_flag; | 761 bool entropy_flag; |
| 762 QuicPacketEntropyHash entropy_hash; | 762 QuicPacketEntropyHash entropy_hash; |
| 763 }; | 763 }; |
| 764 | 764 |
| 765 struct NET_EXPORT_PRIVATE QuicPublicResetPacket { | 765 struct NET_EXPORT_PRIVATE QuicPublicResetPacket { |
| 766 QuicPublicResetPacket(); | 766 QuicPublicResetPacket(); |
| 767 explicit QuicPublicResetPacket(const QuicPacketPublicHeader& header); | 767 explicit QuicPublicResetPacket(const QuicPacketPublicHeader& header); |
| 768 | 768 |
| 769 QuicPacketPublicHeader public_header; | 769 QuicPacketPublicHeader public_header; |
| 770 QuicPublicResetNonceProof nonce_proof; | 770 QuicPublicResetNonceProof nonce_proof; |
| 771 // TODO(fayang): remove rejected_packet_number when deprecating |
| 772 // FLAGS_quic_remove_packet_number_from_public_reset. |
| 771 QuicPacketNumber rejected_packet_number; | 773 QuicPacketNumber rejected_packet_number; |
| 772 IPEndPoint client_address; | 774 IPEndPoint client_address; |
| 773 }; | 775 }; |
| 774 | 776 |
| 775 enum QuicVersionNegotiationState { | 777 enum QuicVersionNegotiationState { |
| 776 START_NEGOTIATION = 0, | 778 START_NEGOTIATION = 0, |
| 777 // Server-side this implies we've sent a version negotiation packet and are | 779 // Server-side this implies we've sent a version negotiation packet and are |
| 778 // waiting on the client to select a compatible version. Client-side this | 780 // waiting on the client to select a compatible version. Client-side this |
| 779 // implies we've gotten a version negotiation packet, are retransmitting the | 781 // implies we've gotten a version negotiation packet, are retransmitting the |
| 780 // initial packets with a supported version and are waiting for our first | 782 // initial packets with a supported version and are waiting for our first |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1524 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1526 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1525 | 1527 |
| 1526 const struct iovec* iov; | 1528 const struct iovec* iov; |
| 1527 const int iov_count; | 1529 const int iov_count; |
| 1528 const size_t total_length; | 1530 const size_t total_length; |
| 1529 }; | 1531 }; |
| 1530 | 1532 |
| 1531 } // namespace net | 1533 } // namespace net |
| 1532 | 1534 |
| 1533 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1535 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |