#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/worker/worklet_global_scope_creation_params.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/worker/worklet_global_scope_creation_params.mojom-params-data.h"
#include "third_party/blink/public/mojom/worker/worklet_global_scope_creation_params.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/worker/worklet_global_scope_creation_params.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/worker/worklet_global_scope_creation_params.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
WorkletGlobalScopeCreationParams::WorkletGlobalScopeCreationParams()
: … { … }
WorkletGlobalScopeCreationParams::WorkletGlobalScopeCreationParams(
const ::blink::KURL& script_url_in,
const ::scoped_refptr<const ::blink::SecurityOrigin>& starter_origin_in,
WTF::Vector<::blink::mojom::blink::OriginTrialFeature> origin_trial_features_in,
const ::base::UnguessableToken& devtools_token_in,
::mojo::PendingRemote<WorkletDevToolsHost> devtools_host_in,
::mojo::PendingRemote<::blink::mojom::blink::CodeCacheHost> code_cache_host_in,
bool wait_for_debugger_in)
: … { … }
WorkletGlobalScopeCreationParams::~WorkletGlobalScopeCreationParams() = default;
void WorkletGlobalScopeCreationParams::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool WorkletGlobalScopeCreationParams::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char WorkletDevToolsHost::Name_[] = …;
WorkletDevToolsHost::IPCStableHashFunction WorkletDevToolsHost::MessageToMethodInfo_(mojo::Message& message) { … }
const char* WorkletDevToolsHost::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t WorkletDevToolsHost::OnReadyForInspection_Sym::IPCStableHash() { … }
# endif
WorkletDevToolsHostProxy::WorkletDevToolsHostProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void WorkletDevToolsHostProxy::OnReadyForInspection(
::mojo::PendingRemote<::blink::mojom::blink::DevToolsAgent> in_agent, ::mojo::PendingReceiver<::blink::mojom::blink::DevToolsAgentHost> in_agent_host) { … }
bool WorkletDevToolsHostStubDispatch::Accept(
WorkletDevToolsHost* impl,
mojo::Message* message) { … }
bool WorkletDevToolsHostStubDispatch::AcceptWithResponder(
WorkletDevToolsHost* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kWorkletDevToolsHostValidationInfo[] = …;
bool WorkletDevToolsHostRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::WorkletGlobalScopeCreationParams::DataView, ::blink::mojom::blink::WorkletGlobalScopeCreationParamsPtr>::Read(
::blink::mojom::blink::WorkletGlobalScopeCreationParams::DataView input,
::blink::mojom::blink::WorkletGlobalScopeCreationParamsPtr* output) { … }
}
namespace blink::mojom::blink {
void WorkletDevToolsHostInterceptorForTesting::OnReadyForInspection(::mojo::PendingRemote<::blink::mojom::blink::DevToolsAgent> agent, ::mojo::PendingReceiver<::blink::mojom::blink::DevToolsAgentHost> agent_host) { … }
WorkletDevToolsHostAsyncWaiter::WorkletDevToolsHostAsyncWaiter(
WorkletDevToolsHost* proxy) : … { … }
WorkletDevToolsHostAsyncWaiter::~WorkletDevToolsHostAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif