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

Side by Side Diff: net/spdy/spdy_framer_decoder_adapter.h

Issue 2130193002: Propagate SetDecoderHeaderTableDebugVisitor to the nested SpdyFramerDecoderAdapter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/spdy_framer.cc ('k') | net/spdy/spdy_framer_decoder_adapter.cc » ('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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_SPDY_FRAMER_DECODER_ADAPTER_H_ 5 #ifndef NET_SPDY_SPDY_FRAMER_DECODER_ADAPTER_H_
6 #define NET_SPDY_SPDY_FRAMER_DECODER_ADAPTER_H_ 6 #define NET_SPDY_SPDY_FRAMER_DECODER_ADAPTER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // Set debug callbacks to be called from the framer. The debug visitor is 31 // Set debug callbacks to be called from the framer. The debug visitor is
32 // completely optional and need not be set in order for normal operation. 32 // completely optional and need not be set in order for normal operation.
33 // If this is called multiple times, only the last visitor will be used. 33 // If this is called multiple times, only the last visitor will be used.
34 virtual void set_debug_visitor( 34 virtual void set_debug_visitor(
35 SpdyFramerDebugVisitorInterface* debug_visitor); 35 SpdyFramerDebugVisitorInterface* debug_visitor);
36 SpdyFramerDebugVisitorInterface* debug_visitor() const { 36 SpdyFramerDebugVisitorInterface* debug_visitor() const {
37 return debug_visitor_; 37 return debug_visitor_;
38 } 38 }
39 39
40 // Set debug callbacks to be called from the HPACK decoder.
41 virtual void SetDecoderHeaderTableDebugVisitor(
42 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor) = 0;
43
40 // Sets whether or not ProcessInput returns after finishing a frame, or 44 // Sets whether or not ProcessInput returns after finishing a frame, or
41 // continues processing additional frames. Normally ProcessInput processes 45 // continues processing additional frames. Normally ProcessInput processes
42 // all input, but this method enables the caller (and visitor) to work with 46 // all input, but this method enables the caller (and visitor) to work with
43 // a single frame at a time (or that portion of the frame which is provided 47 // a single frame at a time (or that portion of the frame which is provided
44 // as input). Reset() does not change the value of this flag. 48 // as input). Reset() does not change the value of this flag.
45 virtual void set_process_single_input_frame(bool v); 49 virtual void set_process_single_input_frame(bool v);
46 bool process_single_input_frame() const { 50 bool process_single_input_frame() const {
47 return process_single_input_frame_; 51 return process_single_input_frame_;
48 } 52 }
49 53
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 SpdyFramer* framer() const { return framer_; } 151 SpdyFramer* framer() const { return framer_; }
148 152
149 private: 153 private:
150 SpdyFramerVisitorInterface* const visitor_; 154 SpdyFramerVisitorInterface* const visitor_;
151 SpdyFramer* const framer_; 155 SpdyFramer* const framer_;
152 }; 156 };
153 157
154 } // namespace net 158 } // namespace net
155 159
156 #endif // NET_SPDY_SPDY_FRAMER_DECODER_ADAPTER_H_ 160 #endif // NET_SPDY_SPDY_FRAMER_DECODER_ADAPTER_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | net/spdy/spdy_framer_decoder_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698