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

Side by Side Diff: net/quic/core/quic_constants.h

Issue 2509053004: Move some more constants and typedefs around. No behavior change. (Closed)
Patch Set: Created 4 years, 1 month 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/net.gypi ('k') | net/quic/core/quic_constants.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_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
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_
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/quic/core/quic_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698