Chromium Code Reviews| 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__ |