Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/dom/ServiceWorkerConfiguration.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"
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct ServiceWorkerConfiguration|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::ServiceWorkerConfiguration>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).serviceWorkerRegistrations());
// Sentinel = 'serviceWorkerRegistrations'
(aWriter)->WriteSentinel(2443447002);
}
auto ParamTraits<::mozilla::dom::ServiceWorkerConfiguration>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___serviceWorkerRegistrations = IPC::ReadParam<nsTArray<::mozilla::dom::ServiceWorkerRegistrationData>>(aReader);
if (!maybe___serviceWorkerRegistrations) {
aReader->FatalError("Error deserializing 'serviceWorkerRegistrations' (ServiceWorkerRegistrationData[]) member of 'ServiceWorkerConfiguration'");
return {};
}
auto& _serviceWorkerRegistrations = *maybe___serviceWorkerRegistrations;
// Sentinel = 'serviceWorkerRegistrations'
if ((!((aReader)->ReadSentinel(2443447002)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'serviceWorkerRegistrations' (ServiceWorkerRegistrationData[]) member of 'ServiceWorkerConfiguration'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_serviceWorkerRegistrations)};
return result__;
}
} // namespace IPC