Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: net/quic/quic_protocol.h

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
10
9 #include <limits> 11 #include <limits>
10 #include <list> 12 #include <list>
11 #include <map> 13 #include <map>
12 #include <ostream> 14 #include <ostream>
13 #include <set> 15 #include <set>
14 #include <string> 16 #include <string>
15 #include <utility> 17 #include <utility>
16 #include <vector> 18 #include <vector>
17 19
18 #include "base/basictypes.h" 20 #include "base/basictypes.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // 16 bits (little-endian byte order) are split into exponent (high 5) and 164 // 16 bits (little-endian byte order) are split into exponent (high 5) and
163 // mantissa (low 11) and decoded as: 165 // mantissa (low 11) and decoded as:
164 // uint64 value; 166 // uint64 value;
165 // if (exponent == 0) value = mantissa; 167 // if (exponent == 0) value = mantissa;
166 // else value = (mantissa | 1 << 11) << (exponent - 1) 168 // else value = (mantissa | 1 << 11) << (exponent - 1)
167 const int kUFloat16ExponentBits = 5; 169 const int kUFloat16ExponentBits = 5;
168 const int kUFloat16MaxExponent = (1 << kUFloat16ExponentBits) - 2; // 30 170 const int kUFloat16MaxExponent = (1 << kUFloat16ExponentBits) - 2; // 30
169 const int kUFloat16MantissaBits = 16 - kUFloat16ExponentBits; // 11 171 const int kUFloat16MantissaBits = 16 - kUFloat16ExponentBits; // 11
170 const int kUFloat16MantissaEffectiveBits = kUFloat16MantissaBits + 1; // 12 172 const int kUFloat16MantissaEffectiveBits = kUFloat16MantissaBits + 1; // 12
171 const uint64 kUFloat16MaxValue = // 0x3FFC0000000 173 const uint64 kUFloat16MaxValue = // 0x3FFC0000000
172 ((GG_UINT64_C(1) << kUFloat16MantissaEffectiveBits) - 1) << 174 ((UINT64_C(1) << kUFloat16MantissaEffectiveBits) - 1)
173 kUFloat16MaxExponent; 175 << kUFloat16MaxExponent;
174 176
175 enum TransmissionType { 177 enum TransmissionType {
176 NOT_RETRANSMISSION, 178 NOT_RETRANSMISSION,
177 FIRST_TRANSMISSION_TYPE = NOT_RETRANSMISSION, 179 FIRST_TRANSMISSION_TYPE = NOT_RETRANSMISSION,
178 HANDSHAKE_RETRANSMISSION, // Retransmits due to handshake timeouts. 180 HANDSHAKE_RETRANSMISSION, // Retransmits due to handshake timeouts.
179 ALL_UNACKED_RETRANSMISSION, // Retransmits all unacked packets. 181 ALL_UNACKED_RETRANSMISSION, // Retransmits all unacked packets.
180 ALL_INITIAL_RETRANSMISSION, // Retransmits all initially encrypted packets. 182 ALL_INITIAL_RETRANSMISSION, // Retransmits all initially encrypted packets.
181 LOSS_RETRANSMISSION, // Retransmits due to loss detection. 183 LOSS_RETRANSMISSION, // Retransmits due to loss detection.
182 RTO_RETRANSMISSION, // Retransmits due to retransmit time out. 184 RTO_RETRANSMISSION, // Retransmits due to retransmit time out.
183 TLP_RETRANSMISSION, // Tail loss probes. 185 TLP_RETRANSMISSION, // Tail loss probes.
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 bool in_flight; 1060 bool in_flight;
1059 // True if the packet can never be acked, so it can be removed. 1061 // True if the packet can never be acked, so it can be removed.
1060 bool is_unackable; 1062 bool is_unackable;
1061 // True if the packet is an FEC packet. 1063 // True if the packet is an FEC packet.
1062 bool is_fec_packet; 1064 bool is_fec_packet;
1063 }; 1065 };
1064 1066
1065 } // namespace net 1067 } // namespace net
1066 1068
1067 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1069 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698