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

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

Issue 1468773002: Changing from QuicPriority to SpdyPriority. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107610692
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_network_transaction_unittest.cc ('k') | net/quic/quic_reliable_client_stream.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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 typedef uint64 QuicPacketNumber; 43 typedef uint64 QuicPacketNumber;
44 typedef uint8 QuicPathId; 44 typedef uint8 QuicPathId;
45 typedef QuicPacketNumber QuicFecGroupNumber; 45 typedef QuicPacketNumber QuicFecGroupNumber;
46 typedef uint64 QuicPublicResetNonceProof; 46 typedef uint64 QuicPublicResetNonceProof;
47 typedef uint8 QuicPacketEntropyHash; 47 typedef uint8 QuicPacketEntropyHash;
48 typedef uint32 QuicHeaderId; 48 typedef uint32 QuicHeaderId;
49 // QuicTag is the type of a tag in the wire protocol. 49 // QuicTag is the type of a tag in the wire protocol.
50 typedef uint32 QuicTag; 50 typedef uint32 QuicTag;
51 typedef std::vector<QuicTag> QuicTagVector; 51 typedef std::vector<QuicTag> QuicTagVector;
52 typedef std::map<QuicTag, std::string> QuicTagValueMap; 52 typedef std::map<QuicTag, std::string> QuicTagValueMap;
53 // TODO(rtenneti): Didn't use SpdyPriority because SpdyPriority is uint8 and
54 // QuicPriority is uint32. Use SpdyPriority when we change the QUIC_VERSION.
55 typedef uint32 QuicPriority;
56 typedef uint16 QuicPacketLength; 53 typedef uint16 QuicPacketLength;
57 54
58 // Default initial maximum size in bytes of a QUIC packet. 55 // Default initial maximum size in bytes of a QUIC packet.
59 const QuicByteCount kDefaultMaxPacketSize = 1350; 56 const QuicByteCount kDefaultMaxPacketSize = 1350;
60 // Default initial maximum size in bytes of a QUIC packet for servers. 57 // Default initial maximum size in bytes of a QUIC packet for servers.
61 const QuicByteCount kDefaultServerMaxPacketSize = 1000; 58 const QuicByteCount kDefaultServerMaxPacketSize = 1000;
62 // The maximum packet size of any QUIC packet, based on ethernet's max size, 59 // The maximum packet size of any QUIC packet, based on ethernet's max size,
63 // minus the IP and UDP headers. IPv6 has a 40 byte header, UPD adds an 60 // minus the IP and UDP headers. IPv6 has a 40 byte header, UPD adds an
64 // additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's 61 // additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's
65 // max packet size is 1500 bytes, 1500 - 48 = 1452. 62 // max packet size is 1500 bytes, 1500 - 48 = 1452.
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1240 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1244 1241
1245 const struct iovec* iov; 1242 const struct iovec* iov;
1246 const int iov_count; 1243 const int iov_count;
1247 const size_t total_length; 1244 const size_t total_length;
1248 }; 1245 };
1249 1246
1250 } // namespace net 1247 } // namespace net
1251 1248
1252 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1249 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | net/quic/quic_reliable_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698