chromium/out/Default/gen/third_party/blink/public/mojom/service_worker/service_worker_registration.mojom.cc

// third_party/blink/public/mojom/service_worker/service_worker_registration.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "third_party/blink/public/mojom/service_worker/service_worker_registration.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/service_worker/service_worker_registration.mojom-params-data.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_registration.mojom-shared-message-ids.h"

#include "third_party/blink/public/mojom/service_worker/service_worker_registration.mojom-import-headers.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_registration.mojom-test-utils.h"


namespace blink::mojom {
ChangedServiceWorkerObjectsMask::ChangedServiceWorkerObjectsMask()
    :{}

ChangedServiceWorkerObjectsMask::ChangedServiceWorkerObjectsMask(
    bool installing_in,
    bool waiting_in,
    bool active_in)
    :{}

ChangedServiceWorkerObjectsMask::~ChangedServiceWorkerObjectsMask() = default;
size_t ChangedServiceWorkerObjectsMask::Hash(size_t seed) const {}

void ChangedServiceWorkerObjectsMask::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool ChangedServiceWorkerObjectsMask::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
ServiceWorkerRegistrationObjectInfo::ServiceWorkerRegistrationObjectInfo()
    :{}

ServiceWorkerRegistrationObjectInfo::ServiceWorkerRegistrationObjectInfo(
    int64_t registration_id_in,
    const ::GURL& scope_in,
    ::blink::mojom::ServiceWorkerUpdateViaCache update_via_cache_in,
    ::mojo::PendingAssociatedRemote<ServiceWorkerRegistrationObjectHost> host_remote_in,
    ::mojo::PendingAssociatedReceiver<ServiceWorkerRegistrationObject> receiver_in,
    ::blink::mojom::ServiceWorkerObjectInfoPtr installing_in,
    ::blink::mojom::ServiceWorkerObjectInfoPtr waiting_in,
    ::blink::mojom::ServiceWorkerObjectInfoPtr active_in)
    :{}

ServiceWorkerRegistrationObjectInfo::~ServiceWorkerRegistrationObjectInfo() = default;

void ServiceWorkerRegistrationObjectInfo::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool ServiceWorkerRegistrationObjectInfo::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char ServiceWorkerRegistrationObjectHost::Name_[] =;

ServiceWorkerRegistrationObjectHost::IPCStableHashFunction ServiceWorkerRegistrationObjectHost::MessageToMethodInfo_(mojo::Message& message) {}


const char* ServiceWorkerRegistrationObjectHost::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ServiceWorkerRegistrationObjectHost::Update_Sym::IPCStableHash() {}
uint32_t ServiceWorkerRegistrationObjectHost::Unregister_Sym::IPCStableHash() {}
uint32_t ServiceWorkerRegistrationObjectHost::EnableNavigationPreload_Sym::IPCStableHash() {}
uint32_t ServiceWorkerRegistrationObjectHost::GetNavigationPreloadState_Sym::IPCStableHash() {}
uint32_t ServiceWorkerRegistrationObjectHost::SetNavigationPreloadHeader_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class ServiceWorkerRegistrationObjectHost_Update_ForwardToCallback
    : public mojo::MessageReceiver {};

class ServiceWorkerRegistrationObjectHost_Unregister_ForwardToCallback
    : public mojo::MessageReceiver {};

class ServiceWorkerRegistrationObjectHost_EnableNavigationPreload_ForwardToCallback
    : public mojo::MessageReceiver {};

class ServiceWorkerRegistrationObjectHost_GetNavigationPreloadState_ForwardToCallback
    : public mojo::MessageReceiver {};

class ServiceWorkerRegistrationObjectHost_SetNavigationPreloadHeader_ForwardToCallback
    : public mojo::MessageReceiver {};

ServiceWorkerRegistrationObjectHostProxy::ServiceWorkerRegistrationObjectHostProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void ServiceWorkerRegistrationObjectHostProxy::Update(
    ::blink::mojom::FetchClientSettingsObjectPtr in_outside_fetch_client_settings_object, UpdateCallback callback) {}

void ServiceWorkerRegistrationObjectHostProxy::Unregister(
    UnregisterCallback callback) {}

void ServiceWorkerRegistrationObjectHostProxy::EnableNavigationPreload(
    bool in_enable, EnableNavigationPreloadCallback callback) {}

void ServiceWorkerRegistrationObjectHostProxy::GetNavigationPreloadState(
    GetNavigationPreloadStateCallback callback) {}

void ServiceWorkerRegistrationObjectHostProxy::SetNavigationPreloadHeader(
    const std::string& in_value, SetNavigationPreloadHeaderCallback callback) {}
class ServiceWorkerRegistrationObjectHost_Update_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool ServiceWorkerRegistrationObjectHost_Update_ForwardToCallback::Accept(
    mojo::Message* message) {}

void ServiceWorkerRegistrationObjectHost_Update_ProxyToResponder::Run(
    ::blink::mojom::ServiceWorkerErrorType in_error, const std::optional<std::string>& in_error_msg) {}
class ServiceWorkerRegistrationObjectHost_Unregister_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool ServiceWorkerRegistrationObjectHost_Unregister_ForwardToCallback::Accept(
    mojo::Message* message) {}

void ServiceWorkerRegistrationObjectHost_Unregister_ProxyToResponder::Run(
    ::blink::mojom::ServiceWorkerErrorType in_error, const std::optional<std::string>& in_error_msg) {}
class ServiceWorkerRegistrationObjectHost_EnableNavigationPreload_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool ServiceWorkerRegistrationObjectHost_EnableNavigationPreload_ForwardToCallback::Accept(
    mojo::Message* message) {}

void ServiceWorkerRegistrationObjectHost_EnableNavigationPreload_ProxyToResponder::Run(
    ::blink::mojom::ServiceWorkerErrorType in_error, const std::optional<std::string>& in_error_msg) {}
class ServiceWorkerRegistrationObjectHost_GetNavigationPreloadState_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool ServiceWorkerRegistrationObjectHost_GetNavigationPreloadState_ForwardToCallback::Accept(
    mojo::Message* message) {}

void ServiceWorkerRegistrationObjectHost_GetNavigationPreloadState_ProxyToResponder::Run(
    ::blink::mojom::ServiceWorkerErrorType in_error, const std::optional<std::string>& in_error_msg, ::blink::mojom::NavigationPreloadStatePtr in_state) {}
class ServiceWorkerRegistrationObjectHost_SetNavigationPreloadHeader_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool ServiceWorkerRegistrationObjectHost_SetNavigationPreloadHeader_ForwardToCallback::Accept(
    mojo::Message* message) {}

void ServiceWorkerRegistrationObjectHost_SetNavigationPreloadHeader_ProxyToResponder::Run(
    ::blink::mojom::ServiceWorkerErrorType in_error, const std::optional<std::string>& in_error_msg) {}

// static
bool ServiceWorkerRegistrationObjectHostStubDispatch::Accept(
    ServiceWorkerRegistrationObjectHost* impl,
    mojo::Message* message) {}

// static
bool ServiceWorkerRegistrationObjectHostStubDispatch::AcceptWithResponder(
    ServiceWorkerRegistrationObjectHost* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kServiceWorkerRegistrationObjectHostValidationInfo[] =;

bool ServiceWorkerRegistrationObjectHostRequestValidator::Accept(mojo::Message* message) {}

bool ServiceWorkerRegistrationObjectHostResponseValidator::Accept(mojo::Message* message) {}
const char ServiceWorkerRegistrationObject::Name_[] =;

ServiceWorkerRegistrationObject::IPCStableHashFunction ServiceWorkerRegistrationObject::MessageToMethodInfo_(mojo::Message& message) {}


const char* ServiceWorkerRegistrationObject::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ServiceWorkerRegistrationObject::SetServiceWorkerObjects_Sym::IPCStableHash() {}
uint32_t ServiceWorkerRegistrationObject::SetUpdateViaCache_Sym::IPCStableHash() {}
uint32_t ServiceWorkerRegistrationObject::UpdateFound_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

ServiceWorkerRegistrationObjectProxy::ServiceWorkerRegistrationObjectProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void ServiceWorkerRegistrationObjectProxy::SetServiceWorkerObjects(
    ChangedServiceWorkerObjectsMaskPtr in_changed_mask, ::blink::mojom::ServiceWorkerObjectInfoPtr in_installing, ::blink::mojom::ServiceWorkerObjectInfoPtr in_waiting, ::blink::mojom::ServiceWorkerObjectInfoPtr in_active) {}

void ServiceWorkerRegistrationObjectProxy::SetUpdateViaCache(
    ::blink::mojom::ServiceWorkerUpdateViaCache in_update_via_cache) {}

void ServiceWorkerRegistrationObjectProxy::UpdateFound(
    ) {}

// static
bool ServiceWorkerRegistrationObjectStubDispatch::Accept(
    ServiceWorkerRegistrationObject* impl,
    mojo::Message* message) {}

// static
bool ServiceWorkerRegistrationObjectStubDispatch::AcceptWithResponder(
    ServiceWorkerRegistrationObject* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kServiceWorkerRegistrationObjectValidationInfo[] =;

bool ServiceWorkerRegistrationObjectRequestValidator::Accept(mojo::Message* message) {}



}  // blink::mojom


namespace mojo {


// static
bool StructTraits<::blink::mojom::ChangedServiceWorkerObjectsMask::DataView, ::blink::mojom::ChangedServiceWorkerObjectsMaskPtr>::Read(
    ::blink::mojom::ChangedServiceWorkerObjectsMask::DataView input,
    ::blink::mojom::ChangedServiceWorkerObjectsMaskPtr* output) {}


// static
bool StructTraits<::blink::mojom::ServiceWorkerRegistrationObjectInfo::DataView, ::blink::mojom::ServiceWorkerRegistrationObjectInfoPtr>::Read(
    ::blink::mojom::ServiceWorkerRegistrationObjectInfo::DataView input,
    ::blink::mojom::ServiceWorkerRegistrationObjectInfoPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace blink::mojom {


void ServiceWorkerRegistrationObjectHostInterceptorForTesting::Update(::blink::mojom::FetchClientSettingsObjectPtr outside_fetch_client_settings_object, UpdateCallback callback) {}
void ServiceWorkerRegistrationObjectHostInterceptorForTesting::Unregister(UnregisterCallback callback) {}
void ServiceWorkerRegistrationObjectHostInterceptorForTesting::EnableNavigationPreload(bool enable, EnableNavigationPreloadCallback callback) {}
void ServiceWorkerRegistrationObjectHostInterceptorForTesting::GetNavigationPreloadState(GetNavigationPreloadStateCallback callback) {}
void ServiceWorkerRegistrationObjectHostInterceptorForTesting::SetNavigationPreloadHeader(const std::string& value, SetNavigationPreloadHeaderCallback callback) {}
ServiceWorkerRegistrationObjectHostAsyncWaiter::ServiceWorkerRegistrationObjectHostAsyncWaiter(
    ServiceWorkerRegistrationObjectHost* proxy) :{}

ServiceWorkerRegistrationObjectHostAsyncWaiter::~ServiceWorkerRegistrationObjectHostAsyncWaiter() = default;

void ServiceWorkerRegistrationObjectHostAsyncWaiter::Update(
    ::blink::mojom::FetchClientSettingsObjectPtr outside_fetch_client_settings_object, ::blink::mojom::ServiceWorkerErrorType* out_error, std::optional<std::string>* out_error_msg) {}



void ServiceWorkerRegistrationObjectHostAsyncWaiter::Unregister(
    ::blink::mojom::ServiceWorkerErrorType* out_error, std::optional<std::string>* out_error_msg) {}



void ServiceWorkerRegistrationObjectHostAsyncWaiter::EnableNavigationPreload(
    bool enable, ::blink::mojom::ServiceWorkerErrorType* out_error, std::optional<std::string>* out_error_msg) {}



void ServiceWorkerRegistrationObjectHostAsyncWaiter::GetNavigationPreloadState(
    ::blink::mojom::ServiceWorkerErrorType* out_error, std::optional<std::string>* out_error_msg, ::blink::mojom::NavigationPreloadStatePtr* out_state) {}



void ServiceWorkerRegistrationObjectHostAsyncWaiter::SetNavigationPreloadHeader(
    const std::string& value, ::blink::mojom::ServiceWorkerErrorType* out_error, std::optional<std::string>* out_error_msg) {}






void ServiceWorkerRegistrationObjectInterceptorForTesting::SetServiceWorkerObjects(ChangedServiceWorkerObjectsMaskPtr changed_mask, ::blink::mojom::ServiceWorkerObjectInfoPtr installing, ::blink::mojom::ServiceWorkerObjectInfoPtr waiting, ::blink::mojom::ServiceWorkerObjectInfoPtr active) {}
void ServiceWorkerRegistrationObjectInterceptorForTesting::SetUpdateViaCache(::blink::mojom::ServiceWorkerUpdateViaCache update_via_cache) {}
void ServiceWorkerRegistrationObjectInterceptorForTesting::UpdateFound() {}
ServiceWorkerRegistrationObjectAsyncWaiter::ServiceWorkerRegistrationObjectAsyncWaiter(
    ServiceWorkerRegistrationObject* proxy) :{}

ServiceWorkerRegistrationObjectAsyncWaiter::~ServiceWorkerRegistrationObjectAsyncWaiter() = default;






}  // blink::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif