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

Side by Side Diff: net/spdy/spdy_protocol.h

Issue 2566193002: This change adds a kMaxStreamId constant. (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | 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 // This file contains some protocol structures for use with SPDY 3 and HTTP 2 5 // This file contains some protocol structures for use with SPDY 3 and HTTP 2
6 // The SPDY 3 spec can be found at: 6 // The SPDY 3 spec can be found at:
7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3 7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3
8 8
9 #ifndef NET_SPDY_SPDY_PROTOCOL_H_ 9 #ifndef NET_SPDY_SPDY_PROTOCOL_H_
10 #define NET_SPDY_SPDY_PROTOCOL_H_ 10 #define NET_SPDY_SPDY_PROTOCOL_H_
(...skipping 20 matching lines...) Expand all
31 31
32 namespace net { 32 namespace net {
33 33
34 // A stream id is a 31 bit entity. 34 // A stream id is a 31 bit entity.
35 typedef uint32_t SpdyStreamId; 35 typedef uint32_t SpdyStreamId;
36 36
37 // Specifies the stream ID used to denote the current session (for 37 // Specifies the stream ID used to denote the current session (for
38 // flow control). 38 // flow control).
39 const SpdyStreamId kSessionFlowControlStreamId = 0; 39 const SpdyStreamId kSessionFlowControlStreamId = 0;
40 40
41 // Max stream id.
42 const SpdyStreamId kMaxStreamId = 0x7fffffff;
43
41 // The maximum possible frame payload size allowed by the spec. 44 // The maximum possible frame payload size allowed by the spec.
42 const uint32_t kSpdyMaxFrameSizeLimit = (1 << 24) - 1; 45 const uint32_t kSpdyMaxFrameSizeLimit = (1 << 24) - 1;
43 46
44 // The initial value for the maximum frame payload size as per the spec. This is 47 // The initial value for the maximum frame payload size as per the spec. This is
45 // the maximum control frame size we accept. 48 // the maximum control frame size we accept.
46 const uint32_t kSpdyInitialFrameSizeLimit = 1 << 14; 49 const uint32_t kSpdyInitialFrameSizeLimit = 1 << 14;
47 50
48 // The initial value for the maximum size of the header list, "unlimited" (max 51 // The initial value for the maximum size of the header list, "unlimited" (max
49 // unsigned 32-bit int) as per the spec. 52 // unsigned 32-bit int) as per the spec.
50 const uint32_t kSpdyInitialHeaderListSizeLimit = 0xFFFFFFFF; 53 const uint32_t kSpdyInitialHeaderListSizeLimit = 0xFFFFFFFF;
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 SpdyFrameVisitor() {} 977 SpdyFrameVisitor() {}
975 virtual ~SpdyFrameVisitor() {} 978 virtual ~SpdyFrameVisitor() {}
976 979
977 private: 980 private:
978 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); 981 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor);
979 }; 982 };
980 983
981 } // namespace net 984 } // namespace net
982 985
983 #endif // NET_SPDY_SPDY_PROTOCOL_H_ 986 #endif // NET_SPDY_SPDY_PROTOCOL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698