summaryrefslogtreecommitdiffstats
path: root/base/values.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-29 19:59:08 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-29 19:59:08 +0000
commitb4cebf87816cde49f6d4991ffa254e5ead97703b (patch)
treefb12e4b464a43af846f30bbd0dbe9484150373b0 /base/values.h
parent45ce59f19161b517c04a4e3bcd0890b938382b06 (diff)
downloadchromium_src-b4cebf87816cde49f6d4991ffa254e5ead97703b.zip
chromium_src-b4cebf87816cde49f6d4991ffa254e5ead97703b.tar.gz
chromium_src-b4cebf87816cde49f6d4991ffa254e5ead97703b.tar.bz2
Change the signature of JSONReader::Read() and related
methods to be more friendly to use with scoped_ptr. Change all the callsites. Review URL: http://codereview.chromium.org/16270 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7486 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.h')
-rw-r--r--base/values.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/base/values.h b/base/values.h
index 2f28f11..ebd2117 100644
--- a/base/values.h
+++ b/base/values.h
@@ -358,13 +358,10 @@ class ValueSerializer {
virtual bool Serialize(const Value& root) = 0;
// This method deserializes the subclass-specific format into a Value object.
- // The method should return true if and only if the root parameter is set
- // to a complete Value representation of the serialized form. If the
- // return value is true, the caller takes ownership of the objects pointed
- // to by root. If the return value is false, root should be unchanged and if
- // error_message is non-null, it should be filled with a message describing
- // the error.
- virtual bool Deserialize(Value** root, std::string* error_message) = 0;
+ // If the return value is non-NULL, the caller takes ownership of returned
+ // Value. If the return value is NULL, and if error_message is non-NULL,
+ // error_message should be filled with a message describing the error.
+ virtual Value* Deserialize(std::string* error_message) = 0;
};
#endif // BASE_VALUES_H_