| 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 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // Whether or not server push (PUSH_PROMISE) is enabled. | 351 // Whether or not server push (PUSH_PROMISE) is enabled. |
| 352 SETTINGS_ENABLE_PUSH = 0x9, | 352 SETTINGS_ENABLE_PUSH = 0x9, |
| 353 // The size of the largest frame payload that a receiver is willing to accept. | 353 // The size of the largest frame payload that a receiver is willing to accept. |
| 354 SETTINGS_MAX_FRAME_SIZE = 0xa, | 354 SETTINGS_MAX_FRAME_SIZE = 0xa, |
| 355 // The maximum size of header list that the sender is prepared to accept. | 355 // The maximum size of header list that the sender is prepared to accept. |
| 356 SETTINGS_MAX_HEADER_LIST_SIZE = 0xb, | 356 SETTINGS_MAX_HEADER_LIST_SIZE = 0xb, |
| 357 }; | 357 }; |
| 358 | 358 |
| 359 // Status codes for RST_STREAM frames. | 359 // Status codes for RST_STREAM frames. |
| 360 enum SpdyRstStreamStatus { | 360 enum SpdyRstStreamStatus { |
| 361 RST_STREAM_INVALID = 0, | 361 RST_STREAM_NO_ERROR = 0, |
| 362 RST_STREAM_PROTOCOL_ERROR = 1, | 362 RST_STREAM_PROTOCOL_ERROR = 1, |
| 363 RST_STREAM_INVALID_STREAM = 2, | 363 RST_STREAM_INVALID_STREAM = 2, |
| 364 RST_STREAM_STREAM_CLOSED = 2, // Equivalent to INVALID_STREAM | 364 RST_STREAM_STREAM_CLOSED = 2, // Equivalent to INVALID_STREAM |
| 365 RST_STREAM_REFUSED_STREAM = 3, | 365 RST_STREAM_REFUSED_STREAM = 3, |
| 366 RST_STREAM_UNSUPPORTED_VERSION = 4, | 366 RST_STREAM_UNSUPPORTED_VERSION = 4, |
| 367 RST_STREAM_CANCEL = 5, | 367 RST_STREAM_CANCEL = 5, |
| 368 RST_STREAM_INTERNAL_ERROR = 6, | 368 RST_STREAM_INTERNAL_ERROR = 6, |
| 369 RST_STREAM_FLOW_CONTROL_ERROR = 7, | 369 RST_STREAM_FLOW_CONTROL_ERROR = 7, |
| 370 RST_STREAM_STREAM_IN_USE = 8, | 370 RST_STREAM_STREAM_IN_USE = 8, |
| 371 RST_STREAM_STREAM_ALREADY_CLOSED = 9, | 371 RST_STREAM_STREAM_ALREADY_CLOSED = 9, |
| (...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 SpdyFrameVisitor() {} | 1260 SpdyFrameVisitor() {} |
| 1261 virtual ~SpdyFrameVisitor() {} | 1261 virtual ~SpdyFrameVisitor() {} |
| 1262 | 1262 |
| 1263 private: | 1263 private: |
| 1264 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 1264 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
| 1265 }; | 1265 }; |
| 1266 | 1266 |
| 1267 } // namespace net | 1267 } // namespace net |
| 1268 | 1268 |
| 1269 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1269 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
| OLD | NEW |