#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_router_rule.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/service_worker/service_worker_router_rule.mojom-params-data.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
ServiceWorkerRouterRunningStatusCondition::ServiceWorkerRouterRunningStatusCondition()
: … { … }
ServiceWorkerRouterRunningStatusCondition::ServiceWorkerRouterRunningStatusCondition(
ServiceWorkerRouterRunningStatusEnum status_in)
: … { … }
ServiceWorkerRouterRunningStatusCondition::~ServiceWorkerRouterRunningStatusCondition() = default;
size_t ServiceWorkerRouterRunningStatusCondition::Hash(size_t seed) const { … }
void ServiceWorkerRouterRunningStatusCondition::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterRunningStatusCondition::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterRequestCondition::ServiceWorkerRouterRequestCondition()
: … { … }
ServiceWorkerRouterRequestCondition::ServiceWorkerRouterRequestCondition(
const WTF::String& method_in,
bool has_mode_in,
::network::mojom::blink::RequestMode mode_in,
bool has_destination_in,
::network::mojom::blink::RequestDestination destination_in)
: … { … }
ServiceWorkerRouterRequestCondition::~ServiceWorkerRouterRequestCondition() = default;
void ServiceWorkerRouterRequestCondition::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterRequestCondition::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterOrCondition::ServiceWorkerRouterOrCondition()
: … { … }
ServiceWorkerRouterOrCondition::ServiceWorkerRouterOrCondition(
WTF::Vector<ServiceWorkerRouterConditionPtr> conditions_in)
: … { … }
ServiceWorkerRouterOrCondition::~ServiceWorkerRouterOrCondition() = default;
void ServiceWorkerRouterOrCondition::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterOrCondition::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterNotCondition::ServiceWorkerRouterNotCondition()
: … { … }
ServiceWorkerRouterNotCondition::ServiceWorkerRouterNotCondition(
ServiceWorkerRouterConditionPtr condition_in)
: … { … }
ServiceWorkerRouterNotCondition::~ServiceWorkerRouterNotCondition() = default;
void ServiceWorkerRouterNotCondition::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterNotCondition::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterCondition::ServiceWorkerRouterCondition()
: … { … }
ServiceWorkerRouterCondition::ServiceWorkerRouterCondition(
const std::optional<::blink::SafeUrlPattern>& url_pattern_in,
ServiceWorkerRouterRequestConditionPtr request_in,
ServiceWorkerRouterRunningStatusConditionPtr running_status_in,
ServiceWorkerRouterOrConditionPtr or_condition_in,
ServiceWorkerRouterNotConditionPtr not_condition_in)
: … { … }
ServiceWorkerRouterCondition::~ServiceWorkerRouterCondition() = default;
void ServiceWorkerRouterCondition::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterCondition::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterNetworkSource::ServiceWorkerRouterNetworkSource() { … }
ServiceWorkerRouterNetworkSource::~ServiceWorkerRouterNetworkSource() = default;
size_t ServiceWorkerRouterNetworkSource::Hash(size_t seed) const { … }
void ServiceWorkerRouterNetworkSource::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterNetworkSource::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterRaceSource::ServiceWorkerRouterRaceSource() { … }
ServiceWorkerRouterRaceSource::~ServiceWorkerRouterRaceSource() = default;
size_t ServiceWorkerRouterRaceSource::Hash(size_t seed) const { … }
void ServiceWorkerRouterRaceSource::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterRaceSource::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterFetchEventSource::ServiceWorkerRouterFetchEventSource() { … }
ServiceWorkerRouterFetchEventSource::~ServiceWorkerRouterFetchEventSource() = default;
size_t ServiceWorkerRouterFetchEventSource::Hash(size_t seed) const { … }
void ServiceWorkerRouterFetchEventSource::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterFetchEventSource::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterCacheSource::ServiceWorkerRouterCacheSource()
: … { … }
ServiceWorkerRouterCacheSource::ServiceWorkerRouterCacheSource(
const WTF::String& cache_name_in)
: … { … }
ServiceWorkerRouterCacheSource::~ServiceWorkerRouterCacheSource() = default;
void ServiceWorkerRouterCacheSource::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterCacheSource::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterRule::ServiceWorkerRouterRule()
: … { … }
ServiceWorkerRouterRule::ServiceWorkerRouterRule(
ServiceWorkerRouterConditionPtr condition_in,
WTF::Vector<ServiceWorkerRouterSourcePtr> sources_in)
: … { … }
ServiceWorkerRouterRule::~ServiceWorkerRouterRule() = default;
void ServiceWorkerRouterRule::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterRule::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterRules::ServiceWorkerRouterRules()
: … { … }
ServiceWorkerRouterRules::ServiceWorkerRouterRules(
WTF::Vector<ServiceWorkerRouterRulePtr> rules_in)
: … { … }
ServiceWorkerRouterRules::~ServiceWorkerRouterRules() = default;
void ServiceWorkerRouterRules::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ServiceWorkerRouterRules::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ServiceWorkerRouterSource::ServiceWorkerRouterSource() : … { … }
ServiceWorkerRouterSource::~ServiceWorkerRouterSource() { … }
void ServiceWorkerRouterSource::set_network_source(
ServiceWorkerRouterNetworkSourcePtr network_source) { … }
void ServiceWorkerRouterSource::set_race_source(
ServiceWorkerRouterRaceSourcePtr race_source) { … }
void ServiceWorkerRouterSource::set_fetch_event_source(
ServiceWorkerRouterFetchEventSourcePtr fetch_event_source) { … }
void ServiceWorkerRouterSource::set_cache_source(
ServiceWorkerRouterCacheSourcePtr cache_source) { … }
void ServiceWorkerRouterSource::DestroyActive() { … }
bool ServiceWorkerRouterSource::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterRunningStatusCondition::DataView, ::blink::mojom::blink::ServiceWorkerRouterRunningStatusConditionPtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterRunningStatusCondition::DataView input,
::blink::mojom::blink::ServiceWorkerRouterRunningStatusConditionPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterRequestCondition::DataView, ::blink::mojom::blink::ServiceWorkerRouterRequestConditionPtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterRequestCondition::DataView input,
::blink::mojom::blink::ServiceWorkerRouterRequestConditionPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterOrCondition::DataView, ::blink::mojom::blink::ServiceWorkerRouterOrConditionPtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterOrCondition::DataView input,
::blink::mojom::blink::ServiceWorkerRouterOrConditionPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterNotCondition::DataView, ::blink::mojom::blink::ServiceWorkerRouterNotConditionPtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterNotCondition::DataView input,
::blink::mojom::blink::ServiceWorkerRouterNotConditionPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterCondition::DataView, ::blink::mojom::blink::ServiceWorkerRouterConditionPtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterCondition::DataView input,
::blink::mojom::blink::ServiceWorkerRouterConditionPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterNetworkSource::DataView, ::blink::mojom::blink::ServiceWorkerRouterNetworkSourcePtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterNetworkSource::DataView input,
::blink::mojom::blink::ServiceWorkerRouterNetworkSourcePtr* output) { … }
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterRaceSource::DataView, ::blink::mojom::blink::ServiceWorkerRouterRaceSourcePtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterRaceSource::DataView input,
::blink::mojom::blink::ServiceWorkerRouterRaceSourcePtr* output) { … }
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterFetchEventSource::DataView, ::blink::mojom::blink::ServiceWorkerRouterFetchEventSourcePtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterFetchEventSource::DataView input,
::blink::mojom::blink::ServiceWorkerRouterFetchEventSourcePtr* output) { … }
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterCacheSource::DataView, ::blink::mojom::blink::ServiceWorkerRouterCacheSourcePtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterCacheSource::DataView input,
::blink::mojom::blink::ServiceWorkerRouterCacheSourcePtr* output) { … }
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterRule::DataView, ::blink::mojom::blink::ServiceWorkerRouterRulePtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterRule::DataView input,
::blink::mojom::blink::ServiceWorkerRouterRulePtr* output) { … }
bool StructTraits<::blink::mojom::blink::ServiceWorkerRouterRules::DataView, ::blink::mojom::blink::ServiceWorkerRouterRulesPtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterRules::DataView input,
::blink::mojom::blink::ServiceWorkerRouterRulesPtr* output) { … }
bool UnionTraits<::blink::mojom::blink::ServiceWorkerRouterSource::DataView, ::blink::mojom::blink::ServiceWorkerRouterSourcePtr>::Read(
::blink::mojom::blink::ServiceWorkerRouterSource::DataView input,
::blink::mojom::blink::ServiceWorkerRouterSourcePtr* output) { … }
}
namespace blink::mojom::blink {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif