chromium/out/Default/gen/third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom.h

// third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom.h 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.

#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_SERVICE_WORKER_SERVICE_WORKER_ROUTER_RULE_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_SERVICE_WORKER_SERVICE_WORKER_ROUTER_RULE_MOJOM_H_

#include <stdint.h>

#include <limits>
#include <optional>
#include <type_traits>
#include <utility>

#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"

#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"

#include "third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom-features.h"  // IWYU pragma: export
#include "third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom-shared.h"  // IWYU pragma: export
#include "third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom-forward.h"  // IWYU pragma: export
#include "services/network/public/mojom/fetch_api.mojom-forward.h"
#include "third_party/blink/public/mojom/safe_url_pattern.mojom.h"
#include <string>
#include <vector>




#include "third_party/blink/public/common/service_worker/service_worker_router_rule.h"
#include "third_party/blink/public/common/common_export.h"




namespace blink::mojom {





class BLINK_COMMON_EXPORT ServiceWorkerRouterRunningStatusCondition {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterRunningStatusCondition::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterRunningStatusCondition::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterRunningStatusCondition::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterRunningStatusCondition::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}









class BLINK_COMMON_EXPORT ServiceWorkerRouterNetworkSource {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterNetworkSource::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterNetworkSource::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterNetworkSource::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterNetworkSource::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT ServiceWorkerRouterRaceSource {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterRaceSource::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterRaceSource::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterRaceSource::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterRaceSource::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT ServiceWorkerRouterFetchEventSource {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterFetchEventSource::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterFetchEventSource::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterFetchEventSource::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterFetchEventSource::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT ServiceWorkerRouterCacheSource {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterCacheSource::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterCacheSource::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterCacheSource::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterCacheSource::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}







class BLINK_COMMON_EXPORT ServiceWorkerRouterSource {};






class BLINK_COMMON_EXPORT ServiceWorkerRouterRequestCondition {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterRequestCondition::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterRequestCondition::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterRequestCondition::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterRequestCondition::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT ServiceWorkerRouterOrCondition {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterOrCondition::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterOrCondition::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterOrCondition::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterOrCondition::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT ServiceWorkerRouterNotCondition {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterNotCondition::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterNotCondition::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterNotCondition::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterNotCondition::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT ServiceWorkerRouterCondition {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterCondition::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterCondition::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterCondition::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterCondition::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}









class BLINK_COMMON_EXPORT ServiceWorkerRouterRule {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterRule::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterRule::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterRule::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterRule::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT ServiceWorkerRouterRules {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ServiceWorkerRouterRules::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerRouterRules::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterRules::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerRouterRules::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}

template <typename UnionPtrType>
ServiceWorkerRouterSourcePtr ServiceWorkerRouterSource::Clone() const {}

template <typename T,
          typename std::enable_if<std::is_same<
              T, ServiceWorkerRouterSource>::value>::type*>
bool ServiceWorkerRouterSource::Equals(const T& other) const {}
template <typename StructPtrType>
ServiceWorkerRouterRunningStatusConditionPtr ServiceWorkerRouterRunningStatusCondition::Clone() const {}

template <typename T, ServiceWorkerRouterRunningStatusCondition::EnableIfSame<T>*>
bool ServiceWorkerRouterRunningStatusCondition::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterRunningStatusCondition::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerRouterRequestConditionPtr ServiceWorkerRouterRequestCondition::Clone() const {}

template <typename T, ServiceWorkerRouterRequestCondition::EnableIfSame<T>*>
bool ServiceWorkerRouterRequestCondition::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterRequestCondition::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerRouterOrConditionPtr ServiceWorkerRouterOrCondition::Clone() const {}

template <typename T, ServiceWorkerRouterOrCondition::EnableIfSame<T>*>
bool ServiceWorkerRouterOrCondition::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterOrCondition::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerRouterNotConditionPtr ServiceWorkerRouterNotCondition::Clone() const {}

template <typename T, ServiceWorkerRouterNotCondition::EnableIfSame<T>*>
bool ServiceWorkerRouterNotCondition::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterNotCondition::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerRouterConditionPtr ServiceWorkerRouterCondition::Clone() const {}

template <typename T, ServiceWorkerRouterCondition::EnableIfSame<T>*>
bool ServiceWorkerRouterCondition::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterCondition::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerRouterNetworkSourcePtr ServiceWorkerRouterNetworkSource::Clone() const {}

template <typename T, ServiceWorkerRouterNetworkSource::EnableIfSame<T>*>
bool ServiceWorkerRouterNetworkSource::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterNetworkSource::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerRouterRaceSourcePtr ServiceWorkerRouterRaceSource::Clone() const {}

template <typename T, ServiceWorkerRouterRaceSource::EnableIfSame<T>*>
bool ServiceWorkerRouterRaceSource::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterRaceSource::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerRouterFetchEventSourcePtr ServiceWorkerRouterFetchEventSource::Clone() const {}

template <typename T, ServiceWorkerRouterFetchEventSource::EnableIfSame<T>*>
bool ServiceWorkerRouterFetchEventSource::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterFetchEventSource::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerRouterCacheSourcePtr ServiceWorkerRouterCacheSource::Clone() const {}

template <typename T, ServiceWorkerRouterCacheSource::EnableIfSame<T>*>
bool ServiceWorkerRouterCacheSource::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterCacheSource::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerRouterRulePtr ServiceWorkerRouterRule::Clone() const {}

template <typename T, ServiceWorkerRouterRule::EnableIfSame<T>*>
bool ServiceWorkerRouterRule::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterRule::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerRouterRulesPtr ServiceWorkerRouterRules::Clone() const {}

template <typename T, ServiceWorkerRouterRules::EnableIfSame<T>*>
bool ServiceWorkerRouterRules::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerRouterRules::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}


}  // blink::mojom

namespace mojo {


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterRunningStatusCondition::DataView,
                                         ::blink::mojom::ServiceWorkerRouterRunningStatusConditionPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterRequestCondition::DataView,
                                         ::blink::mojom::ServiceWorkerRouterRequestConditionPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterOrCondition::DataView,
                                         ::blink::mojom::ServiceWorkerRouterOrConditionPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterNotCondition::DataView,
                                         ::blink::mojom::ServiceWorkerRouterNotConditionPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterCondition::DataView,
                                         ::blink::mojom::ServiceWorkerRouterConditionPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterNetworkSource::DataView,
                                         ::blink::mojom::ServiceWorkerRouterNetworkSourcePtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterRaceSource::DataView,
                                         ::blink::mojom::ServiceWorkerRouterRaceSourcePtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterFetchEventSource::DataView,
                                         ::blink::mojom::ServiceWorkerRouterFetchEventSourcePtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterCacheSource::DataView,
                                         ::blink::mojom::ServiceWorkerRouterCacheSourcePtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterRule::DataView,
                                         ::blink::mojom::ServiceWorkerRouterRulePtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterRules::DataView,
                                         ::blink::mojom::ServiceWorkerRouterRulesPtr> {};


template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::ServiceWorkerRouterSource::DataView,
                                        ::blink::mojom::ServiceWorkerRouterSourcePtr> {};

}  // namespace mojo

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_SERVICE_WORKER_SERVICE_WORKER_ROUTER_RULE_MOJOM_H_