chromium/components/autofill/core/browser/geo/country_data.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/autofill/core/browser/geo/country_data.h"

#include <array>
#include <utility>

#include "base/memory/singleton.h"
#include "components/strings/grit/components_strings.h"
#include "third_party/icu/source/common/unicode/locid.h"

namespace autofill {
namespace {

struct StaticCountryAddressImportRequirementsData {};

// Alias definitions record for CountryData requests.  A request for
// |country_code_alias| is served with the |CountryData| for
// |country_code_target|.
struct StaticCountryCodeAliasData {};

// Alias definitions.
constexpr auto kCountryCodeAliases =;

// Maps country codes to address import requirements. Keep this sorted
// by country code.
// This list is comprized of countries appearing in both
// //third_party/icu/source/data/region/en.txt and
// //third_party/libaddressinput/src/cpp/src/region_data_constants.cc.
constexpr auto kCountryAddressImportRequirementsData =;

// GetCountryCodes and GetCountryData compute the data for CountryDataMap
// based on |kCountryAddressImportRequirementsData|.
std::vector<std::string> GetCountryCodes() {}

std::map<std::string, RequiredFieldsForAddressImport> GetCountryDataMap() {}

std::map<std::string, std::string> GetCountryCodeAliasMap() {}

}  // namespace

// static
CountryDataMap* CountryDataMap::GetInstance() {}

CountryDataMap::CountryDataMap()
    :{}

CountryDataMap::~CountryDataMap() = default;

bool CountryDataMap::HasRequiredFieldsForAddressImport(
    const std::string& country_code) const {}

RequiredFieldsForAddressImport
CountryDataMap::GetRequiredFieldsForAddressImport(
    const std::string& country_code) const {}

bool CountryDataMap::HasCountryCodeAlias(
    const std::string& country_code_alias) const {}

const std::string CountryDataMap::GetCountryCodeForAlias(
    const std::string& country_code_alias) const {}

}  // namespace autofill