OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #ifndef COMPONENTS_TRACING_PROTO_ZERO_PLUGIN_PROTO_ZERO_GENERATOR_H_ |
| 6 #define COMPONENTS_TRACING_PROTO_ZERO_PLUGIN_PROTO_ZERO_GENERATOR_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "third_party/protobuf/src/google/protobuf/compiler/code_generator.h" |
| 11 |
| 12 namespace tracing { |
| 13 namespace proto { |
| 14 |
| 15 class ProtoZeroGenerator : public google::protobuf::compiler::CodeGenerator { |
| 16 public: |
| 17 explicit ProtoZeroGenerator(); |
| 18 ~ProtoZeroGenerator() override; |
| 19 |
| 20 // CodeGenerator implementation |
| 21 bool Generate(const google::protobuf::FileDescriptor* file, |
| 22 const std::string& options, |
| 23 google::protobuf::compiler::GeneratorContext* context, |
| 24 std::string* error) const override; |
| 25 }; |
| 26 |
| 27 } // namesapce proto |
| 28 } // namespace tracing |
| 29 |
| 30 #endif // COMPONENTS_TRACING_PROTO_ZERO_PLUGIN_PROTO_ZERO_GENERATOR_H_ |
OLD | NEW |