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_CONSTANTS_H_ | 5 #ifndef NET_QUIC_QUIC_CONSTANTS_H_ |
6 #define NET_QUIC_QUIC_CONSTANTS_H_ | 6 #define NET_QUIC_QUIC_CONSTANTS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <cstdint> | 9 #include <cstdint> |
10 #include <limits> | 10 #include <limits> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "net/quic/core/quic_time.h" |
13 #include "net/quic/core/quic_types.h" | 14 #include "net/quic/core/quic_types.h" |
14 | 15 |
15 // Definitions of constant values used throughout the QUIC code. | 16 // Definitions of constant values used throughout the QUIC code. |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 // Default initial maximum size in bytes of a QUIC packet. | 20 // Default initial maximum size in bytes of a QUIC packet. |
20 const QuicByteCount kDefaultMaxPacketSize = 1350; | 21 const QuicByteCount kDefaultMaxPacketSize = 1350; |
21 const QuicByteCount kDefaultServerMaxPacketSize = 1000; | 22 const QuicByteCount kDefaultServerMaxPacketSize = 1000; |
22 // The maximum packet size of any QUIC packet, based on ethernet's max size, | 23 // The maximum packet size of any QUIC packet, based on ethernet's max size, |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // duplicated. | 172 // duplicated. |
172 const size_t kDiversificationNonceSize = 32; | 173 const size_t kDiversificationNonceSize = 32; |
173 | 174 |
174 // The largest gap in packets we'll accept without closing the connection. | 175 // The largest gap in packets we'll accept without closing the connection. |
175 // This will likely have to be tuned. | 176 // This will likely have to be tuned. |
176 const QuicPacketNumber kMaxPacketGap = 5000; | 177 const QuicPacketNumber kMaxPacketGap = 5000; |
177 | 178 |
178 } // namespace net | 179 } // namespace net |
179 | 180 |
180 #endif // NET_QUIC_QUIC_CONSTANTS_H_ | 181 #endif // NET_QUIC_QUIC_CONSTANTS_H_ |
OLD | NEW |