diff options
Diffstat (limited to 'base/values.h')
-rw-r--r-- | base/values.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/values.h b/base/values.h index aa26b3e..026fcf6 100644 --- a/base/values.h +++ b/base/values.h @@ -98,6 +98,8 @@ class BASE_EXPORT Value { virtual bool GetAsString(string16* out_value) const; virtual bool GetAsList(ListValue** out_value); virtual bool GetAsList(const ListValue** out_value) const; + virtual bool GetAsDictionary(DictionaryValue** out_value); + virtual bool GetAsDictionary(const DictionaryValue** out_value) const; // This creates a deep copy of the entire Value tree, and returns a pointer // to the copy. The caller gets ownership of the copy, of course. @@ -215,6 +217,11 @@ class BASE_EXPORT DictionaryValue : public Value { DictionaryValue(); virtual ~DictionaryValue(); + // Overridden from Value: + virtual bool GetAsDictionary(DictionaryValue** out_value) OVERRIDE; + virtual bool GetAsDictionary( + const DictionaryValue** out_value) const OVERRIDE; + // Returns true if the current dictionary has a value for the given key. bool HasKey(const std::string& key) const; |