Index: base/values.h |
diff --git a/base/values.h b/base/values.h |
index 4c22f3ddc3e24445ad85bb75bd648b1b0d8a0488..d228faad0697a7f5b36c850c1261e346e82a91fd 100644 |
--- a/base/values.h |
+++ b/base/values.h |
@@ -79,6 +79,7 @@ class BASE_EXPORT Value { |
// If the current object can be converted into the given type, the value is |
// returned through the |out_value| parameter and true is returned; |
// otherwise, false is returned and |out_value| is unchanged. |
+ virtual bool GetAsBinary(std::string* out_value) const; |
Mark Mentovai
2015/01/14 14:39:59
Can you keep these methods sorted like the Type en
|
virtual bool GetAsBoolean(bool* out_value) const; |
virtual bool GetAsInteger(int* out_value) const; |
virtual bool GetAsDouble(double* out_value) const; |
@@ -188,6 +189,7 @@ class BASE_EXPORT BinaryValue: public Value { |
const char* GetBuffer() const { return buffer_.get(); } |
// Overridden from Value: |
+ bool GetAsBinary(std::string* out_value) const override; |
BinaryValue* DeepCopy() const override; |
bool Equals(const Value* other) const override; |