| Index: base/values.h
|
| diff --git a/base/values.h b/base/values.h
|
| index 7feef9da541b0d00990510047ce7a7717cab0a9f..0ff62170edb7841df12f22b3e281406b2c336890 100644
|
| --- a/base/values.h
|
| +++ b/base/values.h
|
| @@ -30,6 +30,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/strings/string16.h"
|
| +#include "base/strings/string_piece.h"
|
|
|
| namespace base {
|
|
|
| @@ -270,8 +271,8 @@ class BASE_EXPORT DictionaryValue : public Value {
|
| // Otherwise, it will return false and |out_value| will be untouched.
|
| // Note that the dictionary always owns the value that's returned.
|
| // |out_value| is optional and will only be set if non-NULL.
|
| - bool Get(const std::string& path, const Value** out_value) const;
|
| - bool Get(const std::string& path, Value** out_value);
|
| + bool Get(StringPiece path, const Value** out_value) const;
|
| + bool Get(StringPiece path, Value** out_value);
|
|
|
| // These are convenience forms of Get(). The value will be retrieved
|
| // and the return value will be true if the path is valid and the value at
|
| @@ -287,9 +288,8 @@ class BASE_EXPORT DictionaryValue : public Value {
|
| bool GetStringASCII(const std::string& path, std::string* out_value) const;
|
| bool GetBinary(const std::string& path, const BinaryValue** out_value) const;
|
| bool GetBinary(const std::string& path, BinaryValue** out_value);
|
| - bool GetDictionary(const std::string& path,
|
| - const DictionaryValue** out_value) const;
|
| - bool GetDictionary(const std::string& path, DictionaryValue** out_value);
|
| + bool GetDictionary(StringPiece path, const DictionaryValue** out_value) const;
|
| + bool GetDictionary(StringPiece path, DictionaryValue** out_value);
|
| bool GetList(const std::string& path, const ListValue** out_value) const;
|
| bool GetList(const std::string& path, ListValue** out_value);
|
|
|
|
|