#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_SERVICE_WORKER_CONTROLLER_SERVICE_WORKER_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_SERVICE_WORKER_CONTROLLER_SERVICE_WORKER_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/controller_service_worker.mojom-features.h"
#include "third_party/blink/public/mojom/service_worker/controller_service_worker.mojom-shared.h"
#include "third_party/blink/public/mojom/service_worker/controller_service_worker.mojom-forward.h"
#include "mojo/public/mojom/base/unguessable_token.mojom.h"
#include "services/network/public/mojom/cross_origin_embedder_policy.mojom.h"
#include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom-forward.h"
#include "third_party/blink/public/mojom/service_worker/controller_service_worker_mode.mojom-forward.h"
#include "third_party/blink/public/mojom/service_worker/dispatch_fetch_event_params.mojom-forward.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_embedded_worker_status.mojom.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_event_status.mojom-forward.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_fetch_handler_bypass_option.mojom-forward.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_fetch_handler_type.mojom-forward.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_fetch_response_callback.mojom-forward.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_object.mojom.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-forward.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_running_status_callback.mojom-forward.h"
#include <string>
#include <vector>
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#include "third_party/blink/public/common/common_export.h"
namespace blink::mojom {
class ControllerServiceWorkerProxy;
template <typename ImplRefTraits>
class ControllerServiceWorkerStub;
class ControllerServiceWorkerRequestValidator;
class ControllerServiceWorkerResponseValidator;
class BLINK_COMMON_EXPORT ControllerServiceWorker
: public ControllerServiceWorkerInterfaceBase { … };
class ControllerServiceWorkerConnectorProxy;
template <typename ImplRefTraits>
class ControllerServiceWorkerConnectorStub;
class ControllerServiceWorkerConnectorRequestValidator;
class BLINK_COMMON_EXPORT ControllerServiceWorkerConnector
: public ControllerServiceWorkerConnectorInterfaceBase { … };
class BLINK_COMMON_EXPORT ControllerServiceWorkerProxy
: public ControllerServiceWorker { … };
class BLINK_COMMON_EXPORT ControllerServiceWorkerConnectorProxy
: public ControllerServiceWorkerConnector { … };
class BLINK_COMMON_EXPORT ControllerServiceWorkerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ControllerServiceWorker>>
class ControllerServiceWorkerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ControllerServiceWorkerStub() = default;
~ControllerServiceWorkerStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class BLINK_COMMON_EXPORT ControllerServiceWorkerConnectorStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ControllerServiceWorkerConnector>>
class ControllerServiceWorkerConnectorStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ControllerServiceWorkerConnectorStub() = default;
~ControllerServiceWorkerConnectorStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class BLINK_COMMON_EXPORT ControllerServiceWorkerRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT ControllerServiceWorkerConnectorRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT ControllerServiceWorkerResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT ServiceWorkerRouterData { … };
template <typename T, ServiceWorkerRouterData::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ServiceWorkerRouterData::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ServiceWorkerRouterData::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ServiceWorkerRouterData::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT ControllerServiceWorkerInfo { … };
template <typename T, ControllerServiceWorkerInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ControllerServiceWorkerInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ControllerServiceWorkerInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ControllerServiceWorkerInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ServiceWorkerRouterDataPtr ServiceWorkerRouterData::Clone() const { … }
template <typename T, ServiceWorkerRouterData::EnableIfSame<T>*>
bool ServiceWorkerRouterData::Equals(const T& other_struct) const { … }
template <typename T, ServiceWorkerRouterData::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ControllerServiceWorkerInfoPtr ControllerServiceWorkerInfo::Clone() const { … }
template <typename T, ControllerServiceWorkerInfo::EnableIfSame<T>*>
bool ControllerServiceWorkerInfo::Equals(const T& other_struct) const { … }
template <typename T, ControllerServiceWorkerInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ServiceWorkerRouterData::DataView,
::blink::mojom::ServiceWorkerRouterDataPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ControllerServiceWorkerInfo::DataView,
::blink::mojom::ControllerServiceWorkerInfoPtr> { … };
}
#endif