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

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

Issue 2665283003: Improve memory estimate of SpdySessionPool in net/ MemoryDumpProvider. (Closed)
Patch Set: address bnc comments 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_DECODER3_H_ 5 #ifndef NET_SPDY_HPACK_HPACK_DECODER3_H_
6 #define NET_SPDY_HPACK_HPACK_DECODER3_H_ 6 #define NET_SPDY_HPACK_HPACK_DECODER3_H_
7 7
8 // HpackDecoder3 implements HpackDecoderInterface, using Http2HpackDecoder to 8 // HpackDecoder3 implements HpackDecoderInterface, using Http2HpackDecoder to
9 // decode HPACK blocks into HTTP/2 header lists as outlined in 9 // decode HPACK blocks into HTTP/2 header lists as outlined in
10 // http://tools.ietf.org/html/rfc7541. 10 // http://tools.ietf.org/html/rfc7541.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 SpdyHeadersHandlerInterface* handler) override; 43 SpdyHeadersHandlerInterface* handler) override;
44 bool HandleControlFrameHeadersData(const char* headers_data, 44 bool HandleControlFrameHeadersData(const char* headers_data,
45 size_t headers_data_length) override; 45 size_t headers_data_length) override;
46 bool HandleControlFrameHeadersComplete(size_t* compressed_len) override; 46 bool HandleControlFrameHeadersComplete(size_t* compressed_len) override;
47 const SpdyHeaderBlock& decoded_block() const override; 47 const SpdyHeaderBlock& decoded_block() const override;
48 void SetHeaderTableDebugVisitor( 48 void SetHeaderTableDebugVisitor(
49 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor) 49 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor)
50 override; 50 override;
51 void set_max_decode_buffer_size_bytes( 51 void set_max_decode_buffer_size_bytes(
52 size_t max_decode_buffer_size_bytes) override; 52 size_t max_decode_buffer_size_bytes) override;
53 size_t EstimateMemoryUsage() const override;
53 54
54 private: 55 private:
55 class NET_EXPORT_PRIVATE ListenerAdapter 56 class NET_EXPORT_PRIVATE ListenerAdapter
56 : public HpackDecoderListener, 57 : public HpackDecoderListener,
57 public HpackDecoderTablesDebugListener { 58 public HpackDecoderTablesDebugListener {
58 public: 59 public:
59 ListenerAdapter(); 60 ListenerAdapter();
60 ~ListenerAdapter() override; 61 ~ListenerAdapter() override;
61 62
62 // If a SpdyHeadersHandlerInterface is provided, the decoder will emit 63 // If a SpdyHeadersHandlerInterface is provided, the decoder will emit
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // moment because HandleControlFrameHeadersStart won't be called if a handler 119 // moment because HandleControlFrameHeadersStart won't be called if a handler
119 // is not being provided by the caller. 120 // is not being provided by the caller.
120 bool header_block_started_; 121 bool header_block_started_;
121 122
122 DISALLOW_COPY_AND_ASSIGN(HpackDecoder3); 123 DISALLOW_COPY_AND_ASSIGN(HpackDecoder3);
123 }; 124 };
124 125
125 } // namespace net 126 } // namespace net
126 127
127 #endif // NET_SPDY_HPACK_HPACK_DECODER3_H_ 128 #endif // NET_SPDY_HPACK_HPACK_DECODER3_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698