#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/spellcheck/common/spellcheck.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/spellcheck/common/spellcheck.mojom-params-data.h"
#include "components/spellcheck/common/spellcheck.mojom-shared-message-ids.h"
#include "components/spellcheck/common/spellcheck.mojom-import-headers.h"
#include "components/spellcheck/common/spellcheck.mojom-test-utils.h"
namespace spellcheck::mojom {
SpellCheckBDictLanguage::SpellCheckBDictLanguage()
: … { … }
SpellCheckBDictLanguage::SpellCheckBDictLanguage(
::base::File file_in,
const std::string& language_in)
: … { … }
SpellCheckBDictLanguage::~SpellCheckBDictLanguage() = default;
void SpellCheckBDictLanguage::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SpellCheckBDictLanguage::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SpellCheckResult::SpellCheckResult()
: … { … }
SpellCheckResult::SpellCheckResult(
::SpellCheckResult::Decoration decoration_in,
int32_t location_in,
int32_t length_in,
std::vector<::std::u16string> replacements_in)
: … { … }
SpellCheckResult::~SpellCheckResult() = default;
void SpellCheckResult::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SpellCheckResult::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char SpellChecker::Name_[] = …;
SpellChecker::IPCStableHashFunction SpellChecker::MessageToMethodInfo_(mojo::Message& message) { … }
const char* SpellChecker::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t SpellChecker::Initialize_Sym::IPCStableHash() { … }
uint32_t SpellChecker::CustomDictionaryChanged_Sym::IPCStableHash() { … }
# endif
SpellCheckerProxy::SpellCheckerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void SpellCheckerProxy::Initialize(
std::vector<SpellCheckBDictLanguagePtr> in_dictionaries, const std::vector<std::string>& in_custom_words, bool in_enable) { … }
void SpellCheckerProxy::CustomDictionaryChanged(
const std::vector<std::string>& in_words_added, const std::vector<std::string>& in_words_removed) { … }
bool SpellCheckerStubDispatch::Accept(
SpellChecker* impl,
mojo::Message* message) { … }
bool SpellCheckerStubDispatch::AcceptWithResponder(
SpellChecker* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kSpellCheckerValidationInfo[] = …;
bool SpellCheckerRequestValidator::Accept(mojo::Message* message) { … }
const char SpellCheckInitializationHost::Name_[] = …;
SpellCheckInitializationHost::IPCStableHashFunction SpellCheckInitializationHost::MessageToMethodInfo_(mojo::Message& message) { … }
const char* SpellCheckInitializationHost::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t SpellCheckInitializationHost::RequestDictionary_Sym::IPCStableHash() { … }
# endif
SpellCheckInitializationHostProxy::SpellCheckInitializationHostProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void SpellCheckInitializationHostProxy::RequestDictionary(
) { … }
bool SpellCheckInitializationHostStubDispatch::Accept(
SpellCheckInitializationHost* impl,
mojo::Message* message) { … }
bool SpellCheckInitializationHostStubDispatch::AcceptWithResponder(
SpellCheckInitializationHost* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kSpellCheckInitializationHostValidationInfo[] = …;
bool SpellCheckInitializationHostRequestValidator::Accept(mojo::Message* message) { … }
const char SpellCheckHost::Name_[] = …;
SpellCheckHost::IPCStableHashFunction SpellCheckHost::MessageToMethodInfo_(mojo::Message& message) { … }
const char* SpellCheckHost::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t SpellCheckHost::NotifyChecked_Sym::IPCStableHash() { … }
uint32_t SpellCheckHost::CallSpellingService_Sym::IPCStableHash() { … }
# endif
class SpellCheckHost_CallSpellingService_ForwardToCallback
: public mojo::MessageReceiver { … };
SpellCheckHostProxy::SpellCheckHostProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void SpellCheckHostProxy::NotifyChecked(
const ::std::u16string& in_word, bool in_misspelled) { … }
void SpellCheckHostProxy::CallSpellingService(
const ::std::u16string& in_text, CallSpellingServiceCallback callback) { … }
class SpellCheckHost_CallSpellingService_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool SpellCheckHost_CallSpellingService_ForwardToCallback::Accept(
mojo::Message* message) { … }
void SpellCheckHost_CallSpellingService_ProxyToResponder::Run(
bool in_success, const std::vector<::SpellCheckResult>& in_results) { … }
bool SpellCheckHostStubDispatch::Accept(
SpellCheckHost* impl,
mojo::Message* message) { … }
bool SpellCheckHostStubDispatch::AcceptWithResponder(
SpellCheckHost* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kSpellCheckHostValidationInfo[] = …;
bool SpellCheckHostRequestValidator::Accept(mojo::Message* message) { … }
bool SpellCheckHostResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::spellcheck::mojom::SpellCheckBDictLanguage::DataView, ::spellcheck::mojom::SpellCheckBDictLanguagePtr>::Read(
::spellcheck::mojom::SpellCheckBDictLanguage::DataView input,
::spellcheck::mojom::SpellCheckBDictLanguagePtr* output) { … }
bool StructTraits<::spellcheck::mojom::SpellCheckResult::DataView, ::spellcheck::mojom::SpellCheckResultPtr>::Read(
::spellcheck::mojom::SpellCheckResult::DataView input,
::spellcheck::mojom::SpellCheckResultPtr* output) { … }
}
namespace spellcheck::mojom {
void SpellCheckerInterceptorForTesting::Initialize(std::vector<SpellCheckBDictLanguagePtr> dictionaries, const std::vector<std::string>& custom_words, bool enable) { … }
void SpellCheckerInterceptorForTesting::CustomDictionaryChanged(const std::vector<std::string>& words_added, const std::vector<std::string>& words_removed) { … }
SpellCheckerAsyncWaiter::SpellCheckerAsyncWaiter(
SpellChecker* proxy) : … { … }
SpellCheckerAsyncWaiter::~SpellCheckerAsyncWaiter() = default;
void SpellCheckInitializationHostInterceptorForTesting::RequestDictionary() { … }
SpellCheckInitializationHostAsyncWaiter::SpellCheckInitializationHostAsyncWaiter(
SpellCheckInitializationHost* proxy) : … { … }
SpellCheckInitializationHostAsyncWaiter::~SpellCheckInitializationHostAsyncWaiter() = default;
void SpellCheckHostInterceptorForTesting::NotifyChecked(const ::std::u16string& word, bool misspelled) { … }
void SpellCheckHostInterceptorForTesting::CallSpellingService(const ::std::u16string& text, CallSpellingServiceCallback callback) { … }
SpellCheckHostAsyncWaiter::SpellCheckHostAsyncWaiter(
SpellCheckHost* proxy) : … { … }
SpellCheckHostAsyncWaiter::~SpellCheckHostAsyncWaiter() = default;
void SpellCheckHostAsyncWaiter::CallSpellingService(
const ::std::u16string& text, bool* out_success, std::vector<::SpellCheckResult>* out_results) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif