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_DECODER_INTERFACE_H_ | 5 #ifndef NET_SPDY_HPACK_HPACK_DECODER_INTERFACE_H_ |
6 #define NET_SPDY_HPACK_HPACK_DECODER_INTERFACE_H_ | 6 #define NET_SPDY_HPACK_HPACK_DECODER_INTERFACE_H_ |
7 | 7 |
8 // HpackDecoderInterface is the base class for HPACK block decoders. | 8 // HpackDecoderInterface is the base class for HPACK block decoders. |
9 // HPACK is defined in http://tools.ietf.org/html/rfc7541 | 9 // HPACK is defined in http://tools.ietf.org/html/rfc7541 |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // Accessor for the most recently decoded headers block. Valid until the next | 50 // Accessor for the most recently decoded headers block. Valid until the next |
51 // call to HandleControlFrameHeadersData(). | 51 // call to HandleControlFrameHeadersData(). |
52 // TODO(birenroy): Remove this method when all users of HpackDecoder specify | 52 // TODO(birenroy): Remove this method when all users of HpackDecoder specify |
53 // a SpdyHeadersHandlerInterface. | 53 // a SpdyHeadersHandlerInterface. |
54 virtual const SpdyHeaderBlock& decoded_block() const = 0; | 54 virtual const SpdyHeaderBlock& decoded_block() const = 0; |
55 | 55 |
56 virtual void SetHeaderTableDebugVisitor( | 56 virtual void SetHeaderTableDebugVisitor( |
57 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor) = 0; | 57 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor) = 0; |
58 | 58 |
59 // How much encoded data this decoder is willing to buffer. | 59 // Set how much encoded data this decoder is willing to buffer. |
60 virtual void set_max_decode_buffer_size_bytes( | 60 virtual void set_max_decode_buffer_size_bytes( |
61 size_t max_decode_buffer_size_bytes) = 0; | 61 size_t max_decode_buffer_size_bytes) = 0; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace net | 64 } // namespace net |
65 | 65 |
66 #endif // NET_SPDY_HPACK_HPACK_DECODER_INTERFACE_H_ | 66 #endif // NET_SPDY_HPACK_HPACK_DECODER_INTERFACE_H_ |
OLD | NEW |