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

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

Issue 1911413002: Add kSpdyInitialHeaderListSizeLimit constant. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // flow control). 48 // flow control).
49 const SpdyStreamId kSessionFlowControlStreamId = 0; 49 const SpdyStreamId kSessionFlowControlStreamId = 0;
50 50
51 // The maxmium possible frame payload size allowed by the spec. 51 // The maxmium possible frame payload size allowed by the spec.
52 const uint32_t kSpdyMaxFrameSizeLimit = (1 << 24) - 1; 52 const uint32_t kSpdyMaxFrameSizeLimit = (1 << 24) - 1;
53 53
54 // The initial value for the maximum frame payload size as per the spec. This is 54 // The initial value for the maximum frame payload size as per the spec. This is
55 // the maximum control frame size we accept. 55 // the maximum control frame size we accept.
56 const uint32_t kSpdyInitialFrameSizeLimit = 1 << 14; 56 const uint32_t kSpdyInitialFrameSizeLimit = 1 << 14;
57 57
58 // The initial value for the maximum size of the header list, "unlimited" (max
59 // unsigned 32-bit int) as per the spec.
60 const uint32_t kSpdyInitialHeaderListSizeLimit = 0xFFFFFFFF;
61
58 // Maximum window size for a Spdy stream or session. 62 // Maximum window size for a Spdy stream or session.
59 const int32_t kSpdyMaximumWindowSize = 0x7FFFFFFF; // Max signed 32bit int 63 const int32_t kSpdyMaximumWindowSize = 0x7FFFFFFF; // Max signed 32bit int
60 64
61 // Maximum padding size in octets for one DATA or HEADERS or PUSH_PROMISE frame. 65 // Maximum padding size in octets for one DATA or HEADERS or PUSH_PROMISE frame.
62 const int32_t kPaddingSizePerFrame = 256; 66 const int32_t kPaddingSizePerFrame = 256;
63 67
64 // SPDY 3 dictionary. 68 // SPDY 3 dictionary.
65 const char kV3Dictionary[] = { 69 const char kV3Dictionary[] = {
66 0x00, 0x00, 0x00, 0x07, 0x6f, 0x70, 0x74, 0x69, // ....opti 70 0x00, 0x00, 0x00, 0x07, 0x6f, 0x70, 0x74, 0x69, // ....opti
67 0x6f, 0x6e, 0x73, 0x00, 0x00, 0x00, 0x04, 0x68, // ons....h 71 0x6f, 0x6e, 0x73, 0x00, 0x00, 0x00, 0x04, 0x68, // ons....h
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 SpdyFrameVisitor() {} 1073 SpdyFrameVisitor() {}
1070 virtual ~SpdyFrameVisitor() {} 1074 virtual ~SpdyFrameVisitor() {}
1071 1075
1072 private: 1076 private:
1073 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); 1077 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor);
1074 }; 1078 };
1075 1079
1076 } // namespace net 1080 } // namespace net
1077 1081
1078 #endif // NET_SPDY_SPDY_PROTOCOL_H_ 1082 #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