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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 // FRAME_TOO_LARGE (defined by SPDY versions 3.1 and below), and | 372 // FRAME_TOO_LARGE (defined by SPDY versions 3.1 and below), and |
373 // FRAME_SIZE_ERROR (defined by HTTP/2) are mapped to the same internal | 373 // FRAME_SIZE_ERROR (defined by HTTP/2) are mapped to the same internal |
374 // reset status. | 374 // reset status. |
375 RST_STREAM_FRAME_TOO_LARGE = 11, | 375 RST_STREAM_FRAME_TOO_LARGE = 11, |
376 RST_STREAM_FRAME_SIZE_ERROR = 11, | 376 RST_STREAM_FRAME_SIZE_ERROR = 11, |
377 RST_STREAM_SETTINGS_TIMEOUT = 12, | 377 RST_STREAM_SETTINGS_TIMEOUT = 12, |
378 RST_STREAM_CONNECT_ERROR = 13, | 378 RST_STREAM_CONNECT_ERROR = 13, |
379 RST_STREAM_ENHANCE_YOUR_CALM = 14, | 379 RST_STREAM_ENHANCE_YOUR_CALM = 14, |
380 RST_STREAM_INADEQUATE_SECURITY = 15, | 380 RST_STREAM_INADEQUATE_SECURITY = 15, |
381 RST_STREAM_HTTP_1_1_REQUIRED = 16, | 381 RST_STREAM_HTTP_1_1_REQUIRED = 16, |
382 RST_STREAM_NUM_STATUS_CODES = 17 | 382 RST_STREAM_NO_ERROR = 17, |
| 383 RST_STREAM_NUM_STATUS_CODES = 18 |
383 }; | 384 }; |
384 | 385 |
385 // Status codes for GOAWAY frames. | 386 // Status codes for GOAWAY frames. |
386 enum SpdyGoAwayStatus { | 387 enum SpdyGoAwayStatus { |
387 GOAWAY_OK = 0, | 388 GOAWAY_OK = 0, |
388 GOAWAY_NO_ERROR = GOAWAY_OK, | 389 GOAWAY_NO_ERROR = GOAWAY_OK, |
389 GOAWAY_PROTOCOL_ERROR = 1, | 390 GOAWAY_PROTOCOL_ERROR = 1, |
390 GOAWAY_INTERNAL_ERROR = 2, | 391 GOAWAY_INTERNAL_ERROR = 2, |
391 GOAWAY_FLOW_CONTROL_ERROR = 3, | 392 GOAWAY_FLOW_CONTROL_ERROR = 3, |
392 GOAWAY_SETTINGS_TIMEOUT = 4, | 393 GOAWAY_SETTINGS_TIMEOUT = 4, |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1260 SpdyFrameVisitor() {} | 1261 SpdyFrameVisitor() {} |
1261 virtual ~SpdyFrameVisitor() {} | 1262 virtual ~SpdyFrameVisitor() {} |
1262 | 1263 |
1263 private: | 1264 private: |
1264 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 1265 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
1265 }; | 1266 }; |
1266 | 1267 |
1267 } // namespace net | 1268 } // namespace net |
1268 | 1269 |
1269 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1270 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
OLD | NEW |