#include "components/translate/core/browser/translate_download_manager.h"
#include <string_view>
#include "base/check.h"
#include "base/memory/singleton.h"
#include "components/translate/core/browser/translate_pref_names.h"
#include "components/translate/core/common/translate_switches.h"
namespace translate {
TranslateDownloadManager* TranslateDownloadManager::GetInstance() { … }
TranslateDownloadManager::TranslateDownloadManager()
: … { … }
TranslateDownloadManager::~TranslateDownloadManager() { … }
void TranslateDownloadManager::Shutdown() { … }
void TranslateDownloadManager::GetSupportedLanguages(
bool translate_allowed,
std::vector<std::string>* languages) { … }
void TranslateDownloadManager::RequestLanguageList() { … }
base::Time TranslateDownloadManager::GetSupportedLanguagesLastUpdated() { … }
std::string TranslateDownloadManager::GetLanguageCode(
std::string_view language) { … }
bool TranslateDownloadManager::IsSupportedLanguage(std::string_view language) { … }
void TranslateDownloadManager::ClearTranslateScriptForTesting() { … }
void TranslateDownloadManager::ResetForTesting() { … }
void TranslateDownloadManager::SetTranslateScriptExpirationDelay(int delay_ms) { … }
}