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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FASTCPP_GENERATOR_H__
6 #define FASTCPP_GENERATOR_H__
7
8 #include <string>
9
10 #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
11
12 namespace google {
Primiano Tucci (use gerrit) 2016/07/05 11:30:18 Is it required to put this into the google::protob
13 namespace protobuf {
14 namespace compiler {
15 namespace fastcpp {
16
17 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
18 public:
19 Generator() {}
Primiano Tucci (use gerrit) 2016/07/05 11:30:18 Don't inline the ctor and dtor. See https://www.ch
20 ~Generator() override {}
21
22 bool Generate(const FileDescriptor* file,
Primiano Tucci (use gerrit) 2016/07/05 11:30:18 Add a // CodeGenerator implementation. It's the
23 const string& parameter,
24 GeneratorContext* context,
25 string* error) const override;
26 };
Primiano Tucci (use gerrit) 2016/07/05 11:30:18 DISALLOW_COPY_AND_ASSIGN
27
28 } // namespace fastcpp
29 } // namespace compiler
30 } // namespace protobuf
31 } // namespace google
32 #endif // FASTCPP_GENERATOR_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698