#include "chrome/services/on_device_translation/translate_kit_wrapper.h"
#include <optional>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/logging.h"
#include "base/strings/strcat.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "chrome/services/on_device_translation/public/cpp/features.h"
namespace on_device_translation {
TranslateKitWrapper::TranslateKitWrapper() = default;
TranslateKitWrapper::~TranslateKitWrapper() = default;
void TranslateKitWrapper::GetInstance(
base::OnceCallback<void(TranslateKitWrapper*)> callback) { … }
std::optional<TranslateFunc> TranslateKitWrapper::GetTranslateFunc(
const std::string& source_lang,
const std::string& target_lang) { … }
bool TranslateKitWrapper::CanTranslate(const std::string& source_lang,
const std::string& target_lang) { … }
void TranslateKitWrapper::Load(
base::OnceCallback<void(TranslateKitWrapper*)> callback) { … }
std::optional<base::FilePath>
TranslateKitWrapper::GetTranslateKitLibraryBasePath() { … }
std::optional<base::FilePath>
TranslateKitWrapper::GetTranslateKitLibraryPath() { … }
std::optional<base::FilePath>
TranslateKitWrapper::GetTranslateLibraryRunFilesPath() { … }
void TranslateKitWrapper::LoadTranslateKit() { … }
}