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

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: refactoring Created 4 years, 6 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..832a3066303d7d8e1b6369c855f3ab487887f91e
--- /dev/null
+++ b/components/tracing/proto_zero_plugin/proto_zero_generator.h
@@ -0,0 +1,32 @@
+// 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 FASTCPP_GENERATOR_H__
+#define FASTCPP_GENERATOR_H__
+
+#include <string>
+
+#include <google/protobuf/compiler/code_generator.h>
Primiano Tucci (use gerrit) 2016/07/05 11:30:18 Can you make this an absolute include? i.e. #inclu
+
+namespace google {
Primiano Tucci (use gerrit) 2016/07/05 11:30:18 Is it required to put this into the google::protob
+namespace protobuf {
+namespace compiler {
+namespace fastcpp {
+
+class LIBPROTOC_EXPORT Generator : public CodeGenerator {
Primiano Tucci (use gerrit) 2016/07/05 11:30:18 not sure this needs to be _EXPORTed. This seems t
+ public:
+ Generator() {}
Primiano Tucci (use gerrit) 2016/07/05 11:30:18 Don't inline the ctor and dtor. See https://www.ch
+ ~Generator() override {}
+
+ bool Generate(const FileDescriptor* file,
Primiano Tucci (use gerrit) 2016/07/05 11:30:18 Add a // CodeGenerator implementation. It's the
+ const string& parameter,
+ GeneratorContext* context,
+ string* error) const override;
+};
Primiano Tucci (use gerrit) 2016/07/05 11:30:18 DISALLOW_COPY_AND_ASSIGN
+
+} // namespace fastcpp
+} // namespace compiler
+} // namespace protobuf
+} // namespace google
+#endif // FASTCPP_GENERATOR_H__

Powered by Google App Engine
This is Rietveld 408576698