Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/dom/MediaIPCUtils.h"
#include "mozilla/PRemoteDecoderManagerParent.h"
#include "mozilla/PRemoteDecoderManagerChild.h"
#include "mozilla/PMFMediaEngine.h"
#include "mozilla/PMFMediaEngineParent.h"
#include "mozilla/PMFMediaEngineChild.h"
#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
#include "nsIFile.h"
#include "mozilla/ipc/Endpoint.h"
#include "mozilla/ipc/ProtocolMessageUtils.h"
#include "mozilla/ipc/ProtocolUtils.h"
#include "mozilla/ipc/ShmemMessageUtils.h"
#include "mozilla/ipc/TaintingIPCUtils.h"
namespace mozilla {
namespace PMFMediaEngine {
nsresult
CreateEndpoints(
mozilla::ipc::EndpointProcInfo aParentDestInfo,
mozilla::ipc::EndpointProcInfo aChildDestInfo,
mozilla::ipc::Endpoint<::mozilla::PMFMediaEngineParent>* aParent,
mozilla::ipc::Endpoint<::mozilla::PMFMediaEngineChild>* aChild)
{
return mozilla::ipc::CreateEndpoints(
mozilla::ipc::PrivateIPDLInterface(),
aParentDestInfo, aChildDestInfo, aParent, aChild);
}
mozilla::UniquePtr<IPC::Message>
Msg_InitMediaEngine(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_InitMediaEngine__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Reply_InitMediaEngine(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Reply_InitMediaEngine__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_Play(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_Play__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_Pause(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_Pause__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_Seek(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_Seek__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_SetCDMProxyId(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_SetCDMProxyId__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_SetVolume(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_SetVolume__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_SetPlaybackRate(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_SetPlaybackRate__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_SetLooping(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_SetLooping__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_NotifyEndOfStream(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_NotifyEndOfStream__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_Shutdown(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_Shutdown__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg___delete__(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg___delete____ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Reply___delete__(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Reply___delete____ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_NotifyEvent(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_NotifyEvent__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_NotifyError(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_NotifyError__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_UpdateCurrentTime(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_UpdateCurrentTime__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_RequestSample(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_RequestSample__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_UpdateStatisticData(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_UpdateStatisticData__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_NotifyResizing(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_NotifyResizing__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
} // namespace PMFMediaEngine
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct MediaEngineInfoIPDL|
//
namespace mozilla {
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::MediaEngineInfoIPDL>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).mediaInfo());
// Sentinel = 'mediaInfo'
(aWriter)->WriteSentinel(298189709);
IPC::WriteParam(aWriter, (aVar).preload());
// Sentinel = 'preload'
(aWriter)->WriteSentinel(199164648);
IPC::WriteParam(aWriter, (aVar).encryptedCustomIdent());
// Sentinel = 'encryptedCustomIdent'
(aWriter)->WriteSentinel(1461979198);
}
auto ParamTraits<::mozilla::MediaEngineInfoIPDL>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___mediaInfo = IPC::ReadParam<::mozilla::MediaInfoIPDL>(aReader);
if (!maybe___mediaInfo) {
aReader->FatalError("Error deserializing 'mediaInfo' (MediaInfoIPDL) member of 'MediaEngineInfoIPDL'");
return {};
}
auto& _mediaInfo = *maybe___mediaInfo;
// Sentinel = 'mediaInfo'
if ((!((aReader)->ReadSentinel(298189709)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'mediaInfo' (MediaInfoIPDL) member of 'MediaEngineInfoIPDL'");
return {};
}
auto maybe___preload = IPC::ReadParam<bool>(aReader);
if (!maybe___preload) {
aReader->FatalError("Error deserializing 'preload' (bool) member of 'MediaEngineInfoIPDL'");
return {};
}
auto& _preload = *maybe___preload;
// Sentinel = 'preload'
if ((!((aReader)->ReadSentinel(199164648)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'preload' (bool) member of 'MediaEngineInfoIPDL'");
return {};
}
auto maybe___encryptedCustomIdent = IPC::ReadParam<bool>(aReader);
if (!maybe___encryptedCustomIdent) {
aReader->FatalError("Error deserializing 'encryptedCustomIdent' (bool) member of 'MediaEngineInfoIPDL'");
return {};
}
auto& _encryptedCustomIdent = *maybe___encryptedCustomIdent;
// Sentinel = 'encryptedCustomIdent'
if ((!((aReader)->ReadSentinel(1461979198)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'encryptedCustomIdent' (bool) member of 'MediaEngineInfoIPDL'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_mediaInfo),
std::move(_preload),
std::move(_encryptedCustomIdent)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct MediaInfoIPDL|
//
namespace mozilla {
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::MediaInfoIPDL>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).audioInfo());
// Sentinel = 'audioInfo'
(aWriter)->WriteSentinel(304087967);
IPC::WriteParam(aWriter, (aVar).videoInfo());
// Sentinel = 'videoInfo'
(aWriter)->WriteSentinel(308609956);
}
auto ParamTraits<::mozilla::MediaInfoIPDL>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___audioInfo = IPC::ReadParam<mozilla::Maybe<::mozilla::AudioInfo>>(aReader);
if (!maybe___audioInfo) {
aReader->FatalError("Error deserializing 'audioInfo' (AudioInfo?) member of 'MediaInfoIPDL'");
return {};
}
auto& _audioInfo = *maybe___audioInfo;
// Sentinel = 'audioInfo'
if ((!((aReader)->ReadSentinel(304087967)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'audioInfo' (AudioInfo?) member of 'MediaInfoIPDL'");
return {};
}
auto maybe___videoInfo = IPC::ReadParam<mozilla::Maybe<::mozilla::VideoInfo>>(aReader);
if (!maybe___videoInfo) {
aReader->FatalError("Error deserializing 'videoInfo' (VideoInfo?) member of 'MediaInfoIPDL'");
return {};
}
auto& _videoInfo = *maybe___videoInfo;
// Sentinel = 'videoInfo'
if ((!((aReader)->ReadSentinel(308609956)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'videoInfo' (VideoInfo?) member of 'MediaInfoIPDL'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_audioInfo),
std::move(_videoInfo)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct StatisticData|
//
namespace mozilla {
auto StatisticData::StaticAssertions() const -> void
{
static_assert(
(offsetof(StatisticData, droppedFrames_) - offsetof(StatisticData, renderedFrames_)) == 8,
"Bad assumptions about field layout!");
}
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::StatisticData>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
(aWriter)->WriteBytes((&((aVar).renderedFrames())), 16);
// Sentinel = 'renderedFrames | droppedFrames'
(aWriter)->WriteSentinel(3043756976);
}
auto ParamTraits<::mozilla::StatisticData>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
IPC::ReadResult<paramType> result__{
std::in_place,
::uint64_t{0},
::uint64_t{0}};
if ((!((aReader)->ReadBytesInto((&((result__)->renderedFrames())), 16)))) {
aReader->FatalError("Error bulk reading fields from uint64_t");
return {};
}
// Sentinel = 'renderedFrames | droppedFrames'
if ((!((aReader)->ReadSentinel(3043756976)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint64_t");
return {};
}
return result__;
}
} // namespace IPC