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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 // TCP congestion window in packets. | 354 // TCP congestion window in packets. |
355 SETTINGS_CURRENT_CWND = 0x5, | 355 SETTINGS_CURRENT_CWND = 0x5, |
356 // Downstream byte retransmission rate in percentage. | 356 // Downstream byte retransmission rate in percentage. |
357 SETTINGS_DOWNLOAD_RETRANS_RATE = 0x6, | 357 SETTINGS_DOWNLOAD_RETRANS_RATE = 0x6, |
358 // Initial window size in bytes | 358 // Initial window size in bytes |
359 SETTINGS_INITIAL_WINDOW_SIZE = 0x7, | 359 SETTINGS_INITIAL_WINDOW_SIZE = 0x7, |
360 // HPACK header table maximum size. | 360 // HPACK header table maximum size. |
361 SETTINGS_HEADER_TABLE_SIZE = 0x8, | 361 SETTINGS_HEADER_TABLE_SIZE = 0x8, |
362 // Whether or not server push (PUSH_PROMISE) is enabled. | 362 // Whether or not server push (PUSH_PROMISE) is enabled. |
363 SETTINGS_ENABLE_PUSH = 0x9, | 363 SETTINGS_ENABLE_PUSH = 0x9, |
| 364 // Whether or not to enable GZip compression of DATA frames. |
| 365 SETTINGS_COMPRESS_DATA = 0xa, |
364 }; | 366 }; |
365 | 367 |
366 // Status codes for RST_STREAM frames. | 368 // Status codes for RST_STREAM frames. |
367 enum SpdyRstStreamStatus { | 369 enum SpdyRstStreamStatus { |
368 RST_STREAM_INVALID = 0, | 370 RST_STREAM_INVALID = 0, |
369 RST_STREAM_PROTOCOL_ERROR = 1, | 371 RST_STREAM_PROTOCOL_ERROR = 1, |
370 RST_STREAM_INVALID_STREAM = 2, | 372 RST_STREAM_INVALID_STREAM = 2, |
371 RST_STREAM_STREAM_CLOSED = 2, // Equivalent to INVALID_STREAM | 373 RST_STREAM_STREAM_CLOSED = 2, // Equivalent to INVALID_STREAM |
372 RST_STREAM_REFUSED_STREAM = 3, | 374 RST_STREAM_REFUSED_STREAM = 3, |
373 RST_STREAM_UNSUPPORTED_VERSION = 4, | 375 RST_STREAM_UNSUPPORTED_VERSION = 4, |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 SpdyFrameVisitor() {} | 1028 SpdyFrameVisitor() {} |
1027 virtual ~SpdyFrameVisitor() {} | 1029 virtual ~SpdyFrameVisitor() {} |
1028 | 1030 |
1029 private: | 1031 private: |
1030 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 1032 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
1031 }; | 1033 }; |
1032 | 1034 |
1033 } // namespace net | 1035 } // namespace net |
1034 | 1036 |
1035 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1037 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
OLD | NEW |