#include "components/plus_addresses/plus_address_parsing_utils.h"
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "base/strings/pattern.h"
#include "base/strings/string_number_conversions.h"
#include "components/affiliations/core/browser/affiliation_utils.h"
#include "components/plus_addresses/plus_address_types.h"
#include "components/plus_addresses/webdata/plus_address_webdata_service.h"
#include "services/data_decoder/public/cpp/data_decoder.h"
#include "url/origin.h"
namespace plus_addresses {
namespace {
std::optional<PlusProfile> ParsePlusProfileFromV1Dict(base::Value::Dict dict) { … }
std::optional<base::TimeDelta> ParseLifetime(std::string* str) { … }
std::optional<PreallocatedPlusAddress> ParsePreallocatedPlusAddress(
base::Value::Dict dict) { … }
}
std::optional<PlusProfile> ParsePlusProfileFromV1Create(
data_decoder::DataDecoder::ValueOrError response) { … }
std::optional<std::vector<PreallocatedPlusAddress>>
ParsePreallocatedPlusAddresses(
data_decoder::DataDecoder::ValueOrError response) { … }
}