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

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

Issue 1437023002: Landing Recent QUIC changes until 2015-11-09 20:32 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/quic/quic_packet_creator.cc ('k') | net/quic/quic_sent_packet_manager.h » ('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> 9 #include <stdint.h>
10 #include <limits> 10 #include <limits>
(...skipping 23 matching lines...) Expand all
34 34
35 namespace net { 35 namespace net {
36 36
37 class QuicPacket; 37 class QuicPacket;
38 struct QuicPacketHeader; 38 struct QuicPacketHeader;
39 39
40 typedef uint64 QuicConnectionId; 40 typedef uint64 QuicConnectionId;
41 typedef uint32 QuicStreamId; 41 typedef uint32 QuicStreamId;
42 typedef uint64 QuicStreamOffset; 42 typedef uint64 QuicStreamOffset;
43 typedef uint64 QuicPacketNumber; 43 typedef uint64 QuicPacketNumber;
44 typedef uint8 QuicPathId;
44 typedef QuicPacketNumber QuicFecGroupNumber; 45 typedef QuicPacketNumber QuicFecGroupNumber;
45 typedef uint64 QuicPublicResetNonceProof; 46 typedef uint64 QuicPublicResetNonceProof;
46 typedef uint8 QuicPacketEntropyHash; 47 typedef uint8 QuicPacketEntropyHash;
47 typedef uint32 QuicHeaderId; 48 typedef uint32 QuicHeaderId;
48 // QuicTag is the type of a tag in the wire protocol. 49 // QuicTag is the type of a tag in the wire protocol.
49 typedef uint32 QuicTag; 50 typedef uint32 QuicTag;
50 typedef std::vector<QuicTag> QuicTagVector; 51 typedef std::vector<QuicTag> QuicTagVector;
51 typedef std::map<QuicTag, std::string> QuicTagValueMap; 52 typedef std::map<QuicTag, std::string> QuicTagValueMap;
52 // TODO(rtenneti): Didn't use SpdyPriority because SpdyPriority is uint8 and 53 // TODO(rtenneti): Didn't use SpdyPriority because SpdyPriority is uint8 and
53 // QuicPriority is uint32. Use SpdyPriority when we change the QUIC_VERSION. 54 // QuicPriority is uint32. Use SpdyPriority when we change the QUIC_VERSION.
(...skipping 12 matching lines...) Expand all
66 // Default maximum packet size used in the Linux TCP implementation. 67 // Default maximum packet size used in the Linux TCP implementation.
67 // Used in QUIC for congestion window computations in bytes. 68 // Used in QUIC for congestion window computations in bytes.
68 const QuicByteCount kDefaultTCPMSS = 1460; 69 const QuicByteCount kDefaultTCPMSS = 1460;
69 70
70 // We match SPDY's use of 32 (since we'd compete with SPDY). 71 // We match SPDY's use of 32 (since we'd compete with SPDY).
71 const QuicPacketCount kInitialCongestionWindow = 32; 72 const QuicPacketCount kInitialCongestionWindow = 32;
72 73
73 // Minimum size of initial flow control window, for both stream and session. 74 // Minimum size of initial flow control window, for both stream and session.
74 const uint32 kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB 75 const uint32 kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB
75 76
77 // Maximum flow control receive window limits for connection and stream.
78 const QuicByteCount kStreamReceiveWindowLimit = 16 * 1024 * 1024; // 16 MB
79 const QuicByteCount kSessionReceiveWindowLimit = 24 * 1024 * 1024; // 24 MB
80
76 // Minimum size of the CWND, in packets, when doing bandwidth resumption. 81 // Minimum size of the CWND, in packets, when doing bandwidth resumption.
77 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; 82 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10;
78 83
79 // Maximum size of the CWND, in packets. 84 // Maximum size of the CWND, in packets.
80 const QuicPacketCount kMaxCongestionWindow = 200; 85 const QuicPacketCount kMaxCongestionWindow = 200;
81 86
82 // Maximum number of tracked packets. 87 // Maximum number of tracked packets.
83 const QuicPacketCount kMaxTrackedPackets = 5000; 88 const QuicPacketCount kMaxTrackedPackets = 5000;
84 89
85 // Default size of the socket receive buffer in bytes. 90 // Default size of the socket receive buffer in bytes.
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1243 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1239 1244
1240 const struct iovec* iov; 1245 const struct iovec* iov;
1241 const int iov_count; 1246 const int iov_count;
1242 const size_t total_length; 1247 const size_t total_length;
1243 }; 1248 };
1244 1249
1245 } // namespace net 1250 } // namespace net
1246 1251
1247 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1252 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator.cc ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698