xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/spdy/core/spdy_no_op_visitor.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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
3 // found in the LICENSE file.
4 
5 #include "quiche/spdy/core/spdy_no_op_visitor.h"
6 
7 #include <cstdint>
8 #include <type_traits>
9 
10 #include "quiche/spdy/core/spdy_headers_handler_interface.h"
11 #include "quiche/spdy/core/spdy_protocol.h"
12 
13 namespace spdy {
14 
SpdyNoOpVisitor()15 SpdyNoOpVisitor::SpdyNoOpVisitor() {
16   static_assert(std::is_abstract<SpdyNoOpVisitor>::value == false,
17                 "Need to update SpdyNoOpVisitor.");
18 }
19 SpdyNoOpVisitor::~SpdyNoOpVisitor() = default;
20 
OnHeaderFrameStart(SpdyStreamId)21 SpdyHeadersHandlerInterface* SpdyNoOpVisitor::OnHeaderFrameStart(
22     SpdyStreamId /*stream_id*/) {
23   return this;
24 }
25 
OnUnknownFrame(SpdyStreamId,uint8_t)26 bool SpdyNoOpVisitor::OnUnknownFrame(SpdyStreamId /*stream_id*/,
27                                      uint8_t /*frame_type*/) {
28   return true;
29 }
30 
31 }  // namespace spdy
32