#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/guest_view/common/guest_view.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/guest_view/common/guest_view.mojom-params-data.h"
#include "components/guest_view/common/guest_view.mojom-shared-message-ids.h"
#include "components/guest_view/common/guest_view.mojom-import-headers.h"
#include "components/guest_view/common/guest_view.mojom-test-utils.h"
namespace guest_view::mojom {
const char ViewHandle::Name_[] = …;
ViewHandle::IPCStableHashFunction ViewHandle::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ViewHandle::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
# endif
ViewHandleProxy::ViewHandleProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
bool ViewHandleStubDispatch::Accept(
ViewHandle* impl,
mojo::Message* message) { … }
bool ViewHandleStubDispatch::AcceptWithResponder(
ViewHandle* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
bool ViewHandleRequestValidator::Accept(mojo::Message* message) { … }
const char GuestViewHost::Name_[] = …;
GuestViewHost::IPCStableHashFunction GuestViewHost::MessageToMethodInfo_(mojo::Message& message) { … }
const char* GuestViewHost::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t GuestViewHost::AttachToEmbedderFrame_Sym::IPCStableHash() { … }
uint32_t GuestViewHost::ViewCreated_Sym::IPCStableHash() { … }
# endif
class GuestViewHost_AttachToEmbedderFrame_ForwardToCallback
: public mojo::MessageReceiver { … };
GuestViewHostProxy::GuestViewHostProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void GuestViewHostProxy::AttachToEmbedderFrame(
int32_t in_element_instance_id, int32_t in_guest_instance_id, ::base::Value::Dict in_params, AttachToEmbedderFrameCallback callback) { … }
void GuestViewHostProxy::ViewCreated(
int32_t in_view_instance_id, const std::string& in_view_type, ::mojo::PendingReceiver<ViewHandle> in_keep_alive_handle_receiver) { … }
class GuestViewHost_AttachToEmbedderFrame_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool GuestViewHost_AttachToEmbedderFrame_ForwardToCallback::Accept(
mojo::Message* message) { … }
void GuestViewHost_AttachToEmbedderFrame_ProxyToResponder::Run(
) { … }
bool GuestViewHostStubDispatch::Accept(
GuestViewHost* impl,
mojo::Message* message) { … }
bool GuestViewHostStubDispatch::AcceptWithResponder(
GuestViewHost* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kGuestViewHostValidationInfo[] = …;
bool GuestViewHostRequestValidator::Accept(mojo::Message* message) { … }
bool GuestViewHostResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace guest_view::mojom {
ViewHandleAsyncWaiter::ViewHandleAsyncWaiter(
ViewHandle* proxy) : … { … }
ViewHandleAsyncWaiter::~ViewHandleAsyncWaiter() = default;
void GuestViewHostInterceptorForTesting::AttachToEmbedderFrame(int32_t element_instance_id, int32_t guest_instance_id, ::base::Value::Dict params, AttachToEmbedderFrameCallback callback) { … }
void GuestViewHostInterceptorForTesting::ViewCreated(int32_t view_instance_id, const std::string& view_type, ::mojo::PendingReceiver<ViewHandle> keep_alive_handle_receiver) { … }
GuestViewHostAsyncWaiter::GuestViewHostAsyncWaiter(
GuestViewHost* proxy) : … { … }
GuestViewHostAsyncWaiter::~GuestViewHostAsyncWaiter() = default;
void GuestViewHostAsyncWaiter::AttachToEmbedderFrame(
int32_t element_instance_id, int32_t guest_instance_id, ::base::Value::Dict params) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif