| Index: third_party/protobuf/src/google/protobuf/compiler/java/java_enum.h
|
| diff --git a/third_party/protobuf/src/google/protobuf/compiler/java/java_enum.h b/third_party/protobuf/src/google/protobuf/compiler/java/java_enum.h
|
| index 9a9e5742ac3b8590e2e2c00de5123e681a53494e..a0d91f5a551e3defdbd7a98d7b340dc025f7f62d 100644
|
| --- a/third_party/protobuf/src/google/protobuf/compiler/java/java_enum.h
|
| +++ b/third_party/protobuf/src/google/protobuf/compiler/java/java_enum.h
|
| @@ -1,6 +1,6 @@
|
| // Protocol Buffers - Google's data interchange format
|
| // Copyright 2008 Google Inc. All rights reserved.
|
| -// http://code.google.com/p/protobuf/
|
| +// https://developers.google.com/protocol-buffers/
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| @@ -41,6 +41,12 @@
|
|
|
| namespace google {
|
| namespace protobuf {
|
| + namespace compiler {
|
| + namespace java {
|
| + class Context; // context.h
|
| + class ClassNameResolver; // name_resolver.h
|
| + }
|
| + }
|
| namespace io {
|
| class Printer; // printer.h
|
| }
|
| @@ -52,7 +58,9 @@ namespace java {
|
|
|
| class EnumGenerator {
|
| public:
|
| - explicit EnumGenerator(const EnumDescriptor* descriptor);
|
| + explicit EnumGenerator(const EnumDescriptor* descriptor,
|
| + bool immutable_api,
|
| + Context* context);
|
| ~EnumGenerator();
|
|
|
| void Generate(io::Printer* printer);
|
| @@ -73,6 +81,11 @@ class EnumGenerator {
|
| };
|
| vector<Alias> aliases_;
|
|
|
| + bool immutable_api_;
|
| +
|
| + Context* context_;
|
| + ClassNameResolver* name_resolver_;
|
| +
|
| bool CanUseEnumValues();
|
|
|
| GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EnumGenerator);
|
|
|