Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/ipc/URIUtils.h"
#include "mozilla/dom/URLClassifierParent.h"
#include "mozilla/dom/URLClassifierChild.h"
#include "mozilla/dom/PContentParent.h"
#include "mozilla/dom/PContentChild.h"
#include "mozilla/dom/PURLClassifierLocal.h"
#include "mozilla/dom/PURLClassifierLocalParent.h"
#include "mozilla/dom/PURLClassifierLocalChild.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 dom {
namespace PURLClassifierLocal {
nsresult
CreateEndpoints(
mozilla::ipc::EndpointProcInfo aParentDestInfo,
mozilla::ipc::EndpointProcInfo aChildDestInfo,
mozilla::ipc::Endpoint<::mozilla::dom::PURLClassifierLocalParent>* aParent,
mozilla::ipc::Endpoint<::mozilla::dom::PURLClassifierLocalChild>* aChild)
{
return mozilla::ipc::CreateEndpoints(
mozilla::ipc::PrivateIPDLInterface(),
aParentDestInfo, aChildDestInfo, aParent, aChild);
}
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));
}
} // namespace PURLClassifierLocal
} // namespace dom
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct URLClassifierLocalResult|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::URLClassifierLocalResult>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).uri());
// Sentinel = 'uri'
(aWriter)->WriteSentinel(45023569);
IPC::WriteParam(aWriter, (aVar).featureName());
// Sentinel = 'featureName'
(aWriter)->WriteSentinel(450495598);
IPC::WriteParam(aWriter, (aVar).matchingList());
// Sentinel = 'matchingList'
(aWriter)->WriteSentinel(533791976);
}
auto ParamTraits<::mozilla::dom::URLClassifierLocalResult>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___uri = IPC::ReadParam<RefPtr<::nsIURI>>(aReader);
if (!maybe___uri) {
aReader->FatalError("Error deserializing 'uri' (nsIURI) member of 'URLClassifierLocalResult'");
return {};
}
auto& _uri = *maybe___uri;
// Sentinel = 'uri'
if ((!((aReader)->ReadSentinel(45023569)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'uri' (nsIURI) member of 'URLClassifierLocalResult'");
return {};
}
auto maybe___featureName = IPC::ReadParam<::nsCString>(aReader);
if (!maybe___featureName) {
aReader->FatalError("Error deserializing 'featureName' (nsCString) member of 'URLClassifierLocalResult'");
return {};
}
auto& _featureName = *maybe___featureName;
// Sentinel = 'featureName'
if ((!((aReader)->ReadSentinel(450495598)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'featureName' (nsCString) member of 'URLClassifierLocalResult'");
return {};
}
auto maybe___matchingList = IPC::ReadParam<::nsCString>(aReader);
if (!maybe___matchingList) {
aReader->FatalError("Error deserializing 'matchingList' (nsCString) member of 'URLClassifierLocalResult'");
return {};
}
auto& _matchingList = *maybe___matchingList;
// Sentinel = 'matchingList'
if ((!((aReader)->ReadSentinel(533791976)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'matchingList' (nsCString) member of 'URLClassifierLocalResult'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_uri),
std::move(_featureName),
std::move(_matchingList)};
return result__;
}
} // namespace IPC