Index: components/tracing/tools/proto_zero_plugin/proto_zero_generator.h |
diff --git a/components/tracing/tools/proto_zero_plugin/proto_zero_generator.h b/components/tracing/tools/proto_zero_plugin/proto_zero_generator.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6bdaf1e4f01033ef3b634258d330bcd1aa8da95a |
--- /dev/null |
+++ b/components/tracing/tools/proto_zero_plugin/proto_zero_generator.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_TRACING_PROTO_ZERO_PLUGIN_PROTO_ZERO_GENERATOR_H_ |
+#define COMPONENTS_TRACING_PROTO_ZERO_PLUGIN_PROTO_ZERO_GENERATOR_H_ |
+ |
+#include <string> |
+ |
+#include "third_party/protobuf/src/google/protobuf/compiler/code_generator.h" |
+ |
+namespace tracing { |
+namespace proto { |
+ |
+class ProtoZeroGenerator : public google::protobuf::compiler::CodeGenerator { |
+ public: |
+ explicit ProtoZeroGenerator(); |
+ ~ProtoZeroGenerator() override; |
+ |
+ // CodeGenerator implementation |
+ bool Generate(const google::protobuf::FileDescriptor* file, |
+ const std::string& options, |
+ google::protobuf::compiler::GeneratorContext* context, |
+ std::string* error) const override; |
+}; |
+ |
+} // namesapce proto |
+} // namespace tracing |
+ |
+#endif // COMPONENTS_TRACING_PROTO_ZERO_PLUGIN_PROTO_ZERO_GENERATOR_H_ |