Revert of Re-enable memory.idle_multi_tab without the failing gmail page. (patchset...
[chromium-blink-merge.git] / net / tools / balsa / noop_balsa_visitor.h
blob89e9719466404dee39a636ebfbdc5e10dcabb6d5
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.
4 //
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"
14 namespace net {
16 // See file comment above.
17 class NoOpBalsaVisitor : public BalsaVisitorInterface {
18 public:
19 NoOpBalsaVisitor() { }
20 ~NoOpBalsaVisitor() override {}
22 void ProcessBodyInput(const char* input, size_t size) override {}
23 void ProcessBodyData(const char* input, size_t size) override {}
24 void ProcessHeaderInput(const char* input, size_t size) override {}
25 void ProcessTrailerInput(const char* input, size_t size) override {}
26 void ProcessHeaders(const BalsaHeaders& headers) override {}
28 void ProcessRequestFirstLine(const char* line_input,
29 size_t line_length,
30 const char* method_input,
31 size_t method_length,
32 const char* request_uri_input,
33 size_t request_uri_length,
34 const char* version_input,
35 size_t version_length) override {}
36 void ProcessResponseFirstLine(const char* line_input,
37 size_t line_length,
38 const char* version_input,
39 size_t version_length,
40 const char* status_input,
41 size_t status_length,
42 const char* reason_input,
43 size_t reason_length) override {}
44 void ProcessChunkLength(size_t chunk_length) override {}
45 void ProcessChunkExtensions(const char* input, size_t size) override {}
46 void HeaderDone() override {}
47 void MessageDone() override {}
48 void HandleHeaderError(BalsaFrame* framer) override {}
49 void HandleHeaderWarning(BalsaFrame* framer) override {}
50 void HandleChunkingError(BalsaFrame* framer) override {}
51 void HandleBodyError(BalsaFrame* framer) override {}
53 private:
54 DISALLOW_COPY_AND_ASSIGN(NoOpBalsaVisitor);
57 } // namespace net
59 #endif // NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_