| 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 18 matching lines...) Expand all Loading... |
| 29 #include "net/spdy/spdy_bug_tracker.h" | 29 #include "net/spdy/spdy_bug_tracker.h" |
| 30 #include "net/spdy/spdy_header_block.h" | 30 #include "net/spdy/spdy_header_block.h" |
| 31 | 31 |
| 32 namespace net { | 32 namespace net { |
| 33 | 33 |
| 34 // The major versions of SPDY. Major version differences indicate | 34 // The major versions of SPDY. Major version differences indicate |
| 35 // framer-layer incompatibility, as opposed to minor version numbers | 35 // framer-layer incompatibility, as opposed to minor version numbers |
| 36 // which indicate application-layer incompatibility. It is NOT guaranteed | 36 // which indicate application-layer incompatibility. It is NOT guaranteed |
| 37 // that the enum value SPDYn maps to the integer n. | 37 // that the enum value SPDYn maps to the integer n. |
| 38 enum SpdyMajorVersion { | 38 enum SpdyMajorVersion { |
| 39 SPDY3 = 1, | 39 HTTP2 = 2, |
| 40 HTTP2, | |
| 41 }; | 40 }; |
| 42 | 41 |
| 43 // 15 bit version field for SPDY/3 frames. | 42 // 15 bit version field for SPDY/3 frames. |
| 44 const uint16_t kSpdy3Version = 3; | 43 const uint16_t kSpdy3Version = 3; |
| 45 | 44 |
| 46 // A SPDY stream id is a 31 bit entity. | 45 // A SPDY stream id is a 31 bit entity. |
| 47 typedef uint32_t SpdyStreamId; | 46 typedef uint32_t SpdyStreamId; |
| 48 | 47 |
| 49 // Specifies the stream ID used to denote the current session (for | 48 // Specifies the stream ID used to denote the current session (for |
| 50 // flow control). | 49 // flow control). |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 SpdyFrameVisitor() {} | 1259 SpdyFrameVisitor() {} |
| 1261 virtual ~SpdyFrameVisitor() {} | 1260 virtual ~SpdyFrameVisitor() {} |
| 1262 | 1261 |
| 1263 private: | 1262 private: |
| 1264 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); | 1263 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); |
| 1265 }; | 1264 }; |
| 1266 | 1265 |
| 1267 } // namespace net | 1266 } // namespace net |
| 1268 | 1267 |
| 1269 #endif // NET_SPDY_SPDY_PROTOCOL_H_ | 1268 #endif // NET_SPDY_SPDY_PROTOCOL_H_ |
| OLD | NEW |