#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "ui/webui/resources/js/browser_command/browser_command.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 "ui/webui/resources/js/browser_command/browser_command.mojom-params-data.h"
#include "ui/webui/resources/js/browser_command/browser_command.mojom-shared-message-ids.h"
#include "ui/webui/resources/js/browser_command/browser_command.mojom-import-headers.h"
#include "ui/webui/resources/js/browser_command/browser_command.mojom-test-utils.h"
namespace browser_command::mojom {
ClickInfo::ClickInfo()
: … { … }
ClickInfo::ClickInfo(
bool middle_button_in,
bool alt_key_in,
bool ctrl_key_in,
bool meta_key_in,
bool shift_key_in)
: … { … }
ClickInfo::~ClickInfo() = default;
size_t ClickInfo::Hash(size_t seed) const { … }
void ClickInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ClickInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char CommandHandlerFactory::Name_[] = …;
CommandHandlerFactory::IPCStableHashFunction CommandHandlerFactory::MessageToMethodInfo_(mojo::Message& message) { … }
const char* CommandHandlerFactory::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CommandHandlerFactory::CreateBrowserCommandHandler_Sym::IPCStableHash() { … }
# endif
CommandHandlerFactoryProxy::CommandHandlerFactoryProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void CommandHandlerFactoryProxy::CreateBrowserCommandHandler(
::mojo::PendingReceiver<CommandHandler> in_handler) { … }
bool CommandHandlerFactoryStubDispatch::Accept(
CommandHandlerFactory* impl,
mojo::Message* message) { … }
bool CommandHandlerFactoryStubDispatch::AcceptWithResponder(
CommandHandlerFactory* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kCommandHandlerFactoryValidationInfo[] = …;
bool CommandHandlerFactoryRequestValidator::Accept(mojo::Message* message) { … }
const char CommandHandler::Name_[] = …;
CommandHandler::IPCStableHashFunction CommandHandler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* CommandHandler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CommandHandler::CanExecuteCommand_Sym::IPCStableHash() { … }
uint32_t CommandHandler::ExecuteCommand_Sym::IPCStableHash() { … }
# endif
class CommandHandler_CanExecuteCommand_ForwardToCallback
: public mojo::MessageReceiver { … };
class CommandHandler_ExecuteCommand_ForwardToCallback
: public mojo::MessageReceiver { … };
CommandHandlerProxy::CommandHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void CommandHandlerProxy::CanExecuteCommand(
Command in_command_id, CanExecuteCommandCallback callback) { … }
void CommandHandlerProxy::ExecuteCommand(
Command in_command_id, ClickInfoPtr in_click_info, ExecuteCommandCallback callback) { … }
class CommandHandler_CanExecuteCommand_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CommandHandler_CanExecuteCommand_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CommandHandler_CanExecuteCommand_ProxyToResponder::Run(
bool in_can_execute) { … }
class CommandHandler_ExecuteCommand_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CommandHandler_ExecuteCommand_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CommandHandler_ExecuteCommand_ProxyToResponder::Run(
bool in_command_executed) { … }
bool CommandHandlerStubDispatch::Accept(
CommandHandler* impl,
mojo::Message* message) { … }
bool CommandHandlerStubDispatch::AcceptWithResponder(
CommandHandler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kCommandHandlerValidationInfo[] = …;
bool CommandHandlerRequestValidator::Accept(mojo::Message* message) { … }
bool CommandHandlerResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::browser_command::mojom::ClickInfo::DataView, ::browser_command::mojom::ClickInfoPtr>::Read(
::browser_command::mojom::ClickInfo::DataView input,
::browser_command::mojom::ClickInfoPtr* output) { … }
}
namespace browser_command::mojom {
void CommandHandlerFactoryInterceptorForTesting::CreateBrowserCommandHandler(::mojo::PendingReceiver<CommandHandler> handler) { … }
CommandHandlerFactoryAsyncWaiter::CommandHandlerFactoryAsyncWaiter(
CommandHandlerFactory* proxy) : … { … }
CommandHandlerFactoryAsyncWaiter::~CommandHandlerFactoryAsyncWaiter() = default;
void CommandHandlerInterceptorForTesting::CanExecuteCommand(Command command_id, CanExecuteCommandCallback callback) { … }
void CommandHandlerInterceptorForTesting::ExecuteCommand(Command command_id, ClickInfoPtr click_info, ExecuteCommandCallback callback) { … }
CommandHandlerAsyncWaiter::CommandHandlerAsyncWaiter(
CommandHandler* proxy) : … { … }
CommandHandlerAsyncWaiter::~CommandHandlerAsyncWaiter() = default;
void CommandHandlerAsyncWaiter::CanExecuteCommand(
Command command_id, bool* out_can_execute) { … }
bool CommandHandlerAsyncWaiter::CanExecuteCommand(
Command command_id) { … }
void CommandHandlerAsyncWaiter::ExecuteCommand(
Command command_id, ClickInfoPtr click_info, bool* out_command_executed) { … }
bool CommandHandlerAsyncWaiter::ExecuteCommand(
Command command_id, ClickInfoPtr click_info) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif