#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_PERMISSIONS_PERMISSION_MOJOM_SHARED_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_PERMISSIONS_PERMISSION_MOJOM_SHARED_H_
#include <stdint.h>
#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "third_party/blink/public/mojom/permissions/permission.mojom-shared-internal.h"
#include "third_party/blink/public/mojom/permissions/permission_status.mojom-shared.h"
#include "url/mojom/origin.mojom-shared.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "base/component_export.h"
namespace blink::mojom {
class MidiPermissionDescriptorDataView;
class ClipboardPermissionDescriptorDataView;
class CameraDevicePermissionDescriptorDataView;
class TopLevelStorageAccessPermissionDescriptorDataView;
class FullscreenPermissionDescriptorDataView;
class PermissionDescriptorDataView;
class EmbeddedPermissionRequestDescriptorDataView;
class PermissionDescriptorExtensionDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::blink::mojom::MidiPermissionDescriptorDataView> { … };
template <>
struct MojomTypeTraits<::blink::mojom::ClipboardPermissionDescriptorDataView> { … };
template <>
struct MojomTypeTraits<::blink::mojom::CameraDevicePermissionDescriptorDataView> { … };
template <>
struct MojomTypeTraits<::blink::mojom::TopLevelStorageAccessPermissionDescriptorDataView> { … };
template <>
struct MojomTypeTraits<::blink::mojom::FullscreenPermissionDescriptorDataView> { … };
template <>
struct MojomTypeTraits<::blink::mojom::PermissionDescriptorDataView> { … };
template <>
struct MojomTypeTraits<::blink::mojom::EmbeddedPermissionRequestDescriptorDataView> { … };
template <>
struct MojomTypeTraits<::blink::mojom::PermissionDescriptorExtensionDataView> { … };
}
}
namespace blinkmojom
namespace std {
template <>
struct hash<::blink::mojom::PermissionName>
: public mojo::internal::EnumHashImpl<::blink::mojom::PermissionName> { … };
template <>
struct hash<::blink::mojom::EmbeddedPermissionControlResult>
: public mojo::internal::EnumHashImpl<::blink::mojom::EmbeddedPermissionControlResult> { … };
}
namespace mojo {
namespace internal {
Serializer< ::blink::mojom::PermissionName, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::EmbeddedPermissionControlResult, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::MidiPermissionDescriptorDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::ClipboardPermissionDescriptorDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::CameraDevicePermissionDescriptorDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::TopLevelStorageAccessPermissionDescriptorDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::FullscreenPermissionDescriptorDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::PermissionDescriptorDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::EmbeddedPermissionRequestDescriptorDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::PermissionDescriptorExtensionDataView, MaybeConstUserType>;
}
}
namespace blink::mojom {
inline void TopLevelStorageAccessPermissionDescriptorDataView::GetRequestedOriginDataView(
::url::mojom::OriginDataView* output) { … }
inline void PermissionDescriptorDataView::GetExtensionDataView(
PermissionDescriptorExtensionDataView* output) { … }
inline void EmbeddedPermissionRequestDescriptorDataView::GetPermissionsDataView(
mojo::ArrayDataView<PermissionDescriptorDataView>* output) { … }
inline void EmbeddedPermissionRequestDescriptorDataView::GetElementPositionDataView(
::gfx::mojom::RectDataView* output) { … }
inline void PermissionDescriptorExtensionDataView::GetMidiDataView(
MidiPermissionDescriptorDataView* output) const { … }
inline void PermissionDescriptorExtensionDataView::GetClipboardDataView(
ClipboardPermissionDescriptorDataView* output) const { … }
inline void PermissionDescriptorExtensionDataView::GetCameraDeviceDataView(
CameraDevicePermissionDescriptorDataView* output) const { … }
inline void PermissionDescriptorExtensionDataView::GetTopLevelStorageAccessDataView(
TopLevelStorageAccessPermissionDescriptorDataView* output) const { … }
inline void PermissionDescriptorExtensionDataView::GetFullscreenDataView(
FullscreenPermissionDescriptorDataView* output) const { … }
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::PermissionName> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::EmbeddedPermissionControlResult> { … };
}
#endif