QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 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 | |
QUICHE team | 5be974e | 2020-12-29 18:35:24 -0500 | [diff] [blame] | 5 | #include "spdy/core/spdy_no_op_visitor.h" |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 6 | |
| 7 | #include <type_traits> |
| 8 | |
| 9 | namespace spdy { |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 10 | |
| 11 | SpdyNoOpVisitor::SpdyNoOpVisitor() { |
| 12 | static_assert(std::is_abstract<SpdyNoOpVisitor>::value == false, |
| 13 | "Need to update SpdyNoOpVisitor."); |
| 14 | } |
| 15 | SpdyNoOpVisitor::~SpdyNoOpVisitor() = default; |
| 16 | |
| 17 | SpdyHeadersHandlerInterface* SpdyNoOpVisitor::OnHeaderFrameStart( |
danzh | 8f3a576 | 2019-06-25 13:43:51 -0700 | [diff] [blame] | 18 | SpdyStreamId /*stream_id*/) { |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 19 | return this; |
| 20 | } |
| 21 | |
danzh | 8f3a576 | 2019-06-25 13:43:51 -0700 | [diff] [blame] | 22 | bool SpdyNoOpVisitor::OnUnknownFrame(SpdyStreamId /*stream_id*/, |
| 23 | uint8_t /*frame_type*/) { |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 24 | return true; |
| 25 | } |
| 26 | |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 27 | } // namespace spdy |