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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const HpackPrefix kHeaderTableSizeUpdateOpcode = { 0x1, 3 }; | 66 const HpackPrefix kHeaderTableSizeUpdateOpcode = { 0x1, 3 }; |
67 | 67 |
68 // Returns symbol code table from "Appendix C. Huffman Codes". | 68 // Returns symbol code table from "Appendix C. Huffman Codes". |
69 NET_EXPORT_PRIVATE std::vector<HpackHuffmanSymbol> HpackHuffmanCode(); | 69 NET_EXPORT_PRIVATE std::vector<HpackHuffmanSymbol> HpackHuffmanCode(); |
70 | 70 |
71 // Returns a HpackHuffmanTable instance initialized with |kHpackHuffmanCode|. | 71 // Returns a HpackHuffmanTable instance initialized with |kHpackHuffmanCode|. |
72 // The instance is read-only, has static lifetime, and is safe to share amoung | 72 // The instance is read-only, has static lifetime, and is safe to share amoung |
73 // threads. This function is thread-safe. | 73 // threads. This function is thread-safe. |
74 NET_EXPORT_PRIVATE const HpackHuffmanTable& ObtainHpackHuffmanTable(); | 74 NET_EXPORT_PRIVATE const HpackHuffmanTable& ObtainHpackHuffmanTable(); |
75 | 75 |
| 76 // Pseudo-headers start with a colon. (HTTP2 8.1.2.1., HPACK 3.1.) |
| 77 const char kPseudoHeaderPrefix = ':'; |
| 78 |
76 } // namespace net | 79 } // namespace net |
77 | 80 |
78 #endif // NET_SPDY_HPACK_CONSTANTS_H_ | 81 #endif // NET_SPDY_HPACK_CONSTANTS_H_ |
OLD | NEW |