#include "base/json/json_file_value_serializer.h"
#include "base/check.h"
#include "base/files/file_util.h"
#include "base/json/json_string_value_serializer.h"
#include "base/notreached.h"
#include "build/build_config.h"
FilePath;
const char JSONFileValueDeserializer::kAccessDenied[] = …;
const char JSONFileValueDeserializer::kCannotReadFile[] = …;
const char JSONFileValueDeserializer::kFileLocked[] = …;
const char JSONFileValueDeserializer::kNoSuchFile[] = …;
JSONFileValueSerializer::JSONFileValueSerializer(
const base::FilePath& json_file_path)
: … { … }
JSONFileValueSerializer::~JSONFileValueSerializer() = default;
bool JSONFileValueSerializer::Serialize(base::ValueView root) { … }
bool JSONFileValueSerializer::SerializeAndOmitBinaryValues(
base::ValueView root) { … }
bool JSONFileValueSerializer::SerializeInternal(base::ValueView root,
bool omit_binary_values) { … }
JSONFileValueDeserializer::JSONFileValueDeserializer(
const base::FilePath& json_file_path,
int options)
: … { … }
JSONFileValueDeserializer::~JSONFileValueDeserializer() = default;
int JSONFileValueDeserializer::ReadFileToString(std::string* json_string) { … }
const char* JSONFileValueDeserializer::GetErrorMessageForCode(int error_code) { … }
std::unique_ptr<base::Value> JSONFileValueDeserializer::Deserialize(
int* error_code,
std::string* error_str) { … }