#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_BACKGROUND_FETCH_BACKGROUND_FETCH_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_BACKGROUND_FETCH_BACKGROUND_FETCH_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/background_fetch/background_fetch.mojom-features.h"
#include "third_party/blink/public/mojom/background_fetch/background_fetch.mojom-shared.h"
#include "third_party/blink/public/mojom/background_fetch/background_fetch.mojom-forward.h"
#include "skia/public/mojom/bitmap.mojom.h"
#include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom-forward.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_response.mojom.h"
#include "third_party/blink/public/mojom/manifest/manifest.mojom.h"
#include "ui/gfx/geometry/mojom/geometry.mojom.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 "mojo/public/cpp/bindings/lib/native_enum_serialization.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
#include "third_party/blink/public/common/common_export.h"
namespace blink::mojom {
class BackgroundFetchRegistrationObserverProxy;
template <typename ImplRefTraits>
class BackgroundFetchRegistrationObserverStub;
class BackgroundFetchRegistrationObserverRequestValidator;
class BLINK_COMMON_EXPORT BackgroundFetchRegistrationObserver
: public BackgroundFetchRegistrationObserverInterfaceBase { … };
class BackgroundFetchServiceProxy;
template <typename ImplRefTraits>
class BackgroundFetchServiceStub;
class BackgroundFetchServiceRequestValidator;
class BackgroundFetchServiceResponseValidator;
class BLINK_COMMON_EXPORT BackgroundFetchService
: public BackgroundFetchServiceInterfaceBase { … };
class BackgroundFetchRegistrationServiceProxy;
template <typename ImplRefTraits>
class BackgroundFetchRegistrationServiceStub;
class BackgroundFetchRegistrationServiceRequestValidator;
class BackgroundFetchRegistrationServiceResponseValidator;
class BLINK_COMMON_EXPORT BackgroundFetchRegistrationService
: public BackgroundFetchRegistrationServiceInterfaceBase { … };
class BLINK_COMMON_EXPORT BackgroundFetchRegistrationObserverProxy
: public BackgroundFetchRegistrationObserver { … };
class BLINK_COMMON_EXPORT BackgroundFetchServiceProxy
: public BackgroundFetchService { … };
class BLINK_COMMON_EXPORT BackgroundFetchRegistrationServiceProxy
: public BackgroundFetchRegistrationService { … };
class BLINK_COMMON_EXPORT BackgroundFetchRegistrationObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<BackgroundFetchRegistrationObserver>>
class BackgroundFetchRegistrationObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
BackgroundFetchRegistrationObserverStub() = default;
~BackgroundFetchRegistrationObserverStub() 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 BackgroundFetchServiceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<BackgroundFetchService>>
class BackgroundFetchServiceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
BackgroundFetchServiceStub() = default;
~BackgroundFetchServiceStub() 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 BackgroundFetchRegistrationServiceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<BackgroundFetchRegistrationService>>
class BackgroundFetchRegistrationServiceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
BackgroundFetchRegistrationServiceStub() = default;
~BackgroundFetchRegistrationServiceStub() 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 BackgroundFetchRegistrationObserverRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT BackgroundFetchServiceRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT BackgroundFetchRegistrationServiceRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT BackgroundFetchServiceResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT BackgroundFetchRegistrationServiceResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT BackgroundFetchUkmData { … };
template <typename T, BackgroundFetchUkmData::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BackgroundFetchUkmData::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundFetchUkmData::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundFetchUkmData::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT BackgroundFetchSettledFetch { … };
template <typename T, BackgroundFetchSettledFetch::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BackgroundFetchSettledFetch::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundFetchSettledFetch::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundFetchSettledFetch::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT BackgroundFetchOptions { … };
template <typename T, BackgroundFetchOptions::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BackgroundFetchOptions::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundFetchOptions::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundFetchOptions::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT BackgroundFetchRegistrationData { … };
template <typename T, BackgroundFetchRegistrationData::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BackgroundFetchRegistrationData::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundFetchRegistrationData::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundFetchRegistrationData::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT BackgroundFetchRegistration { … };
template <typename T, BackgroundFetchRegistration::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BackgroundFetchRegistration::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundFetchRegistration::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundFetchRegistration::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BackgroundFetchSettledFetchPtr BackgroundFetchSettledFetch::Clone() const { … }
template <typename T, BackgroundFetchSettledFetch::EnableIfSame<T>*>
bool BackgroundFetchSettledFetch::Equals(const T& other_struct) const { … }
template <typename T, BackgroundFetchSettledFetch::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BackgroundFetchOptionsPtr BackgroundFetchOptions::Clone() const { … }
template <typename T, BackgroundFetchOptions::EnableIfSame<T>*>
bool BackgroundFetchOptions::Equals(const T& other_struct) const { … }
template <typename T, BackgroundFetchOptions::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BackgroundFetchRegistrationDataPtr BackgroundFetchRegistrationData::Clone() const { … }
template <typename T, BackgroundFetchRegistrationData::EnableIfSame<T>*>
bool BackgroundFetchRegistrationData::Equals(const T& other_struct) const { … }
template <typename T, BackgroundFetchRegistrationData::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BackgroundFetchRegistrationPtr BackgroundFetchRegistration::Clone() const { … }
template <typename T, BackgroundFetchRegistration::EnableIfSame<T>*>
bool BackgroundFetchRegistration::Equals(const T& other_struct) const { … }
template <typename T, BackgroundFetchRegistration::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BackgroundFetchUkmDataPtr BackgroundFetchUkmData::Clone() const { … }
template <typename T, BackgroundFetchUkmData::EnableIfSame<T>*>
bool BackgroundFetchUkmData::Equals(const T& other_struct) const { … }
template <typename T, BackgroundFetchUkmData::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::BackgroundFetchSettledFetch::DataView,
::blink::mojom::BackgroundFetchSettledFetchPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::BackgroundFetchOptions::DataView,
::blink::mojom::BackgroundFetchOptionsPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::BackgroundFetchRegistrationData::DataView,
::blink::mojom::BackgroundFetchRegistrationDataPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::BackgroundFetchRegistration::DataView,
::blink::mojom::BackgroundFetchRegistrationPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::BackgroundFetchUkmData::DataView,
::blink::mojom::BackgroundFetchUkmDataPtr> { … };
}
#endif