#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/webid/federated_auth_request_automation.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 "third_party/blink/public/mojom/webid/federated_auth_request_automation.mojom-params-data.h"
#include "third_party/blink/public/mojom/webid/federated_auth_request_automation.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/webid/federated_auth_request_automation.mojom-import-headers.h"
#include "third_party/blink/public/mojom/webid/federated_auth_request_automation.mojom-test-utils.h"
namespace blink::test::mojom {
const char FederatedAuthRequestAutomation::Name_[] = …;
FederatedAuthRequestAutomation::IPCStableHashFunction FederatedAuthRequestAutomation::MessageToMethodInfo_(mojo::Message& message) { … }
const char* FederatedAuthRequestAutomation::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t FederatedAuthRequestAutomation::GetDialogType_Sym::IPCStableHash() { … }
uint32_t FederatedAuthRequestAutomation::GetFedCmDialogTitle_Sym::IPCStableHash() { … }
uint32_t FederatedAuthRequestAutomation::SelectFedCmAccount_Sym::IPCStableHash() { … }
uint32_t FederatedAuthRequestAutomation::DismissFedCmDialog_Sym::IPCStableHash() { … }
uint32_t FederatedAuthRequestAutomation::ClickFedCmDialogButton_Sym::IPCStableHash() { … }
# endif
class FederatedAuthRequestAutomation_GetDialogType_ForwardToCallback
: public mojo::MessageReceiver { … };
class FederatedAuthRequestAutomation_GetFedCmDialogTitle_ForwardToCallback
: public mojo::MessageReceiver { … };
class FederatedAuthRequestAutomation_SelectFedCmAccount_ForwardToCallback
: public mojo::MessageReceiver { … };
class FederatedAuthRequestAutomation_DismissFedCmDialog_ForwardToCallback
: public mojo::MessageReceiver { … };
class FederatedAuthRequestAutomation_ClickFedCmDialogButton_ForwardToCallback
: public mojo::MessageReceiver { … };
FederatedAuthRequestAutomationProxy::FederatedAuthRequestAutomationProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void FederatedAuthRequestAutomationProxy::GetDialogType(
GetDialogTypeCallback callback) { … }
void FederatedAuthRequestAutomationProxy::GetFedCmDialogTitle(
GetFedCmDialogTitleCallback callback) { … }
void FederatedAuthRequestAutomationProxy::SelectFedCmAccount(
uint32_t in_account_index, SelectFedCmAccountCallback callback) { … }
void FederatedAuthRequestAutomationProxy::DismissFedCmDialog(
DismissFedCmDialogCallback callback) { … }
void FederatedAuthRequestAutomationProxy::ClickFedCmDialogButton(
DialogButton in_dialog_button, ClickFedCmDialogButtonCallback callback) { … }
class FederatedAuthRequestAutomation_GetDialogType_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FederatedAuthRequestAutomation_GetDialogType_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FederatedAuthRequestAutomation_GetDialogType_ProxyToResponder::Run(
const std::optional<std::string>& in_title) { … }
class FederatedAuthRequestAutomation_GetFedCmDialogTitle_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FederatedAuthRequestAutomation_GetFedCmDialogTitle_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FederatedAuthRequestAutomation_GetFedCmDialogTitle_ProxyToResponder::Run(
const std::optional<std::string>& in_title) { … }
class FederatedAuthRequestAutomation_SelectFedCmAccount_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FederatedAuthRequestAutomation_SelectFedCmAccount_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FederatedAuthRequestAutomation_SelectFedCmAccount_ProxyToResponder::Run(
bool in_success) { … }
class FederatedAuthRequestAutomation_DismissFedCmDialog_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FederatedAuthRequestAutomation_DismissFedCmDialog_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FederatedAuthRequestAutomation_DismissFedCmDialog_ProxyToResponder::Run(
bool in_success) { … }
class FederatedAuthRequestAutomation_ClickFedCmDialogButton_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FederatedAuthRequestAutomation_ClickFedCmDialogButton_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FederatedAuthRequestAutomation_ClickFedCmDialogButton_ProxyToResponder::Run(
bool in_success) { … }
bool FederatedAuthRequestAutomationStubDispatch::Accept(
FederatedAuthRequestAutomation* impl,
mojo::Message* message) { … }
bool FederatedAuthRequestAutomationStubDispatch::AcceptWithResponder(
FederatedAuthRequestAutomation* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kFederatedAuthRequestAutomationValidationInfo[] = …;
bool FederatedAuthRequestAutomationRequestValidator::Accept(mojo::Message* message) { … }
bool FederatedAuthRequestAutomationResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace blink::test::mojom {
void FederatedAuthRequestAutomationInterceptorForTesting::GetDialogType(GetDialogTypeCallback callback) { … }
void FederatedAuthRequestAutomationInterceptorForTesting::GetFedCmDialogTitle(GetFedCmDialogTitleCallback callback) { … }
void FederatedAuthRequestAutomationInterceptorForTesting::SelectFedCmAccount(uint32_t account_index, SelectFedCmAccountCallback callback) { … }
void FederatedAuthRequestAutomationInterceptorForTesting::DismissFedCmDialog(DismissFedCmDialogCallback callback) { … }
void FederatedAuthRequestAutomationInterceptorForTesting::ClickFedCmDialogButton(DialogButton dialog_button, ClickFedCmDialogButtonCallback callback) { … }
FederatedAuthRequestAutomationAsyncWaiter::FederatedAuthRequestAutomationAsyncWaiter(
FederatedAuthRequestAutomation* proxy) : … { … }
FederatedAuthRequestAutomationAsyncWaiter::~FederatedAuthRequestAutomationAsyncWaiter() = default;
void FederatedAuthRequestAutomationAsyncWaiter::GetDialogType(
std::optional<std::string>* out_title) { … }
std::optional<std::string> FederatedAuthRequestAutomationAsyncWaiter::GetDialogType(
) { … }
void FederatedAuthRequestAutomationAsyncWaiter::GetFedCmDialogTitle(
std::optional<std::string>* out_title) { … }
std::optional<std::string> FederatedAuthRequestAutomationAsyncWaiter::GetFedCmDialogTitle(
) { … }
void FederatedAuthRequestAutomationAsyncWaiter::SelectFedCmAccount(
uint32_t account_index, bool* out_success) { … }
bool FederatedAuthRequestAutomationAsyncWaiter::SelectFedCmAccount(
uint32_t account_index) { … }
void FederatedAuthRequestAutomationAsyncWaiter::DismissFedCmDialog(
bool* out_success) { … }
bool FederatedAuthRequestAutomationAsyncWaiter::DismissFedCmDialog(
) { … }
void FederatedAuthRequestAutomationAsyncWaiter::ClickFedCmDialogButton(
DialogButton dialog_button, bool* out_success) { … }
bool FederatedAuthRequestAutomationAsyncWaiter::ClickFedCmDialogButton(
DialogButton dialog_button) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif