| 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_CORE_QUIC_CONSTANTS_H_ |
| 6 #define NET_QUIC_QUIC_CONSTANTS_H_ | 6 #define NET_QUIC_CORE_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_types.h" | 13 #include "net/quic/core/quic_types.h" |
| 14 | 14 |
| 15 // Definitions of constant values used throughout the QUIC code. | 15 // Definitions of constant values used throughout the QUIC code. |
| 16 | 16 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // may set in the packet header to ensure that its INITIAL keys are not | 177 // may set in the packet header to ensure that its INITIAL keys are not |
| 178 // duplicated. | 178 // duplicated. |
| 179 const size_t kDiversificationNonceSize = 32; | 179 const size_t kDiversificationNonceSize = 32; |
| 180 | 180 |
| 181 // The largest gap in packets we'll accept without closing the connection. | 181 // The largest gap in packets we'll accept without closing the connection. |
| 182 // This will likely have to be tuned. | 182 // This will likely have to be tuned. |
| 183 const QuicPacketNumber kMaxPacketGap = 5000; | 183 const QuicPacketNumber kMaxPacketGap = 5000; |
| 184 | 184 |
| 185 } // namespace net | 185 } // namespace net |
| 186 | 186 |
| 187 #endif // NET_QUIC_QUIC_CONSTANTS_H_ | 187 #endif // NET_QUIC_CORE_QUIC_CONSTANTS_H_ |
| OLD | NEW |