| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // TCP congestion window in packets. | 351 // TCP congestion window in packets. |
| 352 SETTINGS_CURRENT_CWND = 0x5, | 352 SETTINGS_CURRENT_CWND = 0x5, |
| 353 // Downstream byte retransmission rate in percentage. | 353 // Downstream byte retransmission rate in percentage. |
| 354 SETTINGS_DOWNLOAD_RETRANS_RATE = 0x6, | 354 SETTINGS_DOWNLOAD_RETRANS_RATE = 0x6, |
| 355 // Initial window size in bytes | 355 // Initial window size in bytes |
| 356 SETTINGS_INITIAL_WINDOW_SIZE = 0x7, | 356 SETTINGS_INITIAL_WINDOW_SIZE = 0x7, |
| 357 // HPACK header table maximum size. | 357 // HPACK header table maximum size. |
| 358 SETTINGS_HEADER_TABLE_SIZE = 0x8, | 358 SETTINGS_HEADER_TABLE_SIZE = 0x8, |
| 359 // Whether or not server push (PUSH_PROMISE) is enabled. | 359 // Whether or not server push (PUSH_PROMISE) is enabled. |
| 360 SETTINGS_ENABLE_PUSH = 0x9, | 360 SETTINGS_ENABLE_PUSH = 0x9, |
| 361 // Whether or not to enable GZip compression of DATA frames. | |
| 362 SETTINGS_COMPRESS_DATA = 0xa, | |
| 363 }; | 361 }; |
| 364 | 362 |
| 365 // Status codes for RST_STREAM frames. | 363 // Status codes for RST_STREAM frames. |
| 366 enum SpdyRstStreamStatus { | 364 enum SpdyRstStreamStatus { |
| 367 RST_STREAM_INVALID = 0, | 365 RST_STREAM_INVALID = 0, |
| 368 RST_STREAM_PROTOCOL_ERROR = 1, | 366 RST_STREAM_PROTOCOL_ERROR = 1, |
| 369 RST_STREAM_INVALID_STREAM = 2, | 367 RST_STREAM_INVALID_STREAM = 2, |
| 370 RST_STREAM_STREAM_CLOSED = 2, // Equivalent to INVALID_STREAM | 368 RST_STREAM_STREAM_CLOSED = 2, // Equivalent to INVALID_STREAM |
| 371 RST_STREAM_REFUSED_STREAM = 3, | 369 RST_STREAM_REFUSED_STREAM = 3, |
| 372 RST_STREAM_UNSUPPORTED_VERSION = 4, | 370 RST_STREAM_UNSUPPORTED_VERSION = 4, |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 SpdyFrameVisitor() {} | 1051 SpdyFrameVisitor() {} |
| 1054 virtual ~SpdyFrameVisitor() {} | 1052 virtual ~SpdyFrameVisitor() {} |
| 1055 | 1053 |
| 1056 private: | 1054 private: |
| 1057 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 1055 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
| 1058 }; | 1056 }; |
| 1059 | 1057 |
| 1060 } // namespace net | 1058 } // namespace net |
| 1061 | 1059 |
| 1062 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1060 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
| OLD | NEW |