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()15SpdyNoOpVisitor::SpdyNoOpVisitor() { 16 static_assert(std::is_abstract<SpdyNoOpVisitor>::value == false, 17 "Need to update SpdyNoOpVisitor."); 18 } 19 SpdyNoOpVisitor::~SpdyNoOpVisitor() = default; 20 OnHeaderFrameStart(SpdyStreamId)21SpdyHeadersHandlerInterface* SpdyNoOpVisitor::OnHeaderFrameStart( 22 SpdyStreamId /*stream_id*/) { 23 return this; 24 } 25 OnUnknownFrame(SpdyStreamId,uint8_t)26bool SpdyNoOpVisitor::OnUnknownFrame(SpdyStreamId /*stream_id*/, 27 uint8_t /*frame_type*/) { 28 return true; 29 } 30 31 } // namespace spdy 32