#include "components/autofill/core/browser/server_prediction_overrides.h"
#include <optional>
#include "base/containers/flat_map.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/types/expected.h"
#include "base/values.h"
#include "components/autofill/core/browser/proto/api_v1.pb.h"
#include "components/autofill/core/common/signatures.h"
namespace autofill {
namespace {
FieldSuggestion;
FieldPrediction;
SingleServerPredictionOverride;
constexpr std::string_view kSeparatorLevel0 = …;
constexpr std::string_view kSeparatorLevel1 = …;
std::optional<FieldPrediction> ParseSingleFieldTypePrediction(
std::string_view specification) { … }
base::expected<FieldSuggestion, std::string> ParseFieldTypePredictions(
uint32_t field_signature,
base::span<const std::string> specifications) { … }
base::expected<SingleServerPredictionOverride, std::string>
ParseSingleServerPredictionOverride(std::string_view specification) { … }
}
base::expected<ServerPredictionOverrides, std::string>
ParseServerPredictionOverrides(std::string_view specification) { … }
}