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

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

Issue 2438163002: Remove SpdyFramerVisitorInterface::OnControlFrameHeaderData(). (Closed)
Patch Set: rebase Created 4 years, 2 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_no_op_visitor.h ('k') | net/tools/quic/quic_simple_server_stream.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 (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_no_op_visitor.h" 5 #include "net/spdy/spdy_no_op_visitor.h"
6 6
7 #include <type_traits> 7 #include <type_traits>
8 8
9 namespace net { 9 namespace net {
10 namespace test { 10 namespace test {
11 11
12 SpdyNoOpVisitor::SpdyNoOpVisitor() { 12 SpdyNoOpVisitor::SpdyNoOpVisitor() {
13 static_assert(std::is_abstract<SpdyNoOpVisitor>::value == false, 13 static_assert(std::is_abstract<SpdyNoOpVisitor>::value == false,
14 "Need to update SpdyNoOpVisitor."); 14 "Need to update SpdyNoOpVisitor.");
15 } 15 }
16 SpdyNoOpVisitor::~SpdyNoOpVisitor() {} 16 SpdyNoOpVisitor::~SpdyNoOpVisitor() {}
17 17
18 net::SpdyHeadersHandlerInterface* SpdyNoOpVisitor::OnHeaderFrameStart( 18 net::SpdyHeadersHandlerInterface* SpdyNoOpVisitor::OnHeaderFrameStart(
19 SpdyStreamId stream_id) { 19 SpdyStreamId stream_id) {
20 return this; 20 return this;
21 } 21 }
22 22
23 bool SpdyNoOpVisitor::OnControlFrameHeaderData(SpdyStreamId stream_id,
24 const char* header_data,
25 size_t header_data_len) {
26 return true;
27 }
28
29 bool SpdyNoOpVisitor::OnUnknownFrame(SpdyStreamId stream_id, int frame_type) { 23 bool SpdyNoOpVisitor::OnUnknownFrame(SpdyStreamId stream_id, int frame_type) {
30 return true; 24 return true;
31 } 25 }
32 26
33 } // namespace test 27 } // namespace test
34 } // namespace net 28 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_no_op_visitor.h ('k') | net/tools/quic/quic_simple_server_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698