| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 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_GENERATOR_H_ |
| 6 #define COMPONENTS_TRACING_PROTO_ZERO_PLUGIN_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 Generator : public google::protobuf::compiler::CodeGenerator { |
| 16 public: |
| 17 explicit Generator(); |
| 18 ~Generator() override; |
| 19 |
| 20 bool Generate(const google::protobuf::FileDescriptor* file, |
| 21 const std::string& options, |
| 22 google::protobuf::compiler::GeneratorContext* context, |
| 23 std::string* error) const override; |
| 24 }; |
| 25 |
| 26 } // namespace proto |
| 27 } // namespace tracing |
| 28 #endif // COMPONENTS_TRACING_PROTO_ZERO_PLUGIN_GENERATOR_H_ |
| OLD | NEW |