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_CORE_HPACK_HPACK_DECODER_H_ | 5 #ifndef NET_SPDY_CORE_HPACK_HPACK_DECODER_H_ |
6 #define NET_SPDY_CORE_HPACK_HPACK_DECODER_H_ | 6 #define NET_SPDY_CORE_HPACK_HPACK_DECODER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "net/base/net_export.h" | |
17 #include "net/spdy/core/hpack/hpack_decoder_interface.h" | 16 #include "net/spdy/core/hpack/hpack_decoder_interface.h" |
18 #include "net/spdy/core/hpack/hpack_header_table.h" | 17 #include "net/spdy/core/hpack/hpack_header_table.h" |
19 #include "net/spdy/core/hpack/hpack_input_stream.h" | 18 #include "net/spdy/core/hpack/hpack_input_stream.h" |
20 #include "net/spdy/core/spdy_headers_handler_interface.h" | 19 #include "net/spdy/core/spdy_headers_handler_interface.h" |
21 #include "net/spdy/core/spdy_protocol.h" | 20 #include "net/spdy/core/spdy_protocol.h" |
| 21 #include "net/spdy/platform/api/spdy_export.h" |
22 #include "net/spdy/platform/api/spdy_string.h" | 22 #include "net/spdy/platform/api/spdy_string.h" |
23 #include "net/spdy/platform/api/spdy_string_piece.h" | 23 #include "net/spdy/platform/api/spdy_string_piece.h" |
24 | 24 |
25 // An HpackDecoder decodes header sets as outlined in | 25 // An HpackDecoder decodes header sets as outlined in |
26 // http://tools.ietf.org/html/rfc7541. | 26 // http://tools.ietf.org/html/rfc7541. |
27 | 27 |
28 namespace net { | 28 namespace net { |
29 | 29 |
30 namespace test { | 30 namespace test { |
31 class HpackDecoderPeer; | 31 class HpackDecoderPeer; |
32 } // namespace test | 32 } // namespace test |
33 | 33 |
34 class NET_EXPORT_PRIVATE HpackDecoder : public HpackDecoderInterface { | 34 class SPDY_EXPORT_PRIVATE HpackDecoder : public HpackDecoderInterface { |
35 public: | 35 public: |
36 friend class test::HpackDecoderPeer; | 36 friend class test::HpackDecoderPeer; |
37 | 37 |
38 HpackDecoder(); | 38 HpackDecoder(); |
39 ~HpackDecoder() override; | 39 ~HpackDecoder() override; |
40 | 40 |
41 // Called upon sending a SETTINGS_HEADER_TABLE_SIZE value. | 41 // Called upon sending a SETTINGS_HEADER_TABLE_SIZE value. |
42 void ApplyHeaderTableSizeSetting(size_t size_setting) override; | 42 void ApplyHeaderTableSizeSetting(size_t size_setting) override; |
43 | 43 |
44 // If a SpdyHeadersHandlerInterface is provided, HpackDecoder will emit | 44 // If a SpdyHeadersHandlerInterface is provided, HpackDecoder will emit |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // Saved value of --chromium_http2_flag_add_hpack_incremental_decode. | 147 // Saved value of --chromium_http2_flag_add_hpack_incremental_decode. |
148 bool incremental_decode_; | 148 bool incremental_decode_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(HpackDecoder); | 150 DISALLOW_COPY_AND_ASSIGN(HpackDecoder); |
151 }; | 151 }; |
152 | 152 |
153 } // namespace net | 153 } // namespace net |
154 | 154 |
155 #endif // NET_SPDY_CORE_HPACK_HPACK_DECODER_H_ | 155 #endif // NET_SPDY_CORE_HPACK_HPACK_DECODER_H_ |
OLD | NEW |