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

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

Issue 125403006: Various QUIC cleanups to sync with internal code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 6 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/reliable_quic_stream.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_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 <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 25 matching lines...) Expand all
36 typedef uint32 QuicStreamId; 36 typedef uint32 QuicStreamId;
37 typedef uint64 QuicStreamOffset; 37 typedef uint64 QuicStreamOffset;
38 typedef uint64 QuicPacketSequenceNumber; 38 typedef uint64 QuicPacketSequenceNumber;
39 typedef QuicPacketSequenceNumber QuicFecGroupNumber; 39 typedef QuicPacketSequenceNumber QuicFecGroupNumber;
40 typedef uint64 QuicPublicResetNonceProof; 40 typedef uint64 QuicPublicResetNonceProof;
41 typedef uint8 QuicPacketEntropyHash; 41 typedef uint8 QuicPacketEntropyHash;
42 typedef uint32 QuicHeaderId; 42 typedef uint32 QuicHeaderId;
43 // QuicTag is the type of a tag in the wire protocol. 43 // QuicTag is the type of a tag in the wire protocol.
44 typedef uint32 QuicTag; 44 typedef uint32 QuicTag;
45 typedef std::vector<QuicTag> QuicTagVector; 45 typedef std::vector<QuicTag> QuicTagVector;
46 // TODO(rtenneti): Didn't use SpdyPriority because SpdyPriority is uint8 and
47 // QuicPriority is uint32. Use SpdyPriority when we change the QUIC_VERSION.
46 typedef uint32 QuicPriority; 48 typedef uint32 QuicPriority;
47 49
48 // TODO(rch): Consider Quic specific names for these constants. 50 // TODO(rch): Consider Quic specific names for these constants.
49 // Default and initial maximum size in bytes of a QUIC packet. 51 // Default and initial maximum size in bytes of a QUIC packet.
50 const QuicByteCount kDefaultMaxPacketSize = 1200; 52 const QuicByteCount kDefaultMaxPacketSize = 1200;
51 // The maximum packet size of any QUIC packet, based on ethernet's max size, 53 // The maximum packet size of any QUIC packet, based on ethernet's max size,
52 // minus the IP and UDP headers. IPv6 has a 40 byte header, UPD adds an 54 // minus the IP and UDP headers. IPv6 has a 40 byte header, UPD adds an
53 // additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's 55 // additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's
54 // max packet size is 1500 bytes, 1500 - 48 = 1452. 56 // max packet size is 1500 bytes, 1500 - 48 = 1452.
55 const QuicByteCount kMaxPacketSize = 1452; 57 const QuicByteCount kMaxPacketSize = 1452;
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 WriteStatus status; 959 WriteStatus status;
958 union { 960 union {
959 int bytes_written; // only valid when status is OK 961 int bytes_written; // only valid when status is OK
960 int error_code; // only valid when status is ERROR 962 int error_code; // only valid when status is ERROR
961 }; 963 };
962 }; 964 };
963 965
964 } // namespace net 966 } // namespace net
965 967
966 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 968 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698