| Index: third_party/protobuf/src/google/protobuf/compiler/java/java_file.h
|
| diff --git a/third_party/protobuf/src/google/protobuf/compiler/java/java_file.h b/third_party/protobuf/src/google/protobuf/compiler/java/java_file.h
|
| index e95aef0912d569a35b9f4df9d3c376a7abcf8453..7dbeb94eaf0cb1e0384c80b802561d76e597d6d0 100644
|
| --- a/third_party/protobuf/src/google/protobuf/compiler/java/java_file.h
|
| +++ b/third_party/protobuf/src/google/protobuf/compiler/java/java_file.h
|
| @@ -42,7 +42,6 @@
|
| #include <string>
|
| #include <vector>
|
| #include <google/protobuf/stubs/common.h>
|
| -#include <google/protobuf/compiler/java/java_options.h>
|
|
|
| namespace google {
|
| namespace protobuf {
|
| @@ -68,8 +67,8 @@ namespace java {
|
|
|
| class FileGenerator {
|
| public:
|
| - FileGenerator(const FileDescriptor* file, const Options& options,
|
| - bool immutable_api = true);
|
| + FileGenerator(const FileDescriptor* file, bool immutable_api = true,
|
| + bool enforce_lite = false);
|
| ~FileGenerator();
|
|
|
| // Checks for problems that would otherwise lead to cryptic compile errors.
|
| @@ -84,12 +83,12 @@ class FileGenerator {
|
| // service type).
|
| void GenerateSiblings(const string& package_dir,
|
| GeneratorContext* generator_context,
|
| - std::vector<string>* file_list,
|
| - std::vector<string>* annotation_list);
|
| + vector<string>* file_list);
|
|
|
| const string& java_package() { return java_package_; }
|
| const string& classname() { return classname_; }
|
|
|
| +
|
| private:
|
| void GenerateDescriptorInitializationCodeForImmutable(io::Printer* printer);
|
| void GenerateDescriptorInitializationCodeForMutable(io::Printer* printer);
|
| @@ -106,9 +105,9 @@ class FileGenerator {
|
| google::protobuf::scoped_ptr<GeneratorFactory> generator_factory_;
|
| google::protobuf::scoped_ptr<Context> context_;
|
| ClassNameResolver* name_resolver_;
|
| - const Options options_;
|
| bool immutable_api_;
|
|
|
| +
|
| GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(FileGenerator);
|
| };
|
|
|
|
|