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

Side by Side Diff: third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.h

Issue 1983203003: Update third_party/protobuf to protobuf-v3.0.0-beta-3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error Created 4 years, 7 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
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved. 2 // Copyright 2008 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 class MessageGenerator { 61 class MessageGenerator {
62 public: 62 public:
63 // See generator.cc for the meaning of dllexport_decl. 63 // See generator.cc for the meaning of dllexport_decl.
64 MessageGenerator(const Descriptor* descriptor, const Options& options); 64 MessageGenerator(const Descriptor* descriptor, const Options& options);
65 ~MessageGenerator(); 65 ~MessageGenerator();
66 66
67 // Header stuff. 67 // Header stuff.
68 68
69 // Return names for foward declarations of this class and all its nested 69 // Return names for foward declarations of this class and all its nested
70 // types. 70 // types. A given key in {class,enum}_names will map from a class name to the
71 void FillMessageForwardDeclarations(set<string>* class_names); 71 // descriptor that was responsible for its inclusion in the map. This can be
72 void FillEnumForwardDeclarations(set<string>* enum_names); 72 // used to associate the descriptor with the code generated for it.
73 void FillMessageForwardDeclarations(
74 map<string, const Descriptor*>* class_names);
75 void FillEnumForwardDeclarations(
76 map<string, const EnumDescriptor*>* enum_names);
73 77
74 // Generate definitions of all nested enums (must come before class 78 // Generate definitions of all nested enums (must come before class
75 // definitions because those classes use the enums definitions). 79 // definitions because those classes use the enums definitions).
76 void GenerateEnumDefinitions(io::Printer* printer); 80 void GenerateEnumDefinitions(io::Printer* printer);
77 81
78 // Generate specializations of GetEnumDescriptor<MyEnum>(). 82 // Generate specializations of GetEnumDescriptor<MyEnum>().
79 // Precondition: in ::google::protobuf namespace. 83 // Precondition: in ::google::protobuf namespace.
80 void GenerateGetEnumDescriptorSpecializations(io::Printer* printer); 84 void GenerateGetEnumDescriptorSpecializations(io::Printer* printer);
81 85
82 // Generate definitions for this class and all its nested types. 86 // Generate definitions for this class and all its nested types.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 199
196 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(MessageGenerator); 200 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(MessageGenerator);
197 }; 201 };
198 202
199 } // namespace cpp 203 } // namespace cpp
200 } // namespace compiler 204 } // namespace compiler
201 } // namespace protobuf 205 } // namespace protobuf
202 206
203 } // namespace google 207 } // namespace google
204 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_MESSAGE_H__ 208 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_MESSAGE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698