#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/worker/worker_content_settings_proxy.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/worker_content_settings_proxy.mojom-params-data.h"
#include "third_party/blink/public/mojom/worker/worker_content_settings_proxy.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/worker/worker_content_settings_proxy.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/worker/worker_content_settings_proxy.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
const char WorkerContentSettingsProxy::Name_[] = …;
WorkerContentSettingsProxy::IPCStableHashFunction WorkerContentSettingsProxy::MessageToMethodInfo_(mojo::Message& message) { … }
const char* WorkerContentSettingsProxy::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t WorkerContentSettingsProxy::AllowIndexedDB_Sym::IPCStableHash() { … }
uint32_t WorkerContentSettingsProxy::AllowCacheStorage_Sym::IPCStableHash() { … }
uint32_t WorkerContentSettingsProxy::AllowWebLocks_Sym::IPCStableHash() { … }
uint32_t WorkerContentSettingsProxy::RequestFileSystemAccessSync_Sym::IPCStableHash() { … }
# endif
bool WorkerContentSettingsProxy::AllowIndexedDB(bool* out_result) { … }
bool WorkerContentSettingsProxy::AllowCacheStorage(bool* out_result) { … }
bool WorkerContentSettingsProxy::AllowWebLocks(bool* out_result) { … }
bool WorkerContentSettingsProxy::RequestFileSystemAccessSync(bool* out_result) { … }
class WorkerContentSettingsProxy_AllowIndexedDB_HandleSyncResponse
: public mojo::MessageReceiver { … };
class WorkerContentSettingsProxy_AllowIndexedDB_ForwardToCallback
: public mojo::MessageReceiver { … };
class WorkerContentSettingsProxy_AllowCacheStorage_HandleSyncResponse
: public mojo::MessageReceiver { … };
class WorkerContentSettingsProxy_AllowCacheStorage_ForwardToCallback
: public mojo::MessageReceiver { … };
class WorkerContentSettingsProxy_AllowWebLocks_HandleSyncResponse
: public mojo::MessageReceiver { … };
class WorkerContentSettingsProxy_AllowWebLocks_ForwardToCallback
: public mojo::MessageReceiver { … };
class WorkerContentSettingsProxy_RequestFileSystemAccessSync_HandleSyncResponse
: public mojo::MessageReceiver { … };
class WorkerContentSettingsProxy_RequestFileSystemAccessSync_ForwardToCallback
: public mojo::MessageReceiver { … };
WorkerContentSettingsProxyProxy::WorkerContentSettingsProxyProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
bool WorkerContentSettingsProxyProxy::AllowIndexedDB(
bool* out_param_result) { … }
void WorkerContentSettingsProxyProxy::AllowIndexedDB(
AllowIndexedDBCallback callback) { … }
bool WorkerContentSettingsProxyProxy::AllowCacheStorage(
bool* out_param_result) { … }
void WorkerContentSettingsProxyProxy::AllowCacheStorage(
AllowCacheStorageCallback callback) { … }
bool WorkerContentSettingsProxyProxy::AllowWebLocks(
bool* out_param_result) { … }
void WorkerContentSettingsProxyProxy::AllowWebLocks(
AllowWebLocksCallback callback) { … }
bool WorkerContentSettingsProxyProxy::RequestFileSystemAccessSync(
bool* out_param_result) { … }
void WorkerContentSettingsProxyProxy::RequestFileSystemAccessSync(
RequestFileSystemAccessSyncCallback callback) { … }
class WorkerContentSettingsProxy_AllowIndexedDB_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WorkerContentSettingsProxy_AllowIndexedDB_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WorkerContentSettingsProxy_AllowIndexedDB_ProxyToResponder::Run(
bool in_result) { … }
bool WorkerContentSettingsProxy_AllowIndexedDB_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class WorkerContentSettingsProxy_AllowCacheStorage_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WorkerContentSettingsProxy_AllowCacheStorage_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WorkerContentSettingsProxy_AllowCacheStorage_ProxyToResponder::Run(
bool in_result) { … }
bool WorkerContentSettingsProxy_AllowCacheStorage_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class WorkerContentSettingsProxy_AllowWebLocks_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WorkerContentSettingsProxy_AllowWebLocks_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WorkerContentSettingsProxy_AllowWebLocks_ProxyToResponder::Run(
bool in_result) { … }
bool WorkerContentSettingsProxy_AllowWebLocks_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class WorkerContentSettingsProxy_RequestFileSystemAccessSync_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WorkerContentSettingsProxy_RequestFileSystemAccessSync_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WorkerContentSettingsProxy_RequestFileSystemAccessSync_ProxyToResponder::Run(
bool in_result) { … }
bool WorkerContentSettingsProxy_RequestFileSystemAccessSync_HandleSyncResponse::Accept(
mojo::Message* message) { … }
bool WorkerContentSettingsProxyStubDispatch::Accept(
WorkerContentSettingsProxy* impl,
mojo::Message* message) { … }
bool WorkerContentSettingsProxyStubDispatch::AcceptWithResponder(
WorkerContentSettingsProxy* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kWorkerContentSettingsProxyValidationInfo[] = …;
bool WorkerContentSettingsProxyRequestValidator::Accept(mojo::Message* message) { … }
bool WorkerContentSettingsProxyResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace blink::mojom::blink {
void WorkerContentSettingsProxyInterceptorForTesting::AllowIndexedDB(AllowIndexedDBCallback callback) { … }
void WorkerContentSettingsProxyInterceptorForTesting::AllowCacheStorage(AllowCacheStorageCallback callback) { … }
void WorkerContentSettingsProxyInterceptorForTesting::AllowWebLocks(AllowWebLocksCallback callback) { … }
void WorkerContentSettingsProxyInterceptorForTesting::RequestFileSystemAccessSync(RequestFileSystemAccessSyncCallback callback) { … }
WorkerContentSettingsProxyAsyncWaiter::WorkerContentSettingsProxyAsyncWaiter(
WorkerContentSettingsProxy* proxy) : … { … }
WorkerContentSettingsProxyAsyncWaiter::~WorkerContentSettingsProxyAsyncWaiter() = default;
void WorkerContentSettingsProxyAsyncWaiter::AllowIndexedDB(
bool* out_result) { … }
bool WorkerContentSettingsProxyAsyncWaiter::AllowIndexedDB(
) { … }
void WorkerContentSettingsProxyAsyncWaiter::AllowCacheStorage(
bool* out_result) { … }
bool WorkerContentSettingsProxyAsyncWaiter::AllowCacheStorage(
) { … }
void WorkerContentSettingsProxyAsyncWaiter::AllowWebLocks(
bool* out_result) { … }
bool WorkerContentSettingsProxyAsyncWaiter::AllowWebLocks(
) { … }
void WorkerContentSettingsProxyAsyncWaiter::RequestFileSystemAccessSync(
bool* out_result) { … }
bool WorkerContentSettingsProxyAsyncWaiter::RequestFileSystemAccessSync(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif