#include "third_party/blink/renderer/modules/on_device_translation/language_translator.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/sequenced_task_runner.h"
#include "third_party/blink/public/mojom/frame/frame.mojom-blink.h"
#include "third_party/blink/public/mojom/on_device_translation/translator.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/platform/bindings/exception_code.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
namespace blink {
LanguageTranslator::LanguageTranslator(
const WTF::String source_lang,
const WTF::String target_lang,
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
void LanguageTranslator::Trace(Visitor* visitor) const { … }
mojo::PendingReceiver<blink::mojom::blink::Translator>
LanguageTranslator::GetTranslatorReceiver() { … }
ScriptPromise<IDLString> LanguageTranslator::translate(
ScriptState* script_state,
const WTF::String& input,
ExceptionState& exception_state) { … }
}