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

Side by Side Diff: third_party/protobuf/src/google/protobuf/compiler/java/java_enum_field_lite.h

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void GenerateSerializationCode(io::Printer* printer) const; 74 void GenerateSerializationCode(io::Printer* printer) const;
75 void GenerateSerializedSizeCode(io::Printer* printer) const; 75 void GenerateSerializedSizeCode(io::Printer* printer) const;
76 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; 76 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const;
77 void GenerateEqualsCode(io::Printer* printer) const; 77 void GenerateEqualsCode(io::Printer* printer) const;
78 void GenerateHashCode(io::Printer* printer) const; 78 void GenerateHashCode(io::Printer* printer) const;
79 79
80 string GetBoxedType() const; 80 string GetBoxedType() const;
81 81
82 protected: 82 protected:
83 const FieldDescriptor* descriptor_; 83 const FieldDescriptor* descriptor_;
84 map<string, string> variables_; 84 std::map<string, string> variables_;
85 const int messageBitIndex_; 85 const int messageBitIndex_;
86 const int builderBitIndex_; 86 const int builderBitIndex_;
87 Context* context_; 87 Context* context_;
88 ClassNameResolver* name_resolver_; 88 ClassNameResolver* name_resolver_;
89 89
90 private: 90 private:
91 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableEnumFieldLiteGenerator); 91 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableEnumFieldLiteGenerator);
92 }; 92 };
93 93
94 class ImmutableEnumOneofFieldLiteGenerator 94 class ImmutableEnumOneofFieldLiteGenerator
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void GenerateSerializationCode(io::Printer* printer) const; 135 void GenerateSerializationCode(io::Printer* printer) const;
136 void GenerateSerializedSizeCode(io::Printer* printer) const; 136 void GenerateSerializedSizeCode(io::Printer* printer) const;
137 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; 137 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const;
138 void GenerateEqualsCode(io::Printer* printer) const; 138 void GenerateEqualsCode(io::Printer* printer) const;
139 void GenerateHashCode(io::Printer* printer) const; 139 void GenerateHashCode(io::Printer* printer) const;
140 140
141 string GetBoxedType() const; 141 string GetBoxedType() const;
142 142
143 private: 143 private:
144 const FieldDescriptor* descriptor_; 144 const FieldDescriptor* descriptor_;
145 map<string, string> variables_; 145 std::map<string, string> variables_;
146 const int messageBitIndex_; 146 const int messageBitIndex_;
147 const int builderBitIndex_; 147 const int builderBitIndex_;
148 Context* context_; 148 Context* context_;
149 ClassNameResolver* name_resolver_; 149 ClassNameResolver* name_resolver_;
150 150
151 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedImmutableEnumFieldLiteGenerator); 151 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedImmutableEnumFieldLiteGenerator);
152 }; 152 };
153 153
154 } // namespace java 154 } // namespace java
155 } // namespace compiler 155 } // namespace compiler
156 } // namespace protobuf 156 } // namespace protobuf
157 157
158 } // namespace google 158 } // namespace google
159 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_ENUM_FIELD_LITE_H__ 159 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_ENUM_FIELD_LITE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698