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

Unified Diff: components/tracing/tools/proto_zero_plugin/proto_zero_generator.h

Issue 2147613002: Skeleton for proto_zero_plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style and naming Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « components/tracing/tools/proto_zero_plugin/DEPS ('k') | components/tracing/tools/proto_zero_plugin/proto_zero_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698