1 // Copyright 2013 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.
5 // Provides empty BalsaVisitorInterface overrides for convenience.
6 // Intended to be used as a base class for BalsaVisitorInterface subclasses that
7 // only need to override a small number of methods.
9 #ifndef NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_
10 #define NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_
12 #include "net/tools/balsa/balsa_visitor_interface.h"
16 // See file comment above.
17 class NoOpBalsaVisitor
: public BalsaVisitorInterface
{
19 NoOpBalsaVisitor() { }
20 virtual ~NoOpBalsaVisitor() { }
22 virtual void ProcessBodyInput(const char* input
, size_t size
) OVERRIDE
{ }
23 virtual void ProcessBodyData(const char* input
, size_t size
) OVERRIDE
{ }
24 virtual void ProcessHeaderInput(const char* input
, size_t size
) OVERRIDE
{ }
25 virtual void ProcessTrailerInput(const char* input
, size_t size
) OVERRIDE
{ }
26 virtual void ProcessHeaders(const BalsaHeaders
& headers
) OVERRIDE
{ }
28 virtual void ProcessRequestFirstLine(const char* line_input
,
30 const char* method_input
,
32 const char* request_uri_input
,
33 size_t request_uri_length
,
34 const char* version_input
,
35 size_t version_length
) OVERRIDE
{ }
36 virtual void ProcessResponseFirstLine(const char* line_input
,
38 const char* version_input
,
39 size_t version_length
,
40 const char* status_input
,
42 const char* reason_input
,
43 size_t reason_length
) OVERRIDE
{ }
44 virtual void ProcessChunkLength(size_t chunk_length
) OVERRIDE
{ }
45 virtual void ProcessChunkExtensions(const char* input
, size_t size
) OVERRIDE
{
47 virtual void HeaderDone() OVERRIDE
{ }
48 virtual void MessageDone() OVERRIDE
{ }
49 virtual void HandleHeaderError(BalsaFrame
* framer
) OVERRIDE
{ }
50 virtual void HandleHeaderWarning(BalsaFrame
* framer
) OVERRIDE
{ }
51 virtual void HandleChunkingError(BalsaFrame
* framer
) OVERRIDE
{ }
52 virtual void HandleBodyError(BalsaFrame
* framer
) OVERRIDE
{ }
55 DISALLOW_COPY_AND_ASSIGN(NoOpBalsaVisitor
);
60 #endif // NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_