Index: third_party/protobuf/src/google/protobuf/compiler/java/java_shared_code_generator.h |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/java/java_shared_code_generator.h b/third_party/protobuf/src/google/protobuf/compiler/java/java_shared_code_generator.h |
index 3b573c075858a34e6b12ebe84f29c1f0e5cfd6fc..c8ead47a7aa0b5f944d50c1086018b5ca4da73e2 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/java/java_shared_code_generator.h |
+++ b/third_party/protobuf/src/google/protobuf/compiler/java/java_shared_code_generator.h |
@@ -43,6 +43,7 @@ |
#include <vector> |
#include <google/protobuf/stubs/common.h> |
+#include <google/protobuf/compiler/java/java_options.h> |
namespace google { |
namespace protobuf { |
@@ -66,15 +67,12 @@ namespace java { |
// and mutable API. Currently only descriptors are shared. |
class SharedCodeGenerator { |
public: |
- explicit SharedCodeGenerator(const FileDescriptor* file); |
+ SharedCodeGenerator(const FileDescriptor* file, const Options& options); |
~SharedCodeGenerator(); |
void Generate(GeneratorContext* generator_context, |
- vector<string>* file_list); |
- |
- void SetEnforceLite(bool value) { |
- enforce_lite_ = value; |
- } |
+ std::vector<string>* file_list, |
+ std::vector<string>* annotation_file_list); |
void GenerateDescriptors(io::Printer* printer); |
@@ -85,8 +83,8 @@ class SharedCodeGenerator { |
bool ShouldIncludeDependency(const FileDescriptor* descriptor); |
google::protobuf::scoped_ptr<ClassNameResolver> name_resolver_; |
- bool enforce_lite_; |
const FileDescriptor* file_; |
+ const Options options_; |
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(SharedCodeGenerator); |
}; |