| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor) = 0; | 59 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor) = 0; |
| 60 | 60 |
| 61 // Set how much encoded data this decoder is willing to buffer. | 61 // Set how much encoded data this decoder is willing to buffer. |
| 62 // TODO(jamessynge): Resolve definition of this value, as it is currently | 62 // TODO(jamessynge): Resolve definition of this value, as it is currently |
| 63 // too tied to a single implementation. We probably want to limit one or more | 63 // too tied to a single implementation. We probably want to limit one or more |
| 64 // of these: individual name or value strings, header entries, the entire | 64 // of these: individual name or value strings, header entries, the entire |
| 65 // header list, or the HPACK block; we probably shouldn't care about the size | 65 // header list, or the HPACK block; we probably shouldn't care about the size |
| 66 // of individual transport buffers. | 66 // of individual transport buffers. |
| 67 virtual void set_max_decode_buffer_size_bytes( | 67 virtual void set_max_decode_buffer_size_bytes( |
| 68 size_t max_decode_buffer_size_bytes) = 0; | 68 size_t max_decode_buffer_size_bytes) = 0; |
| 69 |
| 70 // Returns the estimate of dynamically allocated memory in bytes. |
| 71 virtual size_t EstimateMemoryUsage() const = 0; |
| 69 }; | 72 }; |
| 70 | 73 |
| 71 } // namespace net | 74 } // namespace net |
| 72 | 75 |
| 73 #endif // NET_SPDY_HPACK_HPACK_DECODER_INTERFACE_H_ | 76 #endif // NET_SPDY_HPACK_HPACK_DECODER_INTERFACE_H_ |
| OLD | NEW |