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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 years, 2 months 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/balsa_headers_test.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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 // Provides empty BalsaVisitorInterface overrides for convenience. 5 // Provides empty BalsaVisitorInterface overrides for convenience.
6 // Intended to be used as a base class for BalsaVisitorInterface subclasses that 6 // Intended to be used as a base class for BalsaVisitorInterface subclasses that
7 // only need to override a small number of methods. 7 // only need to override a small number of methods.
8 8
9 #ifndef NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_ 9 #ifndef NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_
10 #define NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_ 10 #define NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_
11 11
12 #include "net/tools/balsa/balsa_visitor_interface.h" 12 #include "net/tools/balsa/balsa_visitor_interface.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 // See file comment above. 16 // See file comment above.
17 class NoOpBalsaVisitor : public BalsaVisitorInterface { 17 class NoOpBalsaVisitor : public BalsaVisitorInterface {
18 public: 18 public:
19 NoOpBalsaVisitor() { } 19 NoOpBalsaVisitor() { }
20 virtual ~NoOpBalsaVisitor() { } 20 virtual ~NoOpBalsaVisitor() { }
21 21
22 virtual void ProcessBodyInput(const char* input, size_t size) OVERRIDE { } 22 virtual void ProcessBodyInput(const char* input, size_t size) override { }
23 virtual void ProcessBodyData(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 { } 24 virtual void ProcessHeaderInput(const char* input, size_t size) override { }
25 virtual void ProcessTrailerInput(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 { } 26 virtual void ProcessHeaders(const BalsaHeaders& headers) override { }
27 27
28 virtual void ProcessRequestFirstLine(const char* line_input, 28 virtual void ProcessRequestFirstLine(const char* line_input,
29 size_t line_length, 29 size_t line_length,
30 const char* method_input, 30 const char* method_input,
31 size_t method_length, 31 size_t method_length,
32 const char* request_uri_input, 32 const char* request_uri_input,
33 size_t request_uri_length, 33 size_t request_uri_length,
34 const char* version_input, 34 const char* version_input,
35 size_t version_length) OVERRIDE { } 35 size_t version_length) override { }
36 virtual void ProcessResponseFirstLine(const char* line_input, 36 virtual void ProcessResponseFirstLine(const char* line_input,
37 size_t line_length, 37 size_t line_length,
38 const char* version_input, 38 const char* version_input,
39 size_t version_length, 39 size_t version_length,
40 const char* status_input, 40 const char* status_input,
41 size_t status_length, 41 size_t status_length,
42 const char* reason_input, 42 const char* reason_input,
43 size_t reason_length) OVERRIDE { } 43 size_t reason_length) override { }
44 virtual void ProcessChunkLength(size_t chunk_length) OVERRIDE { } 44 virtual void ProcessChunkLength(size_t chunk_length) override { }
45 virtual void ProcessChunkExtensions(const char* input, size_t size) OVERRIDE { 45 virtual void ProcessChunkExtensions(const char* input, size_t size) override {
46 } 46 }
47 virtual void HeaderDone() OVERRIDE { } 47 virtual void HeaderDone() override { }
48 virtual void MessageDone() OVERRIDE { } 48 virtual void MessageDone() override { }
49 virtual void HandleHeaderError(BalsaFrame* framer) OVERRIDE { } 49 virtual void HandleHeaderError(BalsaFrame* framer) override { }
50 virtual void HandleHeaderWarning(BalsaFrame* framer) OVERRIDE { } 50 virtual void HandleHeaderWarning(BalsaFrame* framer) override { }
51 virtual void HandleChunkingError(BalsaFrame* framer) OVERRIDE { } 51 virtual void HandleChunkingError(BalsaFrame* framer) override { }
52 virtual void HandleBodyError(BalsaFrame* framer) OVERRIDE { } 52 virtual void HandleBodyError(BalsaFrame* framer) override { }
53 53
54 private: 54 private:
55 DISALLOW_COPY_AND_ASSIGN(NoOpBalsaVisitor); 55 DISALLOW_COPY_AND_ASSIGN(NoOpBalsaVisitor);
56 }; 56 };
57 57
58 } // namespace net 58 } // namespace net
59 59
60 #endif // NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_ 60 #endif // NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_
OLDNEW
« no previous file with comments | « net/tools/balsa/balsa_headers_test.cc ('k') | net/tools/balsa/simple_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698