#include "components/language/core/browser/accept_languages_service.h"
#include <stddef.h>
#include <string_view>
#include "base/functional/bind.h"
#include "base/i18n/rtl.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "components/language/core/common/language_util.h"
#include "components/prefs/pref_service.h"
#include "ui/base/l10n/l10n_util.h"
namespace language {
AcceptLanguagesService::AcceptLanguagesService(
PrefService* prefs,
const char* accept_languages_pref)
: … { … }
AcceptLanguagesService::~AcceptLanguagesService() = default;
bool AcceptLanguagesService::CanBeAcceptLanguage(std::string_view language) { … }
bool AcceptLanguagesService::IsAcceptLanguage(std::string_view language) const { … }
void AcceptLanguagesService::InitAcceptLanguages(PrefService* prefs) { … }
}