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

Side by Side Diff: third_party/protobuf/src/google/protobuf/compiler/java/java_message.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 protected: 86 protected:
87 const Descriptor* descriptor_; 87 const Descriptor* descriptor_;
88 88
89 private: 89 private:
90 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(MessageGenerator); 90 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(MessageGenerator);
91 }; 91 };
92 92
93 class ImmutableMessageGenerator : public MessageGenerator { 93 class ImmutableMessageGenerator : public MessageGenerator {
94 public: 94 public:
95 explicit ImmutableMessageGenerator(const Descriptor* descriptor, 95 ImmutableMessageGenerator(const Descriptor* descriptor, Context* context);
96 Context* context);
97 virtual ~ImmutableMessageGenerator(); 96 virtual ~ImmutableMessageGenerator();
98 97
99 virtual void Generate(io::Printer* printer); 98 virtual void Generate(io::Printer* printer);
100 virtual void GenerateInterface(io::Printer* printer); 99 virtual void GenerateInterface(io::Printer* printer);
101 virtual void GenerateExtensionRegistrationCode(io::Printer* printer); 100 virtual void GenerateExtensionRegistrationCode(io::Printer* printer);
102 virtual void GenerateStaticVariables( 101 virtual void GenerateStaticVariables(
103 io::Printer* printer, int* bytecode_estimate); 102 io::Printer* printer, int* bytecode_estimate);
104 103
105 // Returns an estimate of the number of bytes the printed code will compile to 104 // Returns an estimate of the number of bytes the printed code will compile to
106 virtual int GenerateStaticVariableInitializers(io::Printer* printer); 105 virtual int GenerateStaticVariableInitializers(io::Printer* printer);
(...skipping 27 matching lines...) Expand all
134 133
135 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableMessageGenerator); 134 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableMessageGenerator);
136 }; 135 };
137 136
138 } // namespace java 137 } // namespace java
139 } // namespace compiler 138 } // namespace compiler
140 } // namespace protobuf 139 } // namespace protobuf
141 140
142 } // namespace google 141 } // namespace google
143 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_MESSAGE_H__ 142 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_MESSAGE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698