| Index: base/json/json_value_serializer.h
|
| diff --git a/base/json/json_value_serializer.h b/base/json/json_value_serializer.h
|
| index 82fd9639c1a2c586a1961bfc7c140af07ea32b72..07d985d812fa307da9f734172ac96b2c05739e22 100644
|
| --- a/base/json/json_value_serializer.h
|
| +++ b/base/json/json_value_serializer.h
|
| @@ -41,6 +41,10 @@ class BASE_EXPORT JSONStringValueSerializer : public base::ValueSerializer {
|
| // into the string passed into the constructor.
|
| virtual bool Serialize(const Value& root) OVERRIDE;
|
|
|
| + // Equivalent to Serialize(root) except binary values are omitted from the
|
| + // output.
|
| + bool SerializeAndOmitBinaryValues(const Value& root);
|
| +
|
| // Attempt to deserialize the data structure encoded in the string passed
|
| // in to the constructor into a structure of Value objects. If the return
|
| // value is NULL, and if |error_code| is non-null, |error_code| will
|
| @@ -59,6 +63,8 @@ class BASE_EXPORT JSONStringValueSerializer : public base::ValueSerializer {
|
| }
|
|
|
| private:
|
| + bool SerializeInternal(const Value& root, bool omit_binary_values);
|
| +
|
| std::string* json_string_;
|
| bool initialized_with_const_string_;
|
| bool pretty_print_; // If true, serialization will span multiple lines.
|
| @@ -89,6 +95,10 @@ class BASE_EXPORT JSONFileValueSerializer : public base::ValueSerializer {
|
| // into the file whose name was passed into the constructor.
|
| virtual bool Serialize(const Value& root) OVERRIDE;
|
|
|
| + // Equivalent to Serialize(root) except binary values are omitted from the
|
| + // output.
|
| + bool SerializeAndOmitBinaryValues(const Value& root);
|
| +
|
| // Attempt to deserialize the data structure encoded in the file passed
|
| // in to the constructor into a structure of Value objects. If the return
|
| // value is NULL, and if |error_code| is non-null, |error_code| will
|
| @@ -119,6 +129,8 @@ class BASE_EXPORT JSONFileValueSerializer : public base::ValueSerializer {
|
| static const char* GetErrorMessageForCode(int error_code);
|
|
|
| private:
|
| + bool SerializeInternal(const Value& root, bool omit_binary_values);
|
| +
|
| FilePath json_file_path_;
|
|
|
| // A wrapper for file_util::ReadFileToString which returns a non-zero
|
|
|