#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_PERMISSIONS_PERMISSION_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_PERMISSIONS_PERMISSION_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 "third_party/blink/public/mojom/permissions/permission.mojom-features.h"
#include "third_party/blink/public/mojom/permissions/permission.mojom-shared.h"
#include "third_party/blink/public/mojom/permissions/permission.mojom-blink-forward.h"
#include "third_party/blink/public/mojom/permissions/permission_status.mojom-blink-forward.h"
#include "url/mojom/origin.mojom-blink.h"
#include "ui/gfx/geometry/mojom/geometry.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/renderer/platform/platform_export.h"
namespace blink::mojom::blink {
class PermissionObserverProxy;
template <typename ImplRefTraits>
class PermissionObserverStub;
class PermissionObserverRequestValidator;
class PLATFORM_EXPORT PermissionObserver
: public PermissionObserverInterfaceBase { … };
class EmbeddedPermissionControlClientProxy;
template <typename ImplRefTraits>
class EmbeddedPermissionControlClientStub;
class EmbeddedPermissionControlClientRequestValidator;
class PLATFORM_EXPORT EmbeddedPermissionControlClient
: public EmbeddedPermissionControlClientInterfaceBase { … };
class PermissionServiceProxy;
template <typename ImplRefTraits>
class PermissionServiceStub;
class PermissionServiceRequestValidator;
class PermissionServiceResponseValidator;
class PLATFORM_EXPORT PermissionService
: public PermissionServiceInterfaceBase { … };
class PLATFORM_EXPORT PermissionObserverProxy
: public PermissionObserver { … };
class PLATFORM_EXPORT EmbeddedPermissionControlClientProxy
: public EmbeddedPermissionControlClient { … };
class PLATFORM_EXPORT PermissionServiceProxy
: public PermissionService { … };
class PLATFORM_EXPORT PermissionObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PermissionObserver>>
class PermissionObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PermissionObserverStub() = default;
~PermissionObserverStub() 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 PLATFORM_EXPORT EmbeddedPermissionControlClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<EmbeddedPermissionControlClient>>
class EmbeddedPermissionControlClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
EmbeddedPermissionControlClientStub() = default;
~EmbeddedPermissionControlClientStub() 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 PLATFORM_EXPORT PermissionServiceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PermissionService>>
class PermissionServiceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PermissionServiceStub() = default;
~PermissionServiceStub() 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 PLATFORM_EXPORT PermissionObserverRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT EmbeddedPermissionControlClientRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT PermissionServiceRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT PermissionServiceResponseValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT MidiPermissionDescriptor { … };
template <typename T, MidiPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, MidiPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, MidiPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, MidiPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT ClipboardPermissionDescriptor { … };
template <typename T, ClipboardPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ClipboardPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ClipboardPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ClipboardPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT CameraDevicePermissionDescriptor { … };
template <typename T, CameraDevicePermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CameraDevicePermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CameraDevicePermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CameraDevicePermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT FullscreenPermissionDescriptor { … };
template <typename T, FullscreenPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FullscreenPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FullscreenPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FullscreenPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT PermissionDescriptorExtension { … };
class PLATFORM_EXPORT TopLevelStorageAccessPermissionDescriptor { … };
template <typename T, TopLevelStorageAccessPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, TopLevelStorageAccessPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, TopLevelStorageAccessPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, TopLevelStorageAccessPermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT PermissionDescriptor { … };
template <typename T, PermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PermissionDescriptor::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT EmbeddedPermissionRequestDescriptor { … };
template <typename T, EmbeddedPermissionRequestDescriptor::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, EmbeddedPermissionRequestDescriptor::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, EmbeddedPermissionRequestDescriptor::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, EmbeddedPermissionRequestDescriptor::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
PermissionDescriptorExtensionPtr PermissionDescriptorExtension::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, PermissionDescriptorExtension>::value>::type*>
bool PermissionDescriptorExtension::Equals(const T& other) const { … }
template <typename StructPtrType>
MidiPermissionDescriptorPtr MidiPermissionDescriptor::Clone() const { … }
template <typename T, MidiPermissionDescriptor::EnableIfSame<T>*>
bool MidiPermissionDescriptor::Equals(const T& other_struct) const { … }
template <typename T, MidiPermissionDescriptor::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ClipboardPermissionDescriptorPtr ClipboardPermissionDescriptor::Clone() const { … }
template <typename T, ClipboardPermissionDescriptor::EnableIfSame<T>*>
bool ClipboardPermissionDescriptor::Equals(const T& other_struct) const { … }
template <typename T, ClipboardPermissionDescriptor::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CameraDevicePermissionDescriptorPtr CameraDevicePermissionDescriptor::Clone() const { … }
template <typename T, CameraDevicePermissionDescriptor::EnableIfSame<T>*>
bool CameraDevicePermissionDescriptor::Equals(const T& other_struct) const { … }
template <typename T, CameraDevicePermissionDescriptor::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
TopLevelStorageAccessPermissionDescriptorPtr TopLevelStorageAccessPermissionDescriptor::Clone() const { … }
template <typename T, TopLevelStorageAccessPermissionDescriptor::EnableIfSame<T>*>
bool TopLevelStorageAccessPermissionDescriptor::Equals(const T& other_struct) const { … }
template <typename T, TopLevelStorageAccessPermissionDescriptor::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FullscreenPermissionDescriptorPtr FullscreenPermissionDescriptor::Clone() const { … }
template <typename T, FullscreenPermissionDescriptor::EnableIfSame<T>*>
bool FullscreenPermissionDescriptor::Equals(const T& other_struct) const { … }
template <typename T, FullscreenPermissionDescriptor::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PermissionDescriptorPtr PermissionDescriptor::Clone() const { … }
template <typename T, PermissionDescriptor::EnableIfSame<T>*>
bool PermissionDescriptor::Equals(const T& other_struct) const { … }
template <typename T, PermissionDescriptor::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
EmbeddedPermissionRequestDescriptorPtr EmbeddedPermissionRequestDescriptor::Clone() const { … }
template <typename T, EmbeddedPermissionRequestDescriptor::EnableIfSame<T>*>
bool EmbeddedPermissionRequestDescriptor::Equals(const T& other_struct) const { … }
template <typename T, EmbeddedPermissionRequestDescriptor::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::MidiPermissionDescriptor::DataView,
::blink::mojom::blink::MidiPermissionDescriptorPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::ClipboardPermissionDescriptor::DataView,
::blink::mojom::blink::ClipboardPermissionDescriptorPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::CameraDevicePermissionDescriptor::DataView,
::blink::mojom::blink::CameraDevicePermissionDescriptorPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::TopLevelStorageAccessPermissionDescriptor::DataView,
::blink::mojom::blink::TopLevelStorageAccessPermissionDescriptorPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::FullscreenPermissionDescriptor::DataView,
::blink::mojom::blink::FullscreenPermissionDescriptorPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::PermissionDescriptor::DataView,
::blink::mojom::blink::PermissionDescriptorPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::EmbeddedPermissionRequestDescriptor::DataView,
::blink::mojom::blink::EmbeddedPermissionRequestDescriptorPtr> { … };
template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::PermissionDescriptorExtension::DataView,
::blink::mojom::blink::PermissionDescriptorExtensionPtr> { … };
}
#endif