| Index: third_party/protobuf/src/google/protobuf/util/internal/json_stream_parser.h
|
| diff --git a/third_party/protobuf/src/google/protobuf/util/internal/json_stream_parser.h b/third_party/protobuf/src/google/protobuf/util/internal/json_stream_parser.h
|
| index 0278c28fbc6abf66e248108cf4227b56e05da96a..6b9d46ee2257936677b5a0231e70116723cfd3b9 100644
|
| --- a/third_party/protobuf/src/google/protobuf/util/internal/json_stream_parser.h
|
| +++ b/third_party/protobuf/src/google/protobuf/util/internal/json_stream_parser.h
|
| @@ -179,6 +179,10 @@ class LIBPROTOBUF_EXPORT JsonStreamParser {
|
| util::Status ParseTrue();
|
| util::Status ParseFalse();
|
| util::Status ParseNull();
|
| + util::Status ParseEmptyNull();
|
| +
|
| + // Whether an empty-null is allowed in the current state.
|
| + bool IsEmptyNullAllowed(TokenType type);
|
|
|
| // Report a failure as a util::Status.
|
| util::Status ReportFailure(StringPiece message);
|
| @@ -247,6 +251,13 @@ class LIBPROTOBUF_EXPORT JsonStreamParser {
|
| // Whether to allow non UTF-8 encoded input and replace invalid code points.
|
| bool coerce_to_utf8_;
|
|
|
| + // Whether allows empty string represented null array value or object entry
|
| + // value.
|
| + bool allow_empty_null_;
|
| +
|
| + // Whether allows out-of-range floating point numbers or reject them.
|
| + bool loose_float_number_conversion_;
|
| +
|
| GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS(JsonStreamParser);
|
| };
|
|
|
|
|