| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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. | 5 // This file contains some protocol structures for use with Spdy. |
| 6 | 6 |
| 7 #ifndef NET_SPDY_SPDY_PROTOCOL_H_ | 7 #ifndef NET_SPDY_SPDY_PROTOCOL_H_ |
| 8 #define NET_SPDY_SPDY_PROTOCOL_H_ | 8 #define NET_SPDY_SPDY_PROTOCOL_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // Status codes, as used in control frames (primarily RST_STREAM). | 182 // Status codes, as used in control frames (primarily RST_STREAM). |
| 183 enum SpdyStatusCodes { | 183 enum SpdyStatusCodes { |
| 184 INVALID = 0, | 184 INVALID = 0, |
| 185 PROTOCOL_ERROR = 1, | 185 PROTOCOL_ERROR = 1, |
| 186 INVALID_STREAM = 2, | 186 INVALID_STREAM = 2, |
| 187 REFUSED_STREAM = 3, | 187 REFUSED_STREAM = 3, |
| 188 UNSUPPORTED_VERSION = 4, | 188 UNSUPPORTED_VERSION = 4, |
| 189 CANCEL = 5, | 189 CANCEL = 5, |
| 190 INTERNAL_ERROR = 6, | 190 INTERNAL_ERROR = 6, |
| 191 FLOW_CONTROL_ERROR = 7, | 191 FLOW_CONTROL_ERROR = 7, |
| 192 NUM_STATUS_CODES = 8 | 192 INVALID_ASSOCIATED_STREAM = 8, |
| 193 NUM_STATUS_CODES = 9 |
| 193 }; | 194 }; |
| 194 | 195 |
| 195 // A SPDY stream id is a 31 bit entity. | 196 // A SPDY stream id is a 31 bit entity. |
| 196 typedef uint32 SpdyStreamId; | 197 typedef uint32 SpdyStreamId; |
| 197 | 198 |
| 198 // A SPDY priority is a number between 0 and 4. | 199 // A SPDY priority is a number between 0 and 4. |
| 199 typedef uint8 SpdyPriority; | 200 typedef uint8 SpdyPriority; |
| 200 | 201 |
| 201 // SPDY Priorities. (there are only 2 bits) | 202 // SPDY Priorities. (there are only 2 bits) |
| 202 #define SPDY_PRIORITY_LOWEST 3 | 203 #define SPDY_PRIORITY_LOWEST 3 |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 struct SpdyWindowUpdateControlFrameBlock* mutable_block() { | 657 struct SpdyWindowUpdateControlFrameBlock* mutable_block() { |
| 657 return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_); | 658 return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_); |
| 658 } | 659 } |
| 659 | 660 |
| 660 DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame); | 661 DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame); |
| 661 }; | 662 }; |
| 662 | 663 |
| 663 } // namespace spdy | 664 } // namespace spdy |
| 664 | 665 |
| 665 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 666 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
| OLD | NEW |