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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 DATA, | 278 DATA, |
279 SYN_STREAM, | 279 SYN_STREAM, |
280 SYN_REPLY, | 280 SYN_REPLY, |
281 RST_STREAM, | 281 RST_STREAM, |
282 SETTINGS, | 282 SETTINGS, |
283 PING, | 283 PING, |
284 GOAWAY, | 284 GOAWAY, |
285 HEADERS, | 285 HEADERS, |
286 WINDOW_UPDATE, | 286 WINDOW_UPDATE, |
287 CREDENTIAL = 10, // No longer valid. Kept for identifiability. | 287 CREDENTIAL = 10, // No longer valid. Kept for identifiability. |
288 BLOCKED, | |
289 PUSH_PROMISE, | 288 PUSH_PROMISE, |
290 CONTINUATION, | 289 CONTINUATION, |
| 290 PRIORITY, |
| 291 // BLOCKED and ALTSVC are recognized extensions. |
| 292 BLOCKED, |
291 ALTSVC, | 293 ALTSVC, |
292 PRIORITY | |
293 }; | 294 }; |
294 | 295 |
295 // Flags on data packets. | 296 // Flags on data packets. |
296 enum SpdyDataFlags { | 297 enum SpdyDataFlags { |
297 DATA_FLAG_NONE = 0x00, | 298 DATA_FLAG_NONE = 0x00, |
298 DATA_FLAG_FIN = 0x01, | 299 DATA_FLAG_FIN = 0x01, |
299 DATA_FLAG_END_SEGMENT = 0x02, | 300 DATA_FLAG_END_SEGMENT = 0x02, |
300 DATA_FLAG_PADDED = 0x08, | 301 DATA_FLAG_PADDED = 0x08, |
301 DATA_FLAG_COMPRESSED = 0x20, | 302 DATA_FLAG_COMPRESSED = 0x20, |
302 }; | 303 }; |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 SpdyFrameVisitor() {} | 1045 SpdyFrameVisitor() {} |
1045 virtual ~SpdyFrameVisitor() {} | 1046 virtual ~SpdyFrameVisitor() {} |
1046 | 1047 |
1047 private: | 1048 private: |
1048 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 1049 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
1049 }; | 1050 }; |
1050 | 1051 |
1051 } // namespace net | 1052 } // namespace net |
1052 | 1053 |
1053 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1054 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
OLD | NEW |