Index: base/json/json_reader.h |
diff --git a/base/json/json_reader.h b/base/json/json_reader.h |
index 39927dee9a1eb9c02bc08802780af06b75d53025..e91da2e5328f2e2a74cee43928cd8bce0bbacc39 100644 |
--- a/base/json/json_reader.h |
+++ b/base/json/json_reader.h |
@@ -64,14 +64,19 @@ class BASE_EXPORT JSONReader { |
END_OF_INPUT, |
INVALID_TOKEN, |
}; |
+ |
Token(Type t, const wchar_t* b, int len) |
- : type(t), begin(b), length(len) {} |
+ : type(t), begin(b), length(len) {} |
// Get the character that's one past the end of this token. |
wchar_t NextChar() { |
return *(begin + length); |
} |
+ static Token CreateInvalidToken() { |
+ return Token(INVALID_TOKEN, 0, 0); |
+ } |
+ |
Type type; |
// A pointer into JSONReader::json_pos_ that's the beginning of this token. |