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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 NOOP, // Because it is valid in SPDY/2, kept for identifiability/enum order. | 281 NOOP, // Because it is valid in SPDY/2, kept for identifiability/enum order. |
282 PING, | 282 PING, |
283 GOAWAY, | 283 GOAWAY, |
284 HEADERS, | 284 HEADERS, |
285 WINDOW_UPDATE, | 285 WINDOW_UPDATE, |
286 CREDENTIAL, // No longer valid. Kept for identifiability/enum order. | 286 CREDENTIAL, // No longer valid. Kept for identifiability/enum order. |
287 BLOCKED, | 287 BLOCKED, |
288 PUSH_PROMISE, | 288 PUSH_PROMISE, |
289 CONTINUATION, | 289 CONTINUATION, |
290 ALTSVC, | 290 ALTSVC, |
291 LAST_CONTROL_TYPE = ALTSVC | 291 PRIORITY, |
| 292 LAST_CONTROL_TYPE = PRIORITY |
292 }; | 293 }; |
293 | 294 |
294 // Flags on data packets. | 295 // Flags on data packets. |
295 enum SpdyDataFlags { | 296 enum SpdyDataFlags { |
296 DATA_FLAG_NONE = 0x00, | 297 DATA_FLAG_NONE = 0x00, |
297 DATA_FLAG_FIN = 0x01, | 298 DATA_FLAG_FIN = 0x01, |
298 DATA_FLAG_END_SEGMENT = 0x02, | 299 DATA_FLAG_END_SEGMENT = 0x02, |
299 DATA_FLAG_PAD_LOW = 0x08, | 300 DATA_FLAG_PAD_LOW = 0x08, |
300 DATA_FLAG_PAD_HIGH = 0x10, | 301 DATA_FLAG_PAD_HIGH = 0x10, |
301 DATA_FLAG_COMPRESSED = 0x20, | 302 DATA_FLAG_COMPRESSED = 0x20, |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1025 SpdyFrameVisitor() {} | 1026 SpdyFrameVisitor() {} |
1026 virtual ~SpdyFrameVisitor() {} | 1027 virtual ~SpdyFrameVisitor() {} |
1027 | 1028 |
1028 private: | 1029 private: |
1029 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 1030 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
1030 }; | 1031 }; |
1031 | 1032 |
1032 } // namespace net | 1033 } // namespace net |
1033 | 1034 |
1034 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1035 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
OLD | NEW |