OLD | NEW |
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/core/spdy_no_op_visitor.h" | 5 #include "net/spdy/core/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 SpdyHeadersHandlerInterface* SpdyNoOpVisitor::OnHeaderFrameStart( |
19 SpdyStreamId stream_id) { | 19 SpdyStreamId stream_id) { |
20 return this; | 20 return this; |
21 } | 21 } |
22 | 22 |
23 bool SpdyNoOpVisitor::OnUnknownFrame(SpdyStreamId stream_id, | 23 bool SpdyNoOpVisitor::OnUnknownFrame(SpdyStreamId stream_id, |
24 uint8_t frame_type) { | 24 uint8_t frame_type) { |
25 return true; | 25 return true; |
26 } | 26 } |
27 | 27 |
28 } // namespace test | 28 } // namespace test |
29 } // namespace net | 29 } // namespace net |
OLD | NEW |