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

Unified Diff: net/quic/quic_protocol.h

Issue 14651009: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integer constant is too large for 'unsigned long' type Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | net/quic/quic_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.h
diff --git a/net/quic/quic_protocol.h b/net/quic/quic_protocol.h
index efb2459e3a98f0b94a6b119f8558bddce43629d1..c3fd9a06c2e8f3a5163f9467aa0e8d52673910f0 100644
--- a/net/quic/quic_protocol.h
+++ b/net/quic/quic_protocol.h
@@ -38,6 +38,7 @@ typedef uint64 QuicPublicResetNonceProof;
typedef uint8 QuicPacketEntropyHash;
typedef uint32 QuicVersionTag;
typedef std::vector<QuicVersionTag> QuicVersionTagList;
+typedef uint32 QuicHeaderId;
// TODO(rch): Consider Quic specific names for these constants.
// Maximum size in bytes of a QUIC packet.
@@ -81,6 +82,8 @@ const size_t kStartOfHashData = 0;
// Limit on the delta between stream IDs.
const QuicStreamId kMaxStreamIdDelta = 100;
+// Limit on the delta between header IDs.
+const QuicHeaderId kMaxHeaderIdDelta = 100;
// Reserved ID for the crypto stream.
// TODO(rch): ensure that this is not usable by any other streams.
@@ -185,8 +188,12 @@ enum QuicErrorCode {
QUIC_TOO_MANY_OPEN_STREAMS,
// Received public reset for this connection.
QUIC_PUBLIC_RESET,
- // Invalid protocol version
+ // Invalid protocol version.
QUIC_INVALID_VERSION,
+ // Stream reset before headers decompressed.
+ QUIC_STREAM_RST_BEFORE_HEADERS_DECOMPRESSED,
+ // The Header ID for a stream was too far from the previous.
+ QUIC_INVALID_HEADER_ID,
// We hit our prenegotiated (or default) timeout
QUIC_CONNECTION_TIMED_OUT,
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | net/quic/quic_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698