#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_PERMISSIONS_PERMISSION_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_PERMISSIONS_PERMISSION_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/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-forward.h"
#include "third_party/blink/public/mojom/permissions/permission_status.mojom-forward.h"
#include "url/mojom/origin.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 "third_party/blink/public/common/common_export.h"
namespace blink::mojom {
class PermissionObserverProxy;
template <typename ImplRefTraits>
class PermissionObserverStub;
class PermissionObserverRequestValidator;
class BLINK_COMMON_EXPORT PermissionObserver
: public PermissionObserverInterfaceBase { … };
class EmbeddedPermissionControlClientProxy;
template <typename ImplRefTraits>
class EmbeddedPermissionControlClientStub;
class EmbeddedPermissionControlClientRequestValidator;
class BLINK_COMMON_EXPORT EmbeddedPermissionControlClient
: public EmbeddedPermissionControlClientInterfaceBase { … };
class PermissionServiceProxy;
template <typename ImplRefTraits>
class PermissionServiceStub;
class PermissionServiceRequestValidator;
class PermissionServiceResponseValidator;
class BLINK_COMMON_EXPORT PermissionService
: public PermissionServiceInterfaceBase { … };
class BLINK_COMMON_EXPORT PermissionObserverProxy
: public PermissionObserver { … };
class BLINK_COMMON_EXPORT EmbeddedPermissionControlClientProxy
: public EmbeddedPermissionControlClient { … };
class BLINK_COMMON_EXPORT PermissionServiceProxy
: public PermissionService { … };
class BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_EXPORT PermissionObserverRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT EmbeddedPermissionControlClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT PermissionServiceRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT PermissionServiceResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_EXPORT PermissionDescriptorExtension { … };
class BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_EXPORT StructTraits<::blink::mojom::MidiPermissionDescriptor::DataView,
::blink::mojom::MidiPermissionDescriptorPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::ClipboardPermissionDescriptor::DataView,
::blink::mojom::ClipboardPermissionDescriptorPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::CameraDevicePermissionDescriptor::DataView,
::blink::mojom::CameraDevicePermissionDescriptorPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::TopLevelStorageAccessPermissionDescriptor::DataView,
::blink::mojom::TopLevelStorageAccessPermissionDescriptorPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::FullscreenPermissionDescriptor::DataView,
::blink::mojom::FullscreenPermissionDescriptorPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::PermissionDescriptor::DataView,
::blink::mojom::PermissionDescriptorPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::EmbeddedPermissionRequestDescriptor::DataView,
::blink::mojom::EmbeddedPermissionRequestDescriptorPtr> { … };
template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::PermissionDescriptorExtension::DataView,
::blink::mojom::PermissionDescriptorExtensionPtr> { … };
}
#endif