#ifndef MEDIA_MOJO_MOJOM_CONTENT_DECRYPTION_MODULE_MOJOM_SHARED_H_
#define MEDIA_MOJO_MOJOM_CONTENT_DECRYPTION_MODULE_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 "media/mojo/mojom/content_decryption_module.mojom-shared-internal.h"
#include "media/mojo/mojom/decryptor.mojom-shared.h"
#include "media/mojo/mojom/media_types.mojom-shared.h"
#include "mojo/public/mojom/base/unguessable_token.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/public/cpp/bindings/native_enum.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
namespace media::mojom {
CdmConfigDataView;
class CdmPromiseResultDataView;
class CdmKeyInformationDataView;
class CdmContextDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::media::mojom::CdmPromiseResultDataView> { … };
template <>
struct MojomTypeTraits<::media::mojom::CdmKeyInformationDataView> { … };
template <>
struct MojomTypeTraits<::media::mojom::CdmContextDataView> { … };
}
}
namespace media::mojom {
EmeInitDataType;
CdmSessionType;
CdmMessageType;
enum class CdmKeyStatus : int32_t { … };
std::ostream& operator<<(std::ostream& os, CdmKeyStatus value);
inline bool IsKnownEnumValue(CdmKeyStatus value) { … }
HdcpVersion;
CdmPromiseResult_Exception;
class ContentDecryptionModuleInterfaceBase { … };
ContentDecryptionModulePtrDataView;
ContentDecryptionModuleRequestDataView;
ContentDecryptionModuleAssociatedPtrInfoDataView;
ContentDecryptionModuleAssociatedRequestDataView;
class ContentDecryptionModuleClientInterfaceBase { … };
ContentDecryptionModuleClientPtrDataView;
ContentDecryptionModuleClientRequestDataView;
ContentDecryptionModuleClientAssociatedPtrInfoDataView;
ContentDecryptionModuleClientAssociatedRequestDataView;
class CdmFactoryInterfaceBase { … };
CdmFactoryPtrDataView;
CdmFactoryRequestDataView;
CdmFactoryAssociatedPtrInfoDataView;
CdmFactoryAssociatedRequestDataView;
class CdmPromiseResultDataView { … };
class CdmKeyInformationDataView { … };
class CdmContextDataView { … };
}
namespace std {
template <>
struct hash<::media::mojom::CdmKeyStatus>
: public mojo::internal::EnumHashImpl<::media::mojom::CdmKeyStatus> { … };
}
namespace mojo {
namespace internal {
Serializer< ::media::mojom::CdmKeyStatus, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media::mojom::CdmPromiseResultDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media::mojom::CdmKeyInformationDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media::mojom::CdmContextDataView, MaybeConstUserType>;
}
}
namespace media::mojom {
inline void CdmPromiseResultDataView::GetErrorMessageDataView(
mojo::StringDataView* output) { … }
inline void CdmKeyInformationDataView::GetKeyIdDataView(
mojo::ArrayDataView<uint8_t>* output) { … }
inline void CdmContextDataView::GetCdmIdDataView(
::mojo_base::mojom::UnguessableTokenDataView* output) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media::mojom::CdmKeyStatus> { … };
}
#endif