| OLD | NEW |
| 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 <stddef.h> |
| 13 |
| 14 #include "base/macros.h" |
| 12 #include "net/tools/balsa/balsa_visitor_interface.h" | 15 #include "net/tools/balsa/balsa_visitor_interface.h" |
| 13 | 16 |
| 14 namespace net { | 17 namespace net { |
| 15 | 18 |
| 16 // See file comment above. | 19 // See file comment above. |
| 17 class NoOpBalsaVisitor : public BalsaVisitorInterface { | 20 class NoOpBalsaVisitor : public BalsaVisitorInterface { |
| 18 public: | 21 public: |
| 19 NoOpBalsaVisitor() { } | 22 NoOpBalsaVisitor() { } |
| 20 ~NoOpBalsaVisitor() override {} | 23 ~NoOpBalsaVisitor() override {} |
| 21 | 24 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 50 void HandleChunkingError(BalsaFrame* framer) override {} | 53 void HandleChunkingError(BalsaFrame* framer) override {} |
| 51 void HandleBodyError(BalsaFrame* framer) override {} | 54 void HandleBodyError(BalsaFrame* framer) override {} |
| 52 | 55 |
| 53 private: | 56 private: |
| 54 DISALLOW_COPY_AND_ASSIGN(NoOpBalsaVisitor); | 57 DISALLOW_COPY_AND_ASSIGN(NoOpBalsaVisitor); |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 } // namespace net | 60 } // namespace net |
| 58 | 61 |
| 59 #endif // NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_ | 62 #endif // NET_TOOLS_BALSA_NOOP_BALSA_VISITOR_H_ |
| OLD | NEW |