| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef NET_SPDY_HPACK_CONSTANTS_H_ | 5 #ifndef NET_SPDY_HPACK_CONSTANTS_H_ |
| 6 #define NET_SPDY_HPACK_CONSTANTS_H_ | 6 #define NET_SPDY_HPACK_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 // All section references below are to | 10 // All section references below are to |
| 11 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-04 | 11 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-05 |
| 12 // . | 12 // . |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 // The marker for a string literal that is stored unmodified (i.e., | 16 // The marker for a string literal that is stored unmodified (i.e., |
| 17 // without Huffman encoding) (from 4.1.2). | 17 // without Huffman encoding) (from 4.1.2). |
| 18 const uint8 kStringLiteralIdentityEncoded = 0x0; | 18 const uint8 kStringLiteralIdentityEncoded = 0x0; |
| 19 const uint8 kStringLiteralIdentityEncodedSize = 1; | 19 const uint8 kStringLiteralIdentityEncodedSize = 1; |
| 20 | 20 |
| 21 // The opcode for a literal header field without indexing (from | 21 // The opcode for a literal header field without indexing (from |
| 22 // 4.3.1). | 22 // 4.3.1). |
| 23 const uint8 kLiteralNoIndexOpcode = 0x01; | 23 const uint8 kLiteralNoIndexOpcode = 0x01; |
| 24 const uint8 kLiteralNoIndexOpcodeSize = 2; | 24 const uint8 kLiteralNoIndexOpcodeSize = 2; |
| 25 | 25 |
| 26 } // namespace net | 26 } // namespace net |
| 27 | 27 |
| 28 #endif // NET_SPDY_HPACK_CONSTANTS_H_ | 28 #endif // NET_SPDY_HPACK_CONSTANTS_H_ |
| OLD | NEW |