OLD | NEW |
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 2 and 3 | 5 // This file contains some protocol structures for use with SPDY 2 and 3 |
6 // The SPDY 2 spec can be found at: | 6 // The SPDY 2 spec can be found at: |
7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2 | 7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2 |
8 // The SPDY 3 spec can be found at: | 8 // The SPDY 3 spec can be found at: |
9 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3 | 9 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3 |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // Specifies the stream ID used to denote the current session (for | 45 // Specifies the stream ID used to denote the current session (for |
46 // flow control). | 46 // flow control). |
47 const SpdyStreamId kSessionFlowControlStreamId = 0; | 47 const SpdyStreamId kSessionFlowControlStreamId = 0; |
48 | 48 |
49 // Initial window size for a Spdy stream in bytes. | 49 // Initial window size for a Spdy stream in bytes. |
50 const int32 kSpdyStreamInitialWindowSize = 64 * 1024; // 64 KBytes | 50 const int32 kSpdyStreamInitialWindowSize = 64 * 1024; // 64 KBytes |
51 | 51 |
52 // The maxmium possible control frame size allowed by the spec. | 52 // The maxmium possible control frame size allowed by the spec. |
53 const int32 kSpdyMaxControlFrameSize = (1 << 24) - 1; | 53 const int32 kSpdyMaxControlFrameSize = (1 << 24) - 1; |
54 | 54 |
55 // The maximum control frame size we actually send/accept. | 55 // The maximum control frame size we accept. |
56 const int32 kControlFrameSizeLimit = 1 << 14; | 56 const int32 kControlFrameSizeLimit = 1 << 14; |
57 | 57 |
58 // Initial window size for a Spdy session in bytes. | 58 // Initial window size for a Spdy session in bytes. |
59 const int32 kSpdySessionInitialWindowSize = 64 * 1024; // 64 KBytes | 59 const int32 kSpdySessionInitialWindowSize = 64 * 1024; // 64 KBytes |
60 | 60 |
61 // Maximum window size for a Spdy stream or session. | 61 // Maximum window size for a Spdy stream or session. |
62 const int32 kSpdyMaximumWindowSize = 0x7FFFFFFF; // Max signed 32bit int | 62 const int32 kSpdyMaximumWindowSize = 0x7FFFFFFF; // Max signed 32bit int |
63 | 63 |
64 // Maximum padding size in octets for one DATA or HEADERS or PUSH_PROMISE frame. | 64 // Maximum padding size in octets for one DATA or HEADERS or PUSH_PROMISE frame. |
65 const int32 kPaddingSizePerFrame = 256; | 65 const int32 kPaddingSizePerFrame = 256; |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1089 SpdyFrameVisitor() {} | 1089 SpdyFrameVisitor() {} |
1090 virtual ~SpdyFrameVisitor() {} | 1090 virtual ~SpdyFrameVisitor() {} |
1091 | 1091 |
1092 private: | 1092 private: |
1093 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 1093 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
1094 }; | 1094 }; |
1095 | 1095 |
1096 } // namespace net | 1096 } // namespace net |
1097 | 1097 |
1098 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1098 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
OLD | NEW |