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

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

Issue 2083373002: proto_zero_plugin [NOT FOR REVIEW]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: full_featured_will_split_into_smaller_CLs_for_review 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/proto_zero_plugin/proto_zero_generator.h
diff --git a/components/tracing/proto_zero_plugin/proto_zero_generator.h b/components/tracing/proto_zero_plugin/proto_zero_generator.h
new file mode 100644
index 0000000000000000000000000000000000000000..f213308a984454fbffa89e4357f69b3c5c3aa9b2
--- /dev/null
+++ b/components/tracing/proto_zero_plugin/proto_zero_generator.h
@@ -0,0 +1,28 @@
+// Copyright (c) 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_GENERATOR_H_
+#define COMPONENTS_TRACING_PROTO_ZERO_PLUGIN_GENERATOR_H_
+
+#include <string>
+
+#include "third_party/protobuf/src/google/protobuf/compiler/code_generator.h"
+
+namespace tracing {
+namespace proto {
+
+class Generator : public google::protobuf::compiler::CodeGenerator {
+ public:
+ explicit Generator();
+ ~Generator() override;
+
+ bool Generate(const google::protobuf::FileDescriptor* file,
+ const std::string& options,
+ google::protobuf::compiler::GeneratorContext* context,
+ std::string* error) const override;
+};
+
+} // namespace proto
+} // namespace tracing
+#endif // COMPONENTS_TRACING_PROTO_ZERO_PLUGIN_GENERATOR_H_

Powered by Google App Engine
This is Rietveld 408576698