chromium/out/Default/gen/components/translate/content/common/translate.mojom.cc

// components/translate/content/common/translate.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "components/translate/content/common/translate.mojom.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "components/translate/content/common/translate.mojom-params-data.h"
#include "components/translate/content/common/translate.mojom-shared-message-ids.h"

#include "components/translate/content/common/translate.mojom-import-headers.h"
#include "components/translate/content/common/translate.mojom-test-utils.h"


namespace translate::mojom {
LanguageDetectionDetails::LanguageDetectionDetails()
    :{}

LanguageDetectionDetails::LanguageDetectionDetails(
    const ::GURL& url_in,
    const std::string& adopted_language_in,
    bool has_notranslate_in,
    bool has_run_lang_detection_in,
    ::base::Time time_in,
    const std::string& content_language_in,
    const std::string& model_detected_language_in,
    bool is_model_reliable_in,
    const std::string& html_root_language_in,
    const ::std::u16string& contents_in,
    float model_reliability_score_in,
    const std::string& detection_model_version_in)
    :{}

LanguageDetectionDetails::~LanguageDetectionDetails() = default;

void LanguageDetectionDetails::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool LanguageDetectionDetails::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char TranslateAgent::Name_[] =;

TranslateAgent::IPCStableHashFunction TranslateAgent::MessageToMethodInfo_(mojo::Message& message) {}


const char* TranslateAgent::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t TranslateAgent::TranslateFrame_Sym::IPCStableHash() {}
uint32_t TranslateAgent::RevertTranslation_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class TranslateAgent_TranslateFrame_ForwardToCallback
    : public mojo::MessageReceiver {};

TranslateAgentProxy::TranslateAgentProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void TranslateAgentProxy::TranslateFrame(
    const std::string& in_translate_script, const std::string& in_source_lang, const std::string& in_target_lang, TranslateFrameCallback callback) {}

void TranslateAgentProxy::RevertTranslation(
    ) {}
class TranslateAgent_TranslateFrame_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool TranslateAgent_TranslateFrame_ForwardToCallback::Accept(
    mojo::Message* message) {}

void TranslateAgent_TranslateFrame_ProxyToResponder::Run(
    bool in_cancelled, const std::string& in_original_lang, const std::string& in_translated_lang, ::translate::TranslateErrors in_error) {}

// static
bool TranslateAgentStubDispatch::Accept(
    TranslateAgent* impl,
    mojo::Message* message) {}

// static
bool TranslateAgentStubDispatch::AcceptWithResponder(
    TranslateAgent* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kTranslateAgentValidationInfo[] =;

bool TranslateAgentRequestValidator::Accept(mojo::Message* message) {}

bool TranslateAgentResponseValidator::Accept(mojo::Message* message) {}
const char ContentTranslateDriver::Name_[] =;

ContentTranslateDriver::IPCStableHashFunction ContentTranslateDriver::MessageToMethodInfo_(mojo::Message& message) {}


const char* ContentTranslateDriver::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ContentTranslateDriver::RegisterPage_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

ContentTranslateDriverProxy::ContentTranslateDriverProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void ContentTranslateDriverProxy::RegisterPage(
    ::mojo::PendingRemote<TranslateAgent> in_translate_agent, const ::translate::LanguageDetectionDetails& in_details, bool in_translation_critiera_met) {}

// static
bool ContentTranslateDriverStubDispatch::Accept(
    ContentTranslateDriver* impl,
    mojo::Message* message) {}

// static
bool ContentTranslateDriverStubDispatch::AcceptWithResponder(
    ContentTranslateDriver* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kContentTranslateDriverValidationInfo[] =;

bool ContentTranslateDriverRequestValidator::Accept(mojo::Message* message) {}



}  // translate::mojom


namespace mojo {


// static
bool StructTraits<::translate::mojom::LanguageDetectionDetails::DataView, ::translate::mojom::LanguageDetectionDetailsPtr>::Read(
    ::translate::mojom::LanguageDetectionDetails::DataView input,
    ::translate::mojom::LanguageDetectionDetailsPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace translate::mojom {


void TranslateAgentInterceptorForTesting::TranslateFrame(const std::string& translate_script, const std::string& source_lang, const std::string& target_lang, TranslateFrameCallback callback) {}
void TranslateAgentInterceptorForTesting::RevertTranslation() {}
TranslateAgentAsyncWaiter::TranslateAgentAsyncWaiter(
    TranslateAgent* proxy) :{}

TranslateAgentAsyncWaiter::~TranslateAgentAsyncWaiter() = default;

void TranslateAgentAsyncWaiter::TranslateFrame(
    const std::string& translate_script, const std::string& source_lang, const std::string& target_lang, bool* out_cancelled, std::string* out_original_lang, std::string* out_translated_lang, ::translate::TranslateErrors* out_error) {}






void ContentTranslateDriverInterceptorForTesting::RegisterPage(::mojo::PendingRemote<TranslateAgent> translate_agent, const ::translate::LanguageDetectionDetails& details, bool translation_critiera_met) {}
ContentTranslateDriverAsyncWaiter::ContentTranslateDriverAsyncWaiter(
    ContentTranslateDriver* proxy) :{}

ContentTranslateDriverAsyncWaiter::~ContentTranslateDriverAsyncWaiter() = default;






}  // translate::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif