summaryrefslogtreecommitdiffstats
path: root/base/values.h
diff options
context:
space:
mode:
authorerikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-06 15:42:39 +0000
committererikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-06 15:42:39 +0000
commitba3996771f6d19298ee655992b2f6291a314ea76 (patch)
treee5d88f89e7e98aa6ee60af431dc5dfa426d727b2 /base/values.h
parent44a91f51ec8dd8d1373e28ef6f3f0ab410db942f (diff)
downloadchromium_src-ba3996771f6d19298ee655992b2f6291a314ea76.zip
chromium_src-ba3996771f6d19298ee655992b2f6291a314ea76.tar.gz
chromium_src-ba3996771f6d19298ee655992b2f6291a314ea76.tar.bz2
detect preferences errors
BUG=38352 TEST=none Review URL: http://codereview.chromium.org/1120006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43715 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.h')
-rw-r--r--base/values.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/base/values.h b/base/values.h
index ac6307a..44af9c1 100644
--- a/base/values.h
+++ b/base/values.h
@@ -431,9 +431,11 @@ class ValueSerializer {
// This method deserializes the subclass-specific format into a Value object.
// 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;
+ // Value. If the return value is NULL, and if error_code is non-NULL,
+ // error_code will be set with the underlying error.
+ // If |error_message| is non-null, it will be filled in with a formatted
+ // error message including the location of the error if appropriate.
+ virtual Value* Deserialize(int* error_code, std::string* error_str) = 0;
};
#endif // BASE_VALUES_H_