diff options
Diffstat (limited to 'chromium/base/json/json_parser.h')
-rw-r--r-- | chromium/base/json/json_parser.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/base/json/json_parser.h b/chromium/base/json/json_parser.h index 78523363db9..548fb282700 100644 --- a/chromium/base/json/json_parser.h +++ b/chromium/base/json/json_parser.h @@ -14,6 +14,7 @@ #include "base/base_export.h" #include "base/compiler_specific.h" #include "base/gtest_prod_util.h" +#include "base/json/json_common.h" #include "base/json/json_reader.h" #include "base/macros.h" #include "base/optional.h" @@ -43,7 +44,7 @@ class JSONParserTest; // of the next token. class BASE_EXPORT JSONParser { public: - JSONParser(int options, int max_depth = JSONReader::kStackMaxDepth); + JSONParser(int options, size_t max_depth = kAbsoluteMaxDepth); ~JSONParser(); // Parses the input string according to the set options and returns the @@ -215,7 +216,7 @@ class BASE_EXPORT JSONParser { const int options_; // Maximum depth to parse. - const int max_depth_; + const size_t max_depth_; // The input stream being parsed. Note: Not guaranteed to NUL-terminated. StringPiece input_; @@ -224,7 +225,7 @@ class BASE_EXPORT JSONParser { int index_; // The number of times the parser has recursed (current stack depth). - int stack_depth_; + size_t stack_depth_; // The line number that the parser is at currently. int line_number_; |