Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1351)

Side by Side Diff: net/tools/balsa/noop_balsa_visitor.h

Issue 2477703002: Remove now unused Balsa code. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/tools/balsa/http_message_constants.cc ('k') | net/tools/balsa/simple_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
8
9 #ifndef NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_
10 #define NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_
11
12 #include <stddef.h>
13
14 #include "base/macros.h"
15 #include "net/tools/balsa/balsa_visitor_interface.h"
16
17 namespace net {
18
19 // See file comment above.
20 class NoOpBalsaVisitor : public BalsaVisitorInterface {
21 public:
22 NoOpBalsaVisitor() { }
23 ~NoOpBalsaVisitor() override {}
24
25 void ProcessBodyInput(const char* input, size_t size) override {}
26 void ProcessBodyData(const char* input, size_t size) override {}
27 void ProcessHeaderInput(const char* input, size_t size) override {}
28 void ProcessTrailerInput(const char* input, size_t size) override {}
29 void ProcessHeaders(const BalsaHeaders& headers) override {}
30
31 void ProcessRequestFirstLine(const char* line_input,
32 size_t line_length,
33 const char* method_input,
34 size_t method_length,
35 const char* request_uri_input,
36 size_t request_uri_length,
37 const char* version_input,
38 size_t version_length) override {}
39 void ProcessResponseFirstLine(const char* line_input,
40 size_t line_length,
41 const char* version_input,
42 size_t version_length,
43 const char* status_input,
44 size_t status_length,
45 const char* reason_input,
46 size_t reason_length) override {}
47 void ProcessChunkLength(size_t chunk_length) override {}
48 void ProcessChunkExtensions(const char* input, size_t size) override {}
49 void HeaderDone() override {}
50 void MessageDone() override {}
51 void HandleHeaderError(BalsaFrame* framer) override {}
52 void HandleHeaderWarning(BalsaFrame* framer) override {}
53 void HandleChunkingError(BalsaFrame* framer) override {}
54 void HandleBodyError(BalsaFrame* framer) override {}
55
56 private:
57 DISALLOW_COPY_AND_ASSIGN(NoOpBalsaVisitor);
58 };
59
60 } // namespace net
61
62 #endif // NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_
OLDNEW
« no previous file with comments | « net/tools/balsa/http_message_constants.cc ('k') | net/tools/balsa/simple_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698