#include "third_party/blink/public/mojom/service_worker/service_worker.mojom-shared.h"
#include <ostream>
#include <utility>
#include "base/strings/stringprintf.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "third_party/blink/public/mojom/service_worker/service_worker.mojom-params-data.h"
namespace blink {
namespace mojom {
NOINLINE static const char* FetchHandlerExistenceToStringHelper(FetchHandlerExistence value) { … }
std::string FetchHandlerExistenceToString(FetchHandlerExistence value) { … }
std::ostream& operator<<(std::ostream& os, FetchHandlerExistence value) { … }
namespace internal {
bool ExtendableMessageEvent_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ExtendableMessageEvent_Data::ExtendableMessageEvent_Data()
: … { … }
bool ServiceWorkerHost_SetCachedMetadata_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_SetCachedMetadata_Params_Data::ServiceWorkerHost_SetCachedMetadata_Params_Data()
: … { … }
bool ServiceWorkerHost_ClearCachedMetadata_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_ClearCachedMetadata_Params_Data::ServiceWorkerHost_ClearCachedMetadata_Params_Data()
: … { … }
bool ServiceWorkerHost_GetClients_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_GetClients_Params_Data::ServiceWorkerHost_GetClients_Params_Data()
: … { … }
bool ServiceWorkerHost_GetClients_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_GetClients_ResponseParams_Data::ServiceWorkerHost_GetClients_ResponseParams_Data()
: … { … }
bool ServiceWorkerHost_GetClient_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_GetClient_Params_Data::ServiceWorkerHost_GetClient_Params_Data()
: … { … }
bool ServiceWorkerHost_GetClient_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_GetClient_ResponseParams_Data::ServiceWorkerHost_GetClient_ResponseParams_Data()
: … { … }
bool ServiceWorkerHost_OpenNewTab_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_OpenNewTab_Params_Data::ServiceWorkerHost_OpenNewTab_Params_Data()
: … { … }
bool ServiceWorkerHost_OpenNewTab_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_OpenNewTab_ResponseParams_Data::ServiceWorkerHost_OpenNewTab_ResponseParams_Data()
: … { … }
bool ServiceWorkerHost_OpenPaymentHandlerWindow_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_OpenPaymentHandlerWindow_Params_Data::ServiceWorkerHost_OpenPaymentHandlerWindow_Params_Data()
: … { … }
bool ServiceWorkerHost_OpenPaymentHandlerWindow_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_OpenPaymentHandlerWindow_ResponseParams_Data::ServiceWorkerHost_OpenPaymentHandlerWindow_ResponseParams_Data()
: … { … }
bool ServiceWorkerHost_PostMessageToClient_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_PostMessageToClient_Params_Data::ServiceWorkerHost_PostMessageToClient_Params_Data()
: … { … }
bool ServiceWorkerHost_FocusClient_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_FocusClient_Params_Data::ServiceWorkerHost_FocusClient_Params_Data()
: … { … }
bool ServiceWorkerHost_FocusClient_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_FocusClient_ResponseParams_Data::ServiceWorkerHost_FocusClient_ResponseParams_Data()
: … { … }
bool ServiceWorkerHost_NavigateClient_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_NavigateClient_Params_Data::ServiceWorkerHost_NavigateClient_Params_Data()
: … { … }
bool ServiceWorkerHost_NavigateClient_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_NavigateClient_ResponseParams_Data::ServiceWorkerHost_NavigateClient_ResponseParams_Data()
: … { … }
bool ServiceWorkerHost_SkipWaiting_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_SkipWaiting_Params_Data::ServiceWorkerHost_SkipWaiting_Params_Data()
: … { … }
bool ServiceWorkerHost_SkipWaiting_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_SkipWaiting_ResponseParams_Data::ServiceWorkerHost_SkipWaiting_ResponseParams_Data()
: … { … }
bool ServiceWorkerHost_ClaimClients_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_ClaimClients_Params_Data::ServiceWorkerHost_ClaimClients_Params_Data()
: … { … }
bool ServiceWorkerHost_ClaimClients_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_ClaimClients_ResponseParams_Data::ServiceWorkerHost_ClaimClients_ResponseParams_Data()
: … { … }
bool ServiceWorkerHost_AddRoutes_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_AddRoutes_Params_Data::ServiceWorkerHost_AddRoutes_Params_Data()
: … { … }
bool ServiceWorkerHost_AddRoutes_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerHost_AddRoutes_ResponseParams_Data::ServiceWorkerHost_AddRoutes_ResponseParams_Data()
: … { … }
bool ServiceWorker_InitializeGlobalScope_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_InitializeGlobalScope_Params_Data::ServiceWorker_InitializeGlobalScope_Params_Data()
: … { … }
bool ServiceWorker_DispatchInstallEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchInstallEvent_Params_Data::ServiceWorker_DispatchInstallEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchInstallEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchInstallEvent_ResponseParams_Data::ServiceWorker_DispatchInstallEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchActivateEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchActivateEvent_Params_Data::ServiceWorker_DispatchActivateEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchActivateEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchActivateEvent_ResponseParams_Data::ServiceWorker_DispatchActivateEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchBackgroundFetchAbortEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchBackgroundFetchAbortEvent_Params_Data::ServiceWorker_DispatchBackgroundFetchAbortEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchBackgroundFetchAbortEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchBackgroundFetchAbortEvent_ResponseParams_Data::ServiceWorker_DispatchBackgroundFetchAbortEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchBackgroundFetchClickEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchBackgroundFetchClickEvent_Params_Data::ServiceWorker_DispatchBackgroundFetchClickEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchBackgroundFetchClickEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchBackgroundFetchClickEvent_ResponseParams_Data::ServiceWorker_DispatchBackgroundFetchClickEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchBackgroundFetchFailEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchBackgroundFetchFailEvent_Params_Data::ServiceWorker_DispatchBackgroundFetchFailEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchBackgroundFetchFailEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchBackgroundFetchFailEvent_ResponseParams_Data::ServiceWorker_DispatchBackgroundFetchFailEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchBackgroundFetchSuccessEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchBackgroundFetchSuccessEvent_Params_Data::ServiceWorker_DispatchBackgroundFetchSuccessEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchBackgroundFetchSuccessEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchBackgroundFetchSuccessEvent_ResponseParams_Data::ServiceWorker_DispatchBackgroundFetchSuccessEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchCookieChangeEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchCookieChangeEvent_Params_Data::ServiceWorker_DispatchCookieChangeEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchCookieChangeEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchCookieChangeEvent_ResponseParams_Data::ServiceWorker_DispatchCookieChangeEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchFetchEventForMainResource_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchFetchEventForMainResource_Params_Data::ServiceWorker_DispatchFetchEventForMainResource_Params_Data()
: … { … }
bool ServiceWorker_DispatchFetchEventForMainResource_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchFetchEventForMainResource_ResponseParams_Data::ServiceWorker_DispatchFetchEventForMainResource_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchNotificationClickEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchNotificationClickEvent_Params_Data::ServiceWorker_DispatchNotificationClickEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchNotificationClickEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchNotificationClickEvent_ResponseParams_Data::ServiceWorker_DispatchNotificationClickEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchNotificationCloseEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchNotificationCloseEvent_Params_Data::ServiceWorker_DispatchNotificationCloseEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchNotificationCloseEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchNotificationCloseEvent_ResponseParams_Data::ServiceWorker_DispatchNotificationCloseEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchPushEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchPushEvent_Params_Data::ServiceWorker_DispatchPushEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchPushEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchPushEvent_ResponseParams_Data::ServiceWorker_DispatchPushEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchPushSubscriptionChangeEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchPushSubscriptionChangeEvent_Params_Data::ServiceWorker_DispatchPushSubscriptionChangeEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchPushSubscriptionChangeEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchPushSubscriptionChangeEvent_ResponseParams_Data::ServiceWorker_DispatchPushSubscriptionChangeEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchSyncEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchSyncEvent_Params_Data::ServiceWorker_DispatchSyncEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchSyncEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchSyncEvent_ResponseParams_Data::ServiceWorker_DispatchSyncEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchPeriodicSyncEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchPeriodicSyncEvent_Params_Data::ServiceWorker_DispatchPeriodicSyncEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchPeriodicSyncEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchPeriodicSyncEvent_ResponseParams_Data::ServiceWorker_DispatchPeriodicSyncEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchAbortPaymentEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchAbortPaymentEvent_Params_Data::ServiceWorker_DispatchAbortPaymentEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchAbortPaymentEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchAbortPaymentEvent_ResponseParams_Data::ServiceWorker_DispatchAbortPaymentEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchCanMakePaymentEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchCanMakePaymentEvent_Params_Data::ServiceWorker_DispatchCanMakePaymentEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchCanMakePaymentEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchCanMakePaymentEvent_ResponseParams_Data::ServiceWorker_DispatchCanMakePaymentEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchPaymentRequestEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchPaymentRequestEvent_Params_Data::ServiceWorker_DispatchPaymentRequestEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchPaymentRequestEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchPaymentRequestEvent_ResponseParams_Data::ServiceWorker_DispatchPaymentRequestEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchExtendableMessageEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchExtendableMessageEvent_Params_Data::ServiceWorker_DispatchExtendableMessageEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchExtendableMessageEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchExtendableMessageEvent_ResponseParams_Data::ServiceWorker_DispatchExtendableMessageEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_DispatchContentDeleteEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchContentDeleteEvent_Params_Data::ServiceWorker_DispatchContentDeleteEvent_Params_Data()
: … { … }
bool ServiceWorker_DispatchContentDeleteEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_DispatchContentDeleteEvent_ResponseParams_Data::ServiceWorker_DispatchContentDeleteEvent_ResponseParams_Data()
: … { … }
bool ServiceWorker_Ping_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_Ping_Params_Data::ServiceWorker_Ping_Params_Data()
: … { … }
bool ServiceWorker_Ping_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_Ping_ResponseParams_Data::ServiceWorker_Ping_ResponseParams_Data()
: … { … }
bool ServiceWorker_SetIdleDelay_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_SetIdleDelay_Params_Data::ServiceWorker_SetIdleDelay_Params_Data()
: … { … }
bool ServiceWorker_AddKeepAlive_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_AddKeepAlive_Params_Data::ServiceWorker_AddKeepAlive_Params_Data()
: … { … }
bool ServiceWorker_ClearKeepAlive_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_ClearKeepAlive_Params_Data::ServiceWorker_ClearKeepAlive_Params_Data()
: … { … }
bool ServiceWorker_AddMessageToConsole_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_AddMessageToConsole_Params_Data::ServiceWorker_AddMessageToConsole_Params_Data()
: … { … }
bool ServiceWorker_ExecuteScriptForTest_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_ExecuteScriptForTest_Params_Data::ServiceWorker_ExecuteScriptForTest_Params_Data()
: … { … }
bool ServiceWorker_ExecuteScriptForTest_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorker_ExecuteScriptForTest_ResponseParams_Data::ServiceWorker_ExecuteScriptForTest_ResponseParams_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::FetchHandlerExistence>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::FetchHandlerExistence value) { … }
}