#include "chrome/browser/ui/webui/translate_internals/chrome_translate_internals_handler.h"
#include <map>
#include <string_view>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/values.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/translate/chrome_translate_client.h"
#include "chrome/browser/translate/translate_service.h"
#include "chrome/common/pref_names.h"
#include "components/language/core/browser/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/translate/core/browser/translate_download_manager.h"
#include "components/translate/core/browser/translate_error_details.h"
#include "components/translate/core/browser/translate_event_details.h"
#include "components/translate/core/browser/translate_manager.h"
#include "components/translate/core/browser/translate_pref_names.h"
#include "components/translate/core/browser/translate_prefs.h"
#include "components/translate/core/common/language_detection_details.h"
#include "components/variations/service/variations_service.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
ChromeTranslateInternalsHandler::ChromeTranslateInternalsHandler() { … }
ChromeTranslateInternalsHandler::~ChromeTranslateInternalsHandler() { … }
translate::TranslateClient*
ChromeTranslateInternalsHandler::GetTranslateClient() { … }
variations::VariationsService*
ChromeTranslateInternalsHandler::GetVariationsService() { … }
void ChromeTranslateInternalsHandler::RegisterMessageCallback(
std::string_view message,
MessageCallback callback) { … }
void ChromeTranslateInternalsHandler::CallJavascriptFunction(
std::string_view function_name,
base::span<const base::ValueView> args) { … }
void ChromeTranslateInternalsHandler::RegisterMessages() { … }
void ChromeTranslateInternalsHandler::LanguageDetected(
const translate::LanguageDetectionDetails& details) { … }