| Index: third_party/libaddressinput/chromium/cpp/src/util/json.h
|
| diff --git a/third_party/libaddressinput/chromium/cpp/src/util/json.h b/third_party/libaddressinput/chromium/cpp/src/util/json.h
|
| index d6405439f76e8af7b9a9d8126811c8d7f9b6d572..9af7f1cd0cbaddbf8d509d50ae0a27388675c1d4 100644
|
| --- a/third_party/libaddressinput/chromium/cpp/src/util/json.h
|
| +++ b/third_party/libaddressinput/chromium/cpp/src/util/json.h
|
| @@ -40,12 +40,20 @@ class Json {
|
| // object.
|
| virtual bool ParseObject(const std::string& json) = 0;
|
|
|
| - // Sets |value| to the string for |key| if it exists, or false if the key
|
| - // doesn't exist or doesn't correspond to a string. The JSON object must be
|
| - // parsed successfully in ParseObject() before invoking this method.
|
| + // Sets |value| to the string for |key| if it exists and has a string value.
|
| + // Returns false if the key doesn't exist or doesn't correspond to a string.
|
| + // The JSON object must be parsed successfully in ParseObject() before
|
| + // invoking this method.
|
| virtual bool GetStringValueForKey(const std::string& key,
|
| std::string* value) const = 0;
|
|
|
| + // Sets |value| to the dictionary for |key| if it exists and has a dictionary
|
| + // value. Returns false if the key doesn't exist or doesn't correspond to a
|
| + // dictionary. The JSON object must be parsed successfully in ParseObject()
|
| + // before invoking this method.
|
| + virtual bool GetJsonValueForKey(const std::string& key,
|
| + scoped_ptr<Json>* value) const = 0;
|
| +
|
| protected:
|
| Json();
|
| };
|
|
|