#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/frame_sinks/embedded_frame_sink.mojom-blink.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/frame_sinks/embedded_frame_sink.mojom-params-data.h"
#include "third_party/blink/public/mojom/frame_sinks/embedded_frame_sink.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/frame_sinks/embedded_frame_sink.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/frame_sinks/embedded_frame_sink.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
const char SurfaceEmbedder::Name_[] = …;
SurfaceEmbedder::IPCStableHashFunction SurfaceEmbedder::MessageToMethodInfo_(mojo::Message& message) { … }
const char* SurfaceEmbedder::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t SurfaceEmbedder::SetLocalSurfaceId_Sym::IPCStableHash() { … }
# endif
SurfaceEmbedderProxy::SurfaceEmbedderProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void SurfaceEmbedderProxy::SetLocalSurfaceId(
const ::viz::LocalSurfaceId& in_local_surface_id) { … }
bool SurfaceEmbedderStubDispatch::Accept(
SurfaceEmbedder* impl,
mojo::Message* message) { … }
bool SurfaceEmbedderStubDispatch::AcceptWithResponder(
SurfaceEmbedder* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kSurfaceEmbedderValidationInfo[] = …;
bool SurfaceEmbedderRequestValidator::Accept(mojo::Message* message) { … }
const char EmbeddedFrameSinkClient::Name_[] = …;
EmbeddedFrameSinkClient::IPCStableHashFunction EmbeddedFrameSinkClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* EmbeddedFrameSinkClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t EmbeddedFrameSinkClient::BindSurfaceEmbedder_Sym::IPCStableHash() { … }
# endif
EmbeddedFrameSinkClientProxy::EmbeddedFrameSinkClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void EmbeddedFrameSinkClientProxy::BindSurfaceEmbedder(
::mojo::PendingReceiver<SurfaceEmbedder> in_embedder) { … }
bool EmbeddedFrameSinkClientStubDispatch::Accept(
EmbeddedFrameSinkClient* impl,
mojo::Message* message) { … }
bool EmbeddedFrameSinkClientStubDispatch::AcceptWithResponder(
EmbeddedFrameSinkClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kEmbeddedFrameSinkClientValidationInfo[] = …;
bool EmbeddedFrameSinkClientRequestValidator::Accept(mojo::Message* message) { … }
const char EmbeddedFrameSinkProvider::Name_[] = …;
EmbeddedFrameSinkProvider::IPCStableHashFunction EmbeddedFrameSinkProvider::MessageToMethodInfo_(mojo::Message& message) { … }
const char* EmbeddedFrameSinkProvider::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t EmbeddedFrameSinkProvider::RegisterEmbeddedFrameSink_Sym::IPCStableHash() { … }
uint32_t EmbeddedFrameSinkProvider::RegisterEmbeddedFrameSinkBundle_Sym::IPCStableHash() { … }
uint32_t EmbeddedFrameSinkProvider::CreateCompositorFrameSink_Sym::IPCStableHash() { … }
uint32_t EmbeddedFrameSinkProvider::CreateBundledCompositorFrameSink_Sym::IPCStableHash() { … }
uint32_t EmbeddedFrameSinkProvider::CreateSimpleCompositorFrameSink_Sym::IPCStableHash() { … }
uint32_t EmbeddedFrameSinkProvider::ConnectToEmbedder_Sym::IPCStableHash() { … }
uint32_t EmbeddedFrameSinkProvider::RegisterFrameSinkHierarchy_Sym::IPCStableHash() { … }
uint32_t EmbeddedFrameSinkProvider::UnregisterFrameSinkHierarchy_Sym::IPCStableHash() { … }
# endif
EmbeddedFrameSinkProviderProxy::EmbeddedFrameSinkProviderProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void EmbeddedFrameSinkProviderProxy::RegisterEmbeddedFrameSink(
const ::viz::FrameSinkId& in_parent_frame_sink_id, const ::viz::FrameSinkId& in_frame_sink_id, ::mojo::PendingRemote<EmbeddedFrameSinkClient> in_client) { … }
void EmbeddedFrameSinkProviderProxy::RegisterEmbeddedFrameSinkBundle(
const ::viz::FrameSinkBundleId& in_bundle_id, ::mojo::PendingReceiver<::viz::mojom::blink::FrameSinkBundle> in_receiver, ::mojo::PendingRemote<::viz::mojom::blink::FrameSinkBundleClient> in_client) { … }
void EmbeddedFrameSinkProviderProxy::CreateCompositorFrameSink(
const ::viz::FrameSinkId& in_frame_sink_id, ::mojo::PendingRemote<::viz::mojom::blink::CompositorFrameSinkClient> in_client, ::mojo::PendingReceiver<::viz::mojom::blink::CompositorFrameSink> in_sink) { … }
void EmbeddedFrameSinkProviderProxy::CreateBundledCompositorFrameSink(
const ::viz::FrameSinkId& in_frame_sink_id, const ::viz::FrameSinkBundleId& in_bundle_id, ::mojo::PendingRemote<::viz::mojom::blink::CompositorFrameSinkClient> in_client, ::mojo::PendingReceiver<::viz::mojom::blink::CompositorFrameSink> in_sink) { … }
void EmbeddedFrameSinkProviderProxy::CreateSimpleCompositorFrameSink(
const ::viz::FrameSinkId& in_parent_frame_sink_id, const ::viz::FrameSinkId& in_frame_sink_id, ::mojo::PendingRemote<EmbeddedFrameSinkClient> in_surface_client, ::mojo::PendingRemote<::viz::mojom::blink::CompositorFrameSinkClient> in_client, ::mojo::PendingReceiver<::viz::mojom::blink::CompositorFrameSink> in_sink) { … }
void EmbeddedFrameSinkProviderProxy::ConnectToEmbedder(
const ::viz::FrameSinkId& in_frame_sink_id, ::mojo::PendingReceiver<SurfaceEmbedder> in_embedder) { … }
void EmbeddedFrameSinkProviderProxy::RegisterFrameSinkHierarchy(
const ::viz::FrameSinkId& in_frame_sink_id) { … }
void EmbeddedFrameSinkProviderProxy::UnregisterFrameSinkHierarchy(
const ::viz::FrameSinkId& in_frame_sink_id) { … }
bool EmbeddedFrameSinkProviderStubDispatch::Accept(
EmbeddedFrameSinkProvider* impl,
mojo::Message* message) { … }
bool EmbeddedFrameSinkProviderStubDispatch::AcceptWithResponder(
EmbeddedFrameSinkProvider* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kEmbeddedFrameSinkProviderValidationInfo[] = …;
bool EmbeddedFrameSinkProviderRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace blink::mojom::blink {
void SurfaceEmbedderInterceptorForTesting::SetLocalSurfaceId(const ::viz::LocalSurfaceId& local_surface_id) { … }
SurfaceEmbedderAsyncWaiter::SurfaceEmbedderAsyncWaiter(
SurfaceEmbedder* proxy) : … { … }
SurfaceEmbedderAsyncWaiter::~SurfaceEmbedderAsyncWaiter() = default;
void EmbeddedFrameSinkClientInterceptorForTesting::BindSurfaceEmbedder(::mojo::PendingReceiver<SurfaceEmbedder> embedder) { … }
EmbeddedFrameSinkClientAsyncWaiter::EmbeddedFrameSinkClientAsyncWaiter(
EmbeddedFrameSinkClient* proxy) : … { … }
EmbeddedFrameSinkClientAsyncWaiter::~EmbeddedFrameSinkClientAsyncWaiter() = default;
void EmbeddedFrameSinkProviderInterceptorForTesting::RegisterEmbeddedFrameSink(const ::viz::FrameSinkId& parent_frame_sink_id, const ::viz::FrameSinkId& frame_sink_id, ::mojo::PendingRemote<EmbeddedFrameSinkClient> client) { … }
void EmbeddedFrameSinkProviderInterceptorForTesting::RegisterEmbeddedFrameSinkBundle(const ::viz::FrameSinkBundleId& bundle_id, ::mojo::PendingReceiver<::viz::mojom::blink::FrameSinkBundle> receiver, ::mojo::PendingRemote<::viz::mojom::blink::FrameSinkBundleClient> client) { … }
void EmbeddedFrameSinkProviderInterceptorForTesting::CreateCompositorFrameSink(const ::viz::FrameSinkId& frame_sink_id, ::mojo::PendingRemote<::viz::mojom::blink::CompositorFrameSinkClient> client, ::mojo::PendingReceiver<::viz::mojom::blink::CompositorFrameSink> sink) { … }
void EmbeddedFrameSinkProviderInterceptorForTesting::CreateBundledCompositorFrameSink(const ::viz::FrameSinkId& frame_sink_id, const ::viz::FrameSinkBundleId& bundle_id, ::mojo::PendingRemote<::viz::mojom::blink::CompositorFrameSinkClient> client, ::mojo::PendingReceiver<::viz::mojom::blink::CompositorFrameSink> sink) { … }
void EmbeddedFrameSinkProviderInterceptorForTesting::CreateSimpleCompositorFrameSink(const ::viz::FrameSinkId& parent_frame_sink_id, const ::viz::FrameSinkId& frame_sink_id, ::mojo::PendingRemote<EmbeddedFrameSinkClient> surface_client, ::mojo::PendingRemote<::viz::mojom::blink::CompositorFrameSinkClient> client, ::mojo::PendingReceiver<::viz::mojom::blink::CompositorFrameSink> sink) { … }
void EmbeddedFrameSinkProviderInterceptorForTesting::ConnectToEmbedder(const ::viz::FrameSinkId& frame_sink_id, ::mojo::PendingReceiver<SurfaceEmbedder> embedder) { … }
void EmbeddedFrameSinkProviderInterceptorForTesting::RegisterFrameSinkHierarchy(const ::viz::FrameSinkId& frame_sink_id) { … }
void EmbeddedFrameSinkProviderInterceptorForTesting::UnregisterFrameSinkHierarchy(const ::viz::FrameSinkId& frame_sink_id) { … }
EmbeddedFrameSinkProviderAsyncWaiter::EmbeddedFrameSinkProviderAsyncWaiter(
EmbeddedFrameSinkProvider* proxy) : … { … }
EmbeddedFrameSinkProviderAsyncWaiter::~EmbeddedFrameSinkProviderAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif