#ifndef COMPONENTS_SODA_CONSTANTS_H_
#define COMPONENTS_SODA_CONSTANTS_H_
#include <cstdint>
#include <optional>
#include <string>
#include "base/files/file_path.h"
#include "components/soda/pref_names.h"
#include "components/strings/grit/components_strings.h"
namespace speech {
extern const char kUsEnglishLocale[];
extern const char kEnglishLocaleNoCountry[];
extern const char kSodaBinaryInstallationResult[];
extern const char kSodaBinaryInstallationSuccessTimeTaken[];
extern const char kSodaBinaryInstallationFailureTimeTaken[];
enum class LanguageCode { … };
struct SodaLanguagePackComponentConfig { … };
constexpr SodaLanguagePackComponentConfig kLanguageComponentConfigs[] = …;
extern const base::FilePath::CharType kSodaBinaryRelativePath[];
extern const base::FilePath::CharType kSodaTestBinaryRelativePath[];
extern const base::FilePath::CharType kSodaInstallationRelativePath[];
extern const base::FilePath::CharType kSodaLanguagePacksRelativePath[];
extern const base::FilePath::CharType kSodaTestResourcesRelativePath[];
extern const base::FilePath::CharType kSodaLanguagePackDirectoryRelativePath[];
const base::FilePath GetSodaDirectory();
const base::FilePath GetSodaLanguagePacksDirectory();
const base::FilePath GetSodaTestResourcesDirectory();
const base::FilePath GetLatestSodaLanguagePackDirectory(
const std::string& language);
const base::FilePath GetLatestSodaDirectory();
const base::FilePath GetSodaBinaryPath();
const base::FilePath GetSodaTestBinaryPath();
std::optional<SodaLanguagePackComponentConfig> GetLanguageComponentConfig(
LanguageCode language_code);
std::optional<SodaLanguagePackComponentConfig> GetLanguageComponentConfig(
const std::string& language_name);
std::optional<SodaLanguagePackComponentConfig>
GetLanguageComponentConfigMatchingLanguageSubtag(
const std::string& language_name);
LanguageCode GetLanguageCodeByComponentId(const std::string& component_id);
std::string GetLanguageName(LanguageCode language_code);
LanguageCode GetLanguageCode(const std::string& language_name);
const std::u16string GetLanguageDisplayName(const std::string& language_name,
const std::string& display_locale);
const std::string GetInstallationSuccessTimeMetricForLanguagePack(
const LanguageCode& language_code);
const std::string GetInstallationSuccessTimeMetricForLanguage(
const std::string& language);
const std::string GetInstallationFailureTimeMetricForLanguagePack(
const LanguageCode& language_code);
const std::string GetInstallationFailureTimeMetricForLanguage(
const std::string& language);
const std::string GetInstallationResultMetricForLanguagePack(
const LanguageCode& language_code);
const std::string GetInstallationResultMetricForLanguage(
const std::string& language);
}
#endif