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

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

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_decoder_adapter.h ('k') | no next file » | 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 #include "net/spdy/spdy_framer_decoder_adapter.h" 5 #include "net/spdy/spdy_framer_decoder_adapter.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/format_macros.h" 10 #include "base/format_macros.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 framer_.set_visitor(visitor_adapter_.get()); 211 framer_.set_visitor(visitor_adapter_.get());
212 } 212 }
213 213
214 // Passes the call on to the base adapter class and wrapped SpdyFramer. 214 // Passes the call on to the base adapter class and wrapped SpdyFramer.
215 void set_debug_visitor( 215 void set_debug_visitor(
216 SpdyFramerDebugVisitorInterface* debug_visitor) override { 216 SpdyFramerDebugVisitorInterface* debug_visitor) override {
217 SpdyFramerDecoderAdapter::set_debug_visitor(debug_visitor); 217 SpdyFramerDecoderAdapter::set_debug_visitor(debug_visitor);
218 framer_.set_debug_visitor(debug_visitor); 218 framer_.set_debug_visitor(debug_visitor);
219 } 219 }
220 220
221 // Passes the call on to the wrapped SpdyFramer.
222 void SetDecoderHeaderTableDebugVisitor(
223 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor)
224 override {
225 framer_.SetDecoderHeaderTableDebugVisitor(std::move(visitor));
226 }
227
221 // Passes the call on to the base adapter class and wrapped SpdyFramer. 228 // Passes the call on to the base adapter class and wrapped SpdyFramer.
222 void set_process_single_input_frame(bool v) override { 229 void set_process_single_input_frame(bool v) override {
223 SpdyFramerDecoderAdapter::set_process_single_input_frame(v); 230 SpdyFramerDecoderAdapter::set_process_single_input_frame(v);
224 framer_.set_process_single_input_frame(v); 231 framer_.set_process_single_input_frame(v);
225 } 232 }
226 233
227 size_t ProcessInput(const char* data, size_t len) override { 234 size_t ProcessInput(const char* data, size_t len) override {
228 DVLOG(2) << "ProcessInput(data, " << len << ")"; 235 DVLOG(2) << "ProcessInput(data, " << len << ")";
229 size_t result = framer_.ProcessInput(data, len); 236 size_t result = framer_.ProcessInput(data, len);
230 DVLOG(2) << "ProcessInput(data, " << len << ") returning " << result; 237 DVLOG(2) << "ProcessInput(data, " << len << ") returning " << result;
(...skipping 14 matching lines...) Expand all
245 SpdyFramer framer_; 252 SpdyFramer framer_;
246 SpdyFramer* const outer_; 253 SpdyFramer* const outer_;
247 std::unique_ptr<SpdyFramerVisitorAdapter> visitor_adapter_; 254 std::unique_ptr<SpdyFramerVisitorAdapter> visitor_adapter_;
248 }; 255 };
249 256
250 SpdyFramerDecoderAdapter* CreateNestedSpdyFramerDecoder(SpdyFramer* outer) { 257 SpdyFramerDecoderAdapter* CreateNestedSpdyFramerDecoder(SpdyFramer* outer) {
251 return new NestedSpdyFramerDecoder(outer); 258 return new NestedSpdyFramerDecoder(outer);
252 } 259 }
253 260
254 } // namespace net 261 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_framer_decoder_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698