chromium/out/Default/gen/third_party/blink/public/mojom/permissions/permission.mojom-shared.h

// third_party/blink/public/mojom/permissions/permission.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;


}  // blink::mojom

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 internal
}  // namespace mojo


namespace blinkmojom  // blink::mojom

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 std

namespace mojo {


namespace internal {

Serializer< ::blink::mojom::PermissionName, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::EmbeddedPermissionControlResult, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::MidiPermissionDescriptorDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::ClipboardPermissionDescriptorDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::CameraDevicePermissionDescriptorDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::TopLevelStorageAccessPermissionDescriptorDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::FullscreenPermissionDescriptorDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::PermissionDescriptorDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::EmbeddedPermissionRequestDescriptorDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::PermissionDescriptorExtensionDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


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 {}


}  // blink::mojom

// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::PermissionName> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::EmbeddedPermissionControlResult> {};

} // namespace perfetto

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_PERMISSIONS_PERMISSION_MOJOM_SHARED_H_