Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: net/spdy/hpack/hpack_decoder_interface.h

Issue 2665283003: Improve memory estimate of SpdySessionPool in net/ MemoryDumpProvider. (Closed)
Patch Set: rebased Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/hpack/hpack_decoder3.cc ('k') | net/spdy/hpack/hpack_encoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/spdy/hpack/hpack_decoder3.cc ('k') | net/spdy/hpack/hpack_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698