| 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 <limits> | 9 #include <limits> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 QuicAckFrame* ack_frame, | 748 QuicAckFrame* ack_frame, |
| 749 QuicPacketSequenceNumber lower, | 749 QuicPacketSequenceNumber lower, |
| 750 QuicPacketSequenceNumber higher); | 750 QuicPacketSequenceNumber higher); |
| 751 | 751 |
| 752 // Defines for all types of congestion control algorithms that can be used in | 752 // Defines for all types of congestion control algorithms that can be used in |
| 753 // QUIC. Note that this is separate from the congestion feedback type - | 753 // QUIC. Note that this is separate from the congestion feedback type - |
| 754 // some congestion control algorithms may use the same feedback type | 754 // some congestion control algorithms may use the same feedback type |
| 755 // (Reno and Cubic are the classic example for that). | 755 // (Reno and Cubic are the classic example for that). |
| 756 enum CongestionControlType { | 756 enum CongestionControlType { |
| 757 kCubic, | 757 kCubic, |
| 758 kCubicBytes, |
| 758 kReno, | 759 kReno, |
| 760 kRenoBytes, |
| 759 kBBR, | 761 kBBR, |
| 760 }; | 762 }; |
| 761 | 763 |
| 762 enum LossDetectionType { | 764 enum LossDetectionType { |
| 763 kNack, // Used to mimic TCP's loss detection. | 765 kNack, // Used to mimic TCP's loss detection. |
| 764 kTime, // Time based loss detection. | 766 kTime, // Time based loss detection. |
| 765 }; | 767 }; |
| 766 | 768 |
| 767 struct NET_EXPORT_PRIVATE QuicRstStreamFrame { | 769 struct NET_EXPORT_PRIVATE QuicRstStreamFrame { |
| 768 QuicRstStreamFrame(); | 770 QuicRstStreamFrame(); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 bool in_flight; | 1050 bool in_flight; |
| 1049 // True if the packet can never be acked, so it can be removed. | 1051 // True if the packet can never be acked, so it can be removed. |
| 1050 bool is_unackable; | 1052 bool is_unackable; |
| 1051 // True if the packet is an FEC packet. | 1053 // True if the packet is an FEC packet. |
| 1052 bool is_fec_packet; | 1054 bool is_fec_packet; |
| 1053 }; | 1055 }; |
| 1054 | 1056 |
| 1055 } // namespace net | 1057 } // namespace net |
| 1056 | 1058 |
| 1057 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1059 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |