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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 DATA_FLAG_FIN = 1, | 294 DATA_FLAG_FIN = 1, |
295 }; | 295 }; |
296 | 296 |
297 // Flags on control packets | 297 // Flags on control packets |
298 enum SpdyControlFlags { | 298 enum SpdyControlFlags { |
299 CONTROL_FLAG_NONE = 0, | 299 CONTROL_FLAG_NONE = 0, |
300 CONTROL_FLAG_FIN = 1, | 300 CONTROL_FLAG_FIN = 1, |
301 CONTROL_FLAG_UNIDIRECTIONAL = 2 | 301 CONTROL_FLAG_UNIDIRECTIONAL = 2 |
302 }; | 302 }; |
303 | 303 |
| 304 enum SpdyHeadersFlags { |
| 305 HEADERS_FLAG_PRIORITY = 0x08 |
| 306 }; |
| 307 |
304 // Flags on the SETTINGS control frame. | 308 // Flags on the SETTINGS control frame. |
305 enum SpdySettingsControlFlags { | 309 enum SpdySettingsControlFlags { |
306 SETTINGS_FLAG_CLEAR_PREVIOUSLY_PERSISTED_SETTINGS = 0x1 | 310 SETTINGS_FLAG_CLEAR_PREVIOUSLY_PERSISTED_SETTINGS = 0x1 |
307 }; | 311 }; |
308 | 312 |
309 // Flags for settings within a SETTINGS frame. | 313 // Flags for settings within a SETTINGS frame. |
310 enum SpdySettingsFlags { | 314 enum SpdySettingsFlags { |
311 SETTINGS_FLAG_NONE = 0x0, | 315 SETTINGS_FLAG_NONE = 0x0, |
312 SETTINGS_FLAG_PLEASE_PERSIST = 0x1, | 316 SETTINGS_FLAG_PLEASE_PERSIST = 0x1, |
313 SETTINGS_FLAG_PERSISTED = 0x2 | 317 SETTINGS_FLAG_PERSISTED = 0x2 |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 SpdyFrameVisitor() {} | 800 SpdyFrameVisitor() {} |
797 virtual ~SpdyFrameVisitor() {} | 801 virtual ~SpdyFrameVisitor() {} |
798 | 802 |
799 private: | 803 private: |
800 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 804 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
801 }; | 805 }; |
802 | 806 |
803 } // namespace net | 807 } // namespace net |
804 | 808 |
805 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 809 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
OLD | NEW |