#ifndef SERVICES_DEVICE_PUBLIC_MOJOM_SENSOR_PROVIDER_MOJOM_BLINK_H_
#define SERVICES_DEVICE_PUBLIC_MOJOM_SENSOR_PROVIDER_MOJOM_BLINK_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 "services/device/public/mojom/sensor_provider.mojom-features.h"
#include "services/device/public/mojom/sensor_provider.mojom-shared.h"
#include "services/device/public/mojom/sensor_provider.mojom-blink-forward.h"
#include "mojo/public/mojom/base/shared_memory.mojom-blink.h"
#include "services/device/public/mojom/sensor.mojom-blink.h"
#include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h"
#include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
#include "third_party/blink/renderer/platform/wtf/hash_functions.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#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/platform/web_common.h"
namespace device::mojom::blink {
class SensorProviderProxy;
template <typename ImplRefTraits>
class SensorProviderStub;
class SensorProviderRequestValidator;
class SensorProviderResponseValidator;
class BLINK_PLATFORM_EXPORT SensorProvider
: public SensorProviderInterfaceBase { … };
class BLINK_PLATFORM_EXPORT SensorProviderProxy
: public SensorProvider { … };
class BLINK_PLATFORM_EXPORT SensorProviderStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SensorProvider>>
class SensorProviderStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SensorProviderStub() = default;
~SensorProviderStub() 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_PLATFORM_EXPORT SensorProviderRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT SensorProviderResponseValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT VirtualSensorMetadata { … };
template <typename T, VirtualSensorMetadata::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, VirtualSensorMetadata::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, VirtualSensorMetadata::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, VirtualSensorMetadata::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT VirtualSensorInformation { … };
template <typename T, VirtualSensorInformation::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, VirtualSensorInformation::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, VirtualSensorInformation::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, VirtualSensorInformation::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT GetVirtualSensorInformationResult { … };
class BLINK_PLATFORM_EXPORT SensorInitParams { … };
template <typename T, SensorInitParams::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SensorInitParams::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SensorInitParams::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SensorInitParams::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
GetVirtualSensorInformationResultPtr GetVirtualSensorInformationResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, GetVirtualSensorInformationResult>::value>::type*>
bool GetVirtualSensorInformationResult::Equals(const T& other) const { … }
template <typename StructPtrType>
SensorInitParamsPtr SensorInitParams::Clone() const { … }
template <typename T, SensorInitParams::EnableIfSame<T>*>
bool SensorInitParams::Equals(const T& other_struct) const { … }
template <typename T, SensorInitParams::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
VirtualSensorMetadataPtr VirtualSensorMetadata::Clone() const { … }
template <typename T, VirtualSensorMetadata::EnableIfSame<T>*>
bool VirtualSensorMetadata::Equals(const T& other_struct) const { … }
template <typename T, VirtualSensorMetadata::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
VirtualSensorInformationPtr VirtualSensorInformation::Clone() const { … }
template <typename T, VirtualSensorInformation::EnableIfSame<T>*>
bool VirtualSensorInformation::Equals(const T& other_struct) const { … }
template <typename T, VirtualSensorInformation::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::device::mojom::blink::SensorInitParams::DataView,
::device::mojom::blink::SensorInitParamsPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::device::mojom::blink::VirtualSensorMetadata::DataView,
::device::mojom::blink::VirtualSensorMetadataPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::device::mojom::blink::VirtualSensorInformation::DataView,
::device::mojom::blink::VirtualSensorInformationPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT UnionTraits<::device::mojom::blink::GetVirtualSensorInformationResult::DataView,
::device::mojom::blink::GetVirtualSensorInformationResultPtr> { … };
}
#endif