#include "chrome/browser/on_device_translation/service_controller.h"
#include "base/functional/bind.h"
#include "base/functional/callback_forward.h"
#include "base/no_destructor.h"
#include "base/strings/strcat.h"
#include "chrome/services/on_device_translation/public/cpp/features.h"
#include "chrome/services/on_device_translation/public/mojom/on_device_translation_service.mojom.h"
#include "chrome/services/on_device_translation/public/mojom/translator.mojom.h"
#include "content/public/browser/service_process_host.h"
const char kOnDeviceTranslationServiceDisplayName[] = …;
OnDeviceTranslationServiceController::OnDeviceTranslationServiceController() { … }
OnDeviceTranslationServiceController::~OnDeviceTranslationServiceController() =
default;
void OnDeviceTranslationServiceController::CreateTranslator(
const std::string& source_lang,
const std::string& target_lang,
mojo::PendingReceiver<on_device_translation::mojom::Translator> receiver,
base::OnceCallback<void(bool)> callback) { … }
void OnDeviceTranslationServiceController::CanTranslate(
const std::string& source_lang,
const std::string& target_lang,
base::OnceCallback<void(bool)> callback) { … }
OnDeviceTranslationServiceController*
OnDeviceTranslationServiceController::GetInstance() { … }