OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_HPACK_HUFFMAN_DECODER_H_ | 5 #ifndef NET_SPDY_HPACK_HPACK_HUFFMAN_DECODER_H_ |
6 #define NET_SPDY_HPACK_HPACK_HUFFMAN_DECODER_H_ | 6 #define NET_SPDY_HPACK_HPACK_HUFFMAN_DECODER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/spdy/hpack/hpack_input_stream.h" | 12 #include "net/spdy/core/hpack/hpack_input_stream.h" |
13 #include "net/spdy/platform/api/spdy_string.h" | 13 #include "net/spdy/platform/api/spdy_string.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 namespace test { | 16 namespace test { |
17 class HpackHuffmanDecoderPeer; | 17 class HpackHuffmanDecoderPeer; |
18 } // namespace test | 18 } // namespace test |
19 | 19 |
20 // Declared as a class to simplify testing. | 20 // Declared as a class to simplify testing. |
21 // No instances are actually allocated. | 21 // No instances are actually allocated. |
22 class NET_EXPORT_PRIVATE HpackHuffmanDecoder { | 22 class NET_EXPORT_PRIVATE HpackHuffmanDecoder { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 HuffmanWord bits); | 58 HuffmanWord bits); |
59 | 59 |
60 // Converts a canonical symbol to the source symbol (the char in the original | 60 // Converts a canonical symbol to the source symbol (the char in the original |
61 // string that was encoded). | 61 // string that was encoded). |
62 static char CanonicalToSource(HuffmanWord canonical); | 62 static char CanonicalToSource(HuffmanWord canonical); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace net | 65 } // namespace net |
66 | 66 |
67 #endif // NET_SPDY_HPACK_HPACK_HUFFMAN_DECODER_H_ | 67 #endif // NET_SPDY_HPACK_HPACK_HUFFMAN_DECODER_H_ |
OLD | NEW |