Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/dom/PWindowGlobalChild.h"
#include "ipc/ErrorIPCUtils.h"
#include "mozilla/AntiTrackingIPCUtils.h"
#include "mozilla/GfxMessageUtils.h"
#include "mozilla/ProfilerLabels.h"
#include "mozilla/RemoteLazyInputStream.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/dom/BindingIPCUtils.h"
#include "mozilla/dom/CSPMessageUtils.h"
#include "mozilla/dom/ClientIPCUtils.h"
#include "mozilla/dom/DocShellMessageUtils.h"
#include "mozilla/dom/FeaturePolicyUtils.h"
#include "mozilla/dom/FetchIPCTypes.h"
#include "mozilla/dom/IdentityCredentialSerializationHelpers.h"
#include "mozilla/dom/PermissionMessageUtils.h"
#include "mozilla/dom/PropertyBagUtils.h"
#include "mozilla/dom/ReferrerInfoUtils.h"
#include "mozilla/dom/SessionHistoryEntry.h"
#include "mozilla/dom/SessionStoreMessageUtils.h"
#include "mozilla/dom/TabMessageUtils.h"
#include "mozilla/dom/WindowGlobalChild.h"
#include "mozilla/ipc/BigBuffer.h"
#include "mozilla/ipc/IPCCore.h"
#include "mozilla/ipc/IPCStreamUtils.h"
#include "mozilla/ipc/SerializedStructuredCloneBuffer.h"
#include "mozilla/ipc/TransportSecurityInfoUtils.h"
#include "mozilla/ipc/URIUtils.h"
#include "mozilla/layers/LayersMessageUtils.h"
#include "mozilla/net/CacheInfoIPCTypes.h"
#include "mozilla/net/ClassOfService.h"
#include "nsDOMNavigationTiming.h"
#include "nsDocShellLoadState.h"
#include "nsHttp.h"
#include "nsHttpResponseHead.h"
#include "nsIContentSecurityPolicy.h"
#include "nsIPrincipal.h"
#include "nsIPropertyBag2.h"
#include "nsIReferrerInfo.h"
#include "nsITransportSecurityInfo.h"
#include "nsIURI.h"
#include "nsIVariant.h"
#include "nsPoint.h"
#include "mozilla/dom/PBrowserChild.h"
#include "mozilla/dom/PInProcessChild.h"
#include "mozilla/dom/PBrowserBridgeChild.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 {
auto PWindowGlobalChild::Recv__delete__() -> mozilla::ipc::IPCResult
{
return IPC_OK();
}
MOZ_IMPLICIT PWindowGlobalChild::PWindowGlobalChild() :
mozilla::ipc::IRefCountedProtocol(PWindowGlobalMsgStart, mozilla::ipc::ChildSide)
{
MOZ_COUNT_CTOR(PWindowGlobalChild);
}
PWindowGlobalChild::~PWindowGlobalChild()
{
MOZ_COUNT_DTOR(PWindowGlobalChild);
}
auto PWindowGlobalChild::ActorAlloc() -> void
{
AddRef();
}
auto PWindowGlobalChild::ActorDealloc() -> void
{
Release();
}
auto PWindowGlobalChild::AllManagedActorsCount() const -> uint32_t
{
uint32_t total = 0;
return total;
}
auto PWindowGlobalChild::SendRawMessage(
const JSActorMessageMeta& aMetadata,
const mozilla::Maybe<ClonedMessageData>& aData,
const mozilla::Maybe<ClonedMessageData>& aStack) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_RawMessage(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aMetadata);
// Sentinel = 'aMetadata'
((&(writer__)))->WriteSentinel(288752515);
IPC::WriteParam((&(writer__)), aData);
// Sentinel = 'aData'
((&(writer__)))->WriteSentinel(90571228);
IPC::WriteParam((&(writer__)), aStack);
// Sentinel = 'aStack'
((&(writer__)))->WriteSentinel(135201368);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_RawMessage", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendLoadURI(
const MaybeDiscardedBrowsingContext& aTargetBC,
mozilla::NotNull<nsDocShellLoadState*> aLoadState,
const bool& aSetNavigating) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_LoadURI(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aTargetBC);
// Sentinel = 'aTargetBC'
((&(writer__)))->WriteSentinel(287245134);
IPC::WriteParam((&(writer__)), aLoadState);
// Sentinel = 'aLoadState'
((&(writer__)))->WriteSentinel(349570019);
IPC::WriteParam((&(writer__)), aSetNavigating);
// Sentinel = 'aSetNavigating'
((&(writer__)))->WriteSentinel(686556566);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_LoadURI", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendInternalLoad(mozilla::NotNull<nsDocShellLoadState*> aLoadState) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_InternalLoad(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aLoadState);
// Sentinel = 'aLoadState'
((&(writer__)))->WriteSentinel(349570019);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_InternalLoad", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateDocumentURI(mozilla::NotNull<nsIURI*> aUri) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateDocumentURI(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aUri);
// Sentinel = 'aUri'
((&(writer__)))->WriteSentinel(64225682);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateDocumentURI", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateDocumentPrincipal(
nsIPrincipal* aPrincipal,
nsIPrincipal* aStoragePrincipal) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateDocumentPrincipal(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aPrincipal);
// Sentinel = 'aPrincipal'
((&(writer__)))->WriteSentinel(364381188);
IPC::WriteParam((&(writer__)), aStoragePrincipal);
// Sentinel = 'aStoragePrincipal'
((&(writer__)))->WriteSentinel(1026098905);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateDocumentPrincipal", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateDocumentHasLoaded(const bool& aDocumentHasLoaded) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateDocumentHasLoaded(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aDocumentHasLoaded);
// Sentinel = 'aDocumentHasLoaded'
((&(writer__)))->WriteSentinel(1117259526);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateDocumentHasLoaded", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateDocumentHasUserInteracted(const bool& aDocumentHasUserInteracted) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateDocumentHasUserInteracted(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aDocumentHasUserInteracted);
// Sentinel = 'aDocumentHasUserInteracted'
((&(writer__)))->WriteSentinel(2324695647);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateDocumentHasUserInteracted", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateSandboxFlags(const uint32_t& aSandboxFlags) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateSandboxFlags(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aSandboxFlags);
// Sentinel = 'aSandboxFlags'
((&(writer__)))->WriteSentinel(590611742);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateSandboxFlags", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateDocumentCspSettings(
const bool& aBlockAllMixedContent,
const bool& aUpgradeInsecureRequests) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateDocumentCspSettings(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aBlockAllMixedContent);
// Sentinel = 'aBlockAllMixedContent'
((&(writer__)))->WriteSentinel(1473906744);
IPC::WriteParam((&(writer__)), aUpgradeInsecureRequests);
// Sentinel = 'aUpgradeInsecureRequests'
((&(writer__)))->WriteSentinel(2002848196);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateDocumentCspSettings", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateCookieJarSettings(const CookieJarSettingsArgs& cookieJarSettings) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateCookieJarSettings(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), cookieJarSettings);
// Sentinel = 'cookieJarSettings'
((&(writer__)))->WriteSentinel(1031800553);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateCookieJarSettings", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateDocumentTitle(const nsAString& aTitle) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateDocumentTitle(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aTitle);
// Sentinel = 'aTitle'
((&(writer__)))->WriteSentinel(137167460);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateDocumentTitle", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateDocumentSecurityInfo(nsITransportSecurityInfo* aSecurityInfo) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateDocumentSecurityInfo(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aSecurityInfo);
// Sentinel = 'aSecurityInfo'
((&(writer__)))->WriteSentinel(610075974);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateDocumentSecurityInfo", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateHttpsOnlyStatus(const uint32_t& aHttpsOnlyStatus) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateHttpsOnlyStatus(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aHttpsOnlyStatus);
// Sentinel = 'aHttpsOnlyStatus'
((&(writer__)))->WriteSentinel(920323739);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateHttpsOnlyStatus", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendSetIsInitialDocument(const bool& aIsInitialDocument) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_SetIsInitialDocument(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aIsInitialDocument);
// Sentinel = 'aIsInitialDocument'
((&(writer__)))->WriteSentinel(1108150055);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_SetIsInitialDocument", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendShare(
const IPCWebShareData& aData,
mozilla::ipc::ResolveCallback<nsresult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject) -> void
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_Share(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aData);
// Sentinel = 'aData'
((&(writer__)))->WriteSentinel(90571228);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_Share", OTHER);
ChannelSend(std::move(msg__), PWindowGlobal::Reply_Share__ID, std::move(aResolve), std::move(aReject));
return;
}
auto PWindowGlobalChild::SendShare(const IPCWebShareData& aData) -> RefPtr<SharePromise>
{
RefPtr<MozPromise<nsresult, ResponseRejectReason, true>::Private> promise__ = new MozPromise<nsresult, ResponseRejectReason, true>::Private(__func__);
promise__->UseDirectTaskDispatch(__func__);
SendShare(std::move(aData), [promise__](nsresult&& aValue) {
promise__->Resolve(std::move(aValue), __func__);
}, [promise__](ResponseRejectReason&& aReason) {
promise__->Reject(std::move(aReason), __func__);
});
return promise__;
}
auto PWindowGlobalChild::SendGetContentBlockingEvents(
mozilla::ipc::ResolveCallback<uint32_t>&& aResolve,
mozilla::ipc::RejectCallback&& aReject) -> void
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_GetContentBlockingEvents(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_GetContentBlockingEvents", OTHER);
ChannelSend(std::move(msg__), PWindowGlobal::Reply_GetContentBlockingEvents__ID, std::move(aResolve), std::move(aReject));
return;
}
auto PWindowGlobalChild::SendGetContentBlockingEvents() -> RefPtr<GetContentBlockingEventsPromise>
{
RefPtr<MozPromise<uint32_t, ResponseRejectReason, true>::Private> promise__ = new MozPromise<uint32_t, ResponseRejectReason, true>::Private(__func__);
promise__->UseDirectTaskDispatch(__func__);
SendGetContentBlockingEvents([promise__](uint32_t&& aValue) {
promise__->Resolve(std::move(aValue), __func__);
}, [promise__](ResponseRejectReason&& aReason) {
promise__->Reject(std::move(aReason), __func__);
});
return promise__;
}
auto PWindowGlobalChild::SendSetClientInfo(const IPCClientInfo& aClientInfo) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_SetClientInfo(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aClientInfo);
// Sentinel = 'aClientInfo'
((&(writer__)))->WriteSentinel(422315085);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_SetClientInfo", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendCheckPermitUnload(
const bool& aHasInProcessBlocker,
const XPCOMPermitUnloadAction& aAction,
mozilla::ipc::ResolveCallback<bool>&& aResolve,
mozilla::ipc::RejectCallback&& aReject) -> void
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_CheckPermitUnload(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aHasInProcessBlocker);
// Sentinel = 'aHasInProcessBlocker'
((&(writer__)))->WriteSentinel(1345652694);
IPC::WriteParam((&(writer__)), aAction);
// Sentinel = 'aAction'
((&(writer__)))->WriteSentinel(175768256);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_CheckPermitUnload", OTHER);
ChannelSend(std::move(msg__), PWindowGlobal::Reply_CheckPermitUnload__ID, std::move(aResolve), std::move(aReject));
return;
}
auto PWindowGlobalChild::SendCheckPermitUnload(
const bool& aHasInProcessBlocker,
const XPCOMPermitUnloadAction& aAction) -> RefPtr<CheckPermitUnloadPromise>
{
RefPtr<MozPromise<bool, ResponseRejectReason, true>::Private> promise__ = new MozPromise<bool, ResponseRejectReason, true>::Private(__func__);
promise__->UseDirectTaskDispatch(__func__);
SendCheckPermitUnload(std::move(aHasInProcessBlocker), std::move(aAction), [promise__](bool&& aValue) {
promise__->Resolve(std::move(aValue), __func__);
}, [promise__](ResponseRejectReason&& aReason) {
promise__->Reject(std::move(aReason), __func__);
});
return promise__;
}
auto PWindowGlobalChild::SendExpectPageUseCounters(const MaybeDiscardedWindowContext& aTop) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_ExpectPageUseCounters(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aTop);
// Sentinel = 'aTop'
((&(writer__)))->WriteSentinel(64094613);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_ExpectPageUseCounters", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendAccumulatePageUseCounters(const UseCounters& aUseCounters) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_AccumulatePageUseCounters(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aUseCounters);
// Sentinel = 'aUseCounters'
((&(writer__)))->WriteSentinel(514131170);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_AccumulatePageUseCounters", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendRequestRestoreTabContent() -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_RequestRestoreTabContent(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_RequestRestoreTabContent", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateBFCacheStatus(
const uint32_t& aOnFlags,
const uint32_t& aOffFlags) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateBFCacheStatus(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aOnFlags);
// Sentinel = 'aOnFlags'
((&(writer__)))->WriteSentinel(222233356);
IPC::WriteParam((&(writer__)), aOffFlags);
// Sentinel = 'aOffFlags'
((&(writer__)))->WriteSentinel(277480298);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateBFCacheStatus", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendUpdateActivePeerConnectionStatus(const bool& aIsAdded) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_UpdateActivePeerConnectionStatus(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aIsAdded);
// Sentinel = 'aIsAdded'
((&(writer__)))->WriteSentinel(217055984);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_UpdateActivePeerConnectionStatus", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendSetSingleChannelId(const mozilla::Maybe<uint64_t>& singleChannelId) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_SetSingleChannelId(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), singleChannelId);
// Sentinel = 'singleChannelId'
((&(writer__)))->WriteSentinel(810812905);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_SetSingleChannelId", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendSetDocumentDomain(mozilla::NotNull<nsIURI*> aDomain) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_SetDocumentDomain(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aDomain);
// Sentinel = 'aDomain'
((&(writer__)))->WriteSentinel(176685754);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_SetDocumentDomain", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendDestroy() -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_Destroy(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_Destroy", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendReloadWithHttpsOnlyException() -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_ReloadWithHttpsOnlyException(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_ReloadWithHttpsOnlyException", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendDiscoverIdentityCredentialFromExternalSource(
const IdentityCredentialRequestOptions& aOptions,
mozilla::ipc::ResolveCallback<mozilla::Maybe<IPCIdentityCredential>>&& aResolve,
mozilla::ipc::RejectCallback&& aReject) -> void
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_DiscoverIdentityCredentialFromExternalSource(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aOptions);
// Sentinel = 'aOptions'
((&(writer__)))->WriteSentinel(240976718);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_DiscoverIdentityCredentialFromExternalSource", OTHER);
ChannelSend(std::move(msg__), PWindowGlobal::Reply_DiscoverIdentityCredentialFromExternalSource__ID, std::move(aResolve), std::move(aReject));
return;
}
auto PWindowGlobalChild::SendDiscoverIdentityCredentialFromExternalSource(const IdentityCredentialRequestOptions& aOptions) -> RefPtr<DiscoverIdentityCredentialFromExternalSourcePromise>
{
RefPtr<MozPromise<mozilla::Maybe<IPCIdentityCredential>, ResponseRejectReason, true>::Private> promise__ = new MozPromise<mozilla::Maybe<IPCIdentityCredential>, ResponseRejectReason, true>::Private(__func__);
promise__->UseDirectTaskDispatch(__func__);
SendDiscoverIdentityCredentialFromExternalSource(std::move(aOptions), [promise__](mozilla::Maybe<IPCIdentityCredential>&& aValue) {
promise__->Resolve(std::move(aValue), __func__);
}, [promise__](ResponseRejectReason&& aReason) {
promise__->Reject(std::move(aReason), __func__);
});
return promise__;
}
auto PWindowGlobalChild::SendGetStorageAccessPermission(
mozilla::ipc::ResolveCallback<uint32_t>&& aResolve,
mozilla::ipc::RejectCallback&& aReject) -> void
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_GetStorageAccessPermission(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_GetStorageAccessPermission", OTHER);
ChannelSend(std::move(msg__), PWindowGlobal::Reply_GetStorageAccessPermission__ID, std::move(aResolve), std::move(aReject));
return;
}
auto PWindowGlobalChild::SendGetStorageAccessPermission() -> RefPtr<GetStorageAccessPermissionPromise>
{
RefPtr<MozPromise<uint32_t, ResponseRejectReason, true>::Private> promise__ = new MozPromise<uint32_t, ResponseRejectReason, true>::Private(__func__);
promise__->UseDirectTaskDispatch(__func__);
SendGetStorageAccessPermission([promise__](uint32_t&& aValue) {
promise__->Resolve(std::move(aValue), __func__);
}, [promise__](ResponseRejectReason&& aReason) {
promise__->Reject(std::move(aReason), __func__);
});
return promise__;
}
auto PWindowGlobalChild::SendSetCookies(
const nsACString& baseDomain,
const OriginAttributes& attrs,
nsIURI* host,
const bool& fromHttp,
mozilla::Span<CookieStruct const> cookies) -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_SetCookies(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), baseDomain);
// Sentinel = 'baseDomain'
((&(writer__)))->WriteSentinel(360449012);
IPC::WriteParam((&(writer__)), attrs);
// Sentinel = 'attrs'
((&(writer__)))->WriteSentinel(107807279);
IPC::WriteParam((&(writer__)), host);
// Sentinel = 'host'
((&(writer__)))->WriteSentinel(72024511);
IPC::WriteParam((&(writer__)), fromHttp);
// Sentinel = 'fromHttp'
((&(writer__)))->WriteSentinel(249889621);
IPC::WriteParam((&(writer__)), cookies);
// Sentinel = 'cookies'
((&(writer__)))->WriteSentinel(195363566);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_SetCookies", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::SendOnInitialStorageAccess() -> bool
{
UniquePtr<IPC::Message> msg__ = PWindowGlobal::Msg_OnInitialStorageAccess(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_OnInitialStorageAccess", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PWindowGlobalChild::RemoveManagee(
int32_t aProtocolId,
IProtocol* aListener) -> void
{
FatalError("unreached");
return;
}
auto PWindowGlobalChild::DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) -> void
{
FatalError("unreached");
return;
}
auto PWindowGlobalChild::OnMessageReceived(const Message& msg__) -> PWindowGlobalChild::Result
{
switch (msg__.type()) {
case MANAGED_ENDPOINT_BOUND_MESSAGE_TYPE:
{
if (!mAwaitingManagedEndpointBind) {
NS_WARNING("Unexpected managed endpoint lifecycle message after actor bound!");
return MsgNotAllowed;
}
mAwaitingManagedEndpointBind = false;
return MsgProcessed;
}
case MANAGED_ENDPOINT_DROPPED_MESSAGE_TYPE:
{
if (!mAwaitingManagedEndpointBind) {
NS_WARNING("Unexpected managed endpoint lifecycle message after actor bound!");
return MsgNotAllowed;
}
mAwaitingManagedEndpointBind = false;
this->ActorDisconnected(ManagedEndpointDropped);
return MsgProcessed;
}
case PWindowGlobal::Msg___delete____ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg___delete__", OTHER);
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->Recv__delete__();
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
this->ActorDisconnected(Deletion);
return MsgProcessed;
}
case PWindowGlobal::Msg_MakeFrameLocal__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_MakeFrameLocal", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aFrameContext = IPC::ReadParam<MaybeDiscardedBrowsingContext>((&(reader__)));
if (!maybe__aFrameContext) {
FatalError("Error deserializing 'MaybeDiscardedBrowsingContext'");
return MsgValueError;
}
auto& aFrameContext = *maybe__aFrameContext;
// Sentinel = 'aFrameContext'
if ((!(((&(reader__)))->ReadSentinel(585565490)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'MaybeDiscardedBrowsingContext'");
return MsgValueError;
}
auto maybe__aSwitchId = IPC::ReadParam<uint64_t>((&(reader__)));
if (!maybe__aSwitchId) {
FatalError("Error deserializing 'uint64_t'");
return MsgValueError;
}
auto& aSwitchId = *maybe__aSwitchId;
// Sentinel = 'aSwitchId'
if ((!(((&(reader__)))->ReadSentinel(297730945)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvMakeFrameLocal(std::move(aFrameContext), std::move(aSwitchId));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Msg_MakeFrameRemote__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_MakeFrameRemote", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aFrameContext = IPC::ReadParam<MaybeDiscardedBrowsingContext>((&(reader__)));
if (!maybe__aFrameContext) {
FatalError("Error deserializing 'MaybeDiscardedBrowsingContext'");
return MsgValueError;
}
auto& aFrameContext = *maybe__aFrameContext;
// Sentinel = 'aFrameContext'
if ((!(((&(reader__)))->ReadSentinel(585565490)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'MaybeDiscardedBrowsingContext'");
return MsgValueError;
}
auto maybe__aEndpoint = IPC::ReadParam<ManagedEndpoint<::mozilla::dom::PBrowserBridgeChild>>((&(reader__)));
if (!maybe__aEndpoint) {
FatalError("Error deserializing 'ManagedEndpoint<::mozilla::dom::PBrowserBridgeChild>'");
return MsgValueError;
}
auto& aEndpoint = *maybe__aEndpoint;
// Sentinel = 'aEndpoint'
if ((!(((&(reader__)))->ReadSentinel(292225955)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ManagedEndpoint<::mozilla::dom::PBrowserBridgeChild>'");
return MsgValueError;
}
auto maybe__aTabId = IPC::ReadParam<TabId>((&(reader__)));
if (!maybe__aTabId) {
FatalError("Error deserializing 'TabId'");
return MsgValueError;
}
auto& aTabId = *maybe__aTabId;
// Sentinel = 'aTabId'
if ((!(((&(reader__)))->ReadSentinel(126878246)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
return MsgValueError;
}
auto maybe__aLayersId = IPC::ReadParam<LayersId>((&(reader__)));
if (!maybe__aLayersId) {
FatalError("Error deserializing 'LayersId'");
return MsgValueError;
}
auto& aLayersId = *maybe__aLayersId;
// Sentinel = 'aLayersId'
if ((!(((&(reader__)))->ReadSentinel(291439487)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'LayersId'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = Id();
UniquePtr<IPC::Message> reply__(PWindowGlobal::Reply_MakeFrameRemote(id__));
reply__->set_seqno(msg__.seqno());
RefPtr<mozilla::ipc::IPDLResolverInner> resolver__ =
new mozilla::ipc::IPDLResolverInner(std::move(reply__), this);
MakeFrameRemoteResolver resolver = [resolver__ = std::move(resolver__)](const bool& aParam) {
resolver__->Resolve([&] (IPC::Message* reply__, IProtocol* self__) {
IPC::MessageWriter writer__(*reply__, self__);
IPC::WriteParam((&(writer__)), aParam);
// Sentinel = 'success'
((&(writer__)))->WriteSentinel(200082170);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
self__->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
});
};
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvMakeFrameRemote(std::move(aFrameContext), std::move(aEndpoint), std::move(aTabId), std::move(aLayersId), std::move(resolver));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Msg_DrawSnapshot__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_DrawSnapshot", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aRect = IPC::ReadParam<mozilla::Maybe<IntRect>>((&(reader__)));
if (!maybe__aRect) {
FatalError("Error deserializing 'IntRect?'");
return MsgValueError;
}
auto& aRect = *maybe__aRect;
// Sentinel = 'aRect'
if ((!(((&(reader__)))->ReadSentinel(94044656)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'IntRect?'");
return MsgValueError;
}
auto maybe__aScale = IPC::ReadParam<float>((&(reader__)));
if (!maybe__aScale) {
FatalError("Error deserializing 'float'");
return MsgValueError;
}
auto& aScale = *maybe__aScale;
// Sentinel = 'aScale'
if ((!(((&(reader__)))->ReadSentinel(131531338)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'float'");
return MsgValueError;
}
auto maybe__aBackgroundColor = IPC::ReadParam<nscolor>((&(reader__)));
if (!maybe__aBackgroundColor) {
FatalError("Error deserializing 'nscolor'");
return MsgValueError;
}
auto& aBackgroundColor = *maybe__aBackgroundColor;
// Sentinel = 'aBackgroundColor'
if ((!(((&(reader__)))->ReadSentinel(884999777)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'nscolor'");
return MsgValueError;
}
auto maybe__aFlags = IPC::ReadParam<uint32_t>((&(reader__)));
if (!maybe__aFlags) {
FatalError("Error deserializing 'uint32_t'");
return MsgValueError;
}
auto& aFlags = *maybe__aFlags;
// Sentinel = 'aFlags'
if ((!(((&(reader__)))->ReadSentinel(129892943)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = Id();
UniquePtr<IPC::Message> reply__(PWindowGlobal::Reply_DrawSnapshot(id__));
reply__->set_seqno(msg__.seqno());
RefPtr<mozilla::ipc::IPDLResolverInner> resolver__ =
new mozilla::ipc::IPDLResolverInner(std::move(reply__), this);
DrawSnapshotResolver resolver = [resolver__ = std::move(resolver__)](PaintFragment&& aParam) {
resolver__->Resolve([&] (IPC::Message* reply__, IProtocol* self__) {
IPC::MessageWriter writer__(*reply__, self__);
IPC::WriteParam((&(writer__)), std::move(aParam));
// Sentinel = 'retval'
((&(writer__)))->WriteSentinel(151716495);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
self__->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
});
};
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvDrawSnapshot(std::move(aRect), std::move(aScale), std::move(aBackgroundColor), std::move(aFlags), std::move(resolver));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Msg_DispatchSecurityPolicyViolation__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_DispatchSecurityPolicyViolation", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aViolationEventJSON = IPC::ReadParam<nsString>((&(reader__)));
if (!maybe__aViolationEventJSON) {
FatalError("Error deserializing 'nsString'");
return MsgValueError;
}
auto& aViolationEventJSON = *maybe__aViolationEventJSON;
// Sentinel = 'aViolationEventJSON'
if ((!(((&(reader__)))->ReadSentinel(1266878291)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvDispatchSecurityPolicyViolation(std::move(aViolationEventJSON));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Msg_SaveStorageAccessPermissionGranted__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_SaveStorageAccessPermissionGranted", OTHER);
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvSaveStorageAccessPermissionGranted();
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Msg_AddBlockedFrameNodeByClassifier__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_AddBlockedFrameNodeByClassifier", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aNode = IPC::ReadParam<MaybeDiscardedBrowsingContext>((&(reader__)));
if (!maybe__aNode) {
FatalError("Error deserializing 'MaybeDiscardedBrowsingContext'");
return MsgValueError;
}
auto& aNode = *maybe__aNode;
// Sentinel = 'aNode'
if ((!(((&(reader__)))->ReadSentinel(94110184)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'MaybeDiscardedBrowsingContext'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvAddBlockedFrameNodeByClassifier(std::move(aNode));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Msg_ResetScalingZoom__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_ResetScalingZoom", OTHER);
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvResetScalingZoom();
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Msg_SetContainerFeaturePolicy__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_SetContainerFeaturePolicy", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aContainerFeaturePolicy = IPC::ReadParam<RefPtr<FeaturePolicy>>((&(reader__)));
if (!maybe__aContainerFeaturePolicy) {
FatalError("Error deserializing 'FeaturePolicy'");
return MsgValueError;
}
auto& aContainerFeaturePolicy = *maybe__aContainerFeaturePolicy;
// Sentinel = 'aContainerFeaturePolicy'
if ((!(((&(reader__)))->ReadSentinel(1834158401)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'FeaturePolicy'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvSetContainerFeaturePolicy(aContainerFeaturePolicy);
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Msg_RestoreDocShellState__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_RestoreDocShellState", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aState = IPC::ReadParam<DocShellRestoreState>((&(reader__)));
if (!maybe__aState) {
FatalError("Error deserializing 'DocShellRestoreState'");
return MsgValueError;
}
auto& aState = *maybe__aState;
// Sentinel = 'aState'
if ((!(((&(reader__)))->ReadSentinel(137036387)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'DocShellRestoreState'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = Id();
UniquePtr<IPC::Message> reply__(PWindowGlobal::Reply_RestoreDocShellState(id__));
reply__->set_seqno(msg__.seqno());
RefPtr<mozilla::ipc::IPDLResolverInner> resolver__ =
new mozilla::ipc::IPDLResolverInner(std::move(reply__), this);
RestoreDocShellStateResolver resolver = [resolver__ = std::move(resolver__)](const bool& aParam) {
resolver__->Resolve([&] (IPC::Message* reply__, IProtocol* self__) {
IPC::MessageWriter writer__(*reply__, self__);
IPC::WriteParam((&(writer__)), aParam);
// Sentinel = 'success'
((&(writer__)))->WriteSentinel(200082170);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
self__->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
});
};
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvRestoreDocShellState(std::move(aState), std::move(resolver));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Msg_RestoreTabContent__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_RestoreTabContent", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aData = IPC::ReadParam<RefPtr<SessionStoreRestoreData>>((&(reader__)));
if (!maybe__aData) {
FatalError("Error deserializing 'SessionStoreRestoreData'");
return MsgValueError;
}
auto& aData = *maybe__aData;
// Sentinel = 'aData'
if ((!(((&(reader__)))->ReadSentinel(90571228)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'SessionStoreRestoreData'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = Id();
UniquePtr<IPC::Message> reply__(PWindowGlobal::Reply_RestoreTabContent(id__));
reply__->set_seqno(msg__.seqno());
RefPtr<mozilla::ipc::IPDLResolverInner> resolver__ =
new mozilla::ipc::IPDLResolverInner(std::move(reply__), this);
RestoreTabContentResolver resolver = [resolver__ = std::move(resolver__)](const bool& aParam) {
resolver__->Resolve([&] (IPC::Message* reply__, IProtocol* self__) {
IPC::MessageWriter writer__(*reply__, self__);
IPC::WriteParam((&(writer__)), aParam);
// Sentinel = 'success'
((&(writer__)))->WriteSentinel(200082170);
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
self__->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
});
};
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvRestoreTabContent(aData, std::move(resolver));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Msg_RawMessage__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_RawMessage", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aMetadata = IPC::ReadParam<JSActorMessageMeta>((&(reader__)));
if (!maybe__aMetadata) {
FatalError("Error deserializing 'JSActorMessageMeta'");
return MsgValueError;
}
auto& aMetadata = *maybe__aMetadata;
// Sentinel = 'aMetadata'
if ((!(((&(reader__)))->ReadSentinel(288752515)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'JSActorMessageMeta'");
return MsgValueError;
}
auto maybe__aData = IPC::ReadParam<mozilla::Maybe<ClonedMessageData>>((&(reader__)));
if (!maybe__aData) {
FatalError("Error deserializing 'ClonedMessageData?'");
return MsgValueError;
}
auto& aData = *maybe__aData;
// Sentinel = 'aData'
if ((!(((&(reader__)))->ReadSentinel(90571228)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData?'");
return MsgValueError;
}
auto maybe__aStack = IPC::ReadParam<mozilla::Maybe<ClonedMessageData>>((&(reader__)));
if (!maybe__aStack) {
FatalError("Error deserializing 'ClonedMessageData?'");
return MsgValueError;
}
auto& aStack = *maybe__aStack;
// Sentinel = 'aStack'
if ((!(((&(reader__)))->ReadSentinel(135201368)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData?'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvRawMessage(std::move(aMetadata), std::move(aData), std::move(aStack));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PWindowGlobal::Reply_Share__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_Share", OTHER);
IPC::MessageReader reader__{
msg__,
this};
bool resolve__ = false;
if (!IPC::ReadParam(&reader__, &resolve__)) {
FatalError("Error deserializing bool");
return MsgValueError;
}
UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback =
GetIPCChannel()->PopCallback(msg__, Id());
typedef MessageChannel::CallbackHolder<nsresult> CallbackHolder;
auto* callback = static_cast<CallbackHolder*>(untypedCallback.get());
if (!callback) {
FatalError("Error unknown callback");
return MsgProcessingError;
}
if (resolve__) {
auto maybe__rv = IPC::ReadParam<nsresult>((&(reader__)));
if (!maybe__rv) {
FatalError("Error deserializing 'nsresult'");
return MsgValueError;
}
auto& rv = *maybe__rv;
// Sentinel = 'rv'
if ((!(((&(reader__)))->ReadSentinel(22806761)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
return MsgValueError;
}
reader__.EndRead();
callback->Resolve(std::move(rv));
} else {
ResponseRejectReason reason__{};
if (!IPC::ReadParam(&reader__, &reason__)) {
FatalError("Error deserializing ResponseRejectReason");
return MsgValueError;
}
reader__.EndRead();
callback->Reject(std::move(reason__));
}
return MsgProcessed;
}
case PWindowGlobal::Reply_GetContentBlockingEvents__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_GetContentBlockingEvents", OTHER);
IPC::MessageReader reader__{
msg__,
this};
bool resolve__ = false;
if (!IPC::ReadParam(&reader__, &resolve__)) {
FatalError("Error deserializing bool");
return MsgValueError;
}
UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback =
GetIPCChannel()->PopCallback(msg__, Id());
typedef MessageChannel::CallbackHolder<uint32_t> CallbackHolder;
auto* callback = static_cast<CallbackHolder*>(untypedCallback.get());
if (!callback) {
FatalError("Error unknown callback");
return MsgProcessingError;
}
if (resolve__) {
auto maybe__events = IPC::ReadParam<uint32_t>((&(reader__)));
if (!maybe__events) {
FatalError("Error deserializing 'uint32_t'");
return MsgValueError;
}
auto& events = *maybe__events;
// Sentinel = 'events'
if ((!(((&(reader__)))->ReadSentinel(149619350)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
return MsgValueError;
}
reader__.EndRead();
callback->Resolve(std::move(events));
} else {
ResponseRejectReason reason__{};
if (!IPC::ReadParam(&reader__, &reason__)) {
FatalError("Error deserializing ResponseRejectReason");
return MsgValueError;
}
reader__.EndRead();
callback->Reject(std::move(reason__));
}
return MsgProcessed;
}
case PWindowGlobal::Reply_CheckPermitUnload__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_CheckPermitUnload", OTHER);
IPC::MessageReader reader__{
msg__,
this};
bool resolve__ = false;
if (!IPC::ReadParam(&reader__, &resolve__)) {
FatalError("Error deserializing bool");
return MsgValueError;
}
UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback =
GetIPCChannel()->PopCallback(msg__, Id());
typedef MessageChannel::CallbackHolder<bool> CallbackHolder;
auto* callback = static_cast<CallbackHolder*>(untypedCallback.get());
if (!callback) {
FatalError("Error unknown callback");
return MsgProcessingError;
}
if (resolve__) {
auto maybe__permitUnload = IPC::ReadParam<bool>((&(reader__)));
if (!maybe__permitUnload) {
FatalError("Error deserializing 'bool'");
return MsgValueError;
}
auto& permitUnload = *maybe__permitUnload;
// Sentinel = 'permitUnload'
if ((!(((&(reader__)))->ReadSentinel(547816693)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
return MsgValueError;
}
reader__.EndRead();
callback->Resolve(std::move(permitUnload));
} else {
ResponseRejectReason reason__{};
if (!IPC::ReadParam(&reader__, &reason__)) {
FatalError("Error deserializing ResponseRejectReason");
return MsgValueError;
}
reader__.EndRead();
callback->Reject(std::move(reason__));
}
return MsgProcessed;
}
case PWindowGlobal::Reply_DiscoverIdentityCredentialFromExternalSource__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_DiscoverIdentityCredentialFromExternalSource", OTHER);
IPC::MessageReader reader__{
msg__,
this};
bool resolve__ = false;
if (!IPC::ReadParam(&reader__, &resolve__)) {
FatalError("Error deserializing bool");
return MsgValueError;
}
UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback =
GetIPCChannel()->PopCallback(msg__, Id());
typedef MessageChannel::CallbackHolder<mozilla::Maybe<IPCIdentityCredential>> CallbackHolder;
auto* callback = static_cast<CallbackHolder*>(untypedCallback.get());
if (!callback) {
FatalError("Error unknown callback");
return MsgProcessingError;
}
if (resolve__) {
auto maybe__identityCredential = IPC::ReadParam<mozilla::Maybe<IPCIdentityCredential>>((&(reader__)));
if (!maybe__identityCredential) {
FatalError("Error deserializing 'IPCIdentityCredential?'");
return MsgValueError;
}
auto& identityCredential = *maybe__identityCredential;
// Sentinel = 'identityCredential'
if ((!(((&(reader__)))->ReadSentinel(1181419366)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'IPCIdentityCredential?'");
return MsgValueError;
}
reader__.EndRead();
callback->Resolve(std::move(identityCredential));
} else {
ResponseRejectReason reason__{};
if (!IPC::ReadParam(&reader__, &reason__)) {
FatalError("Error deserializing ResponseRejectReason");
return MsgValueError;
}
reader__.EndRead();
callback->Reject(std::move(reason__));
}
return MsgProcessed;
}
case PWindowGlobal::Reply_GetStorageAccessPermission__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_GetStorageAccessPermission", OTHER);
IPC::MessageReader reader__{
msg__,
this};
bool resolve__ = false;
if (!IPC::ReadParam(&reader__, &resolve__)) {
FatalError("Error deserializing bool");
return MsgValueError;
}
UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback =
GetIPCChannel()->PopCallback(msg__, Id());
typedef MessageChannel::CallbackHolder<uint32_t> CallbackHolder;
auto* callback = static_cast<CallbackHolder*>(untypedCallback.get());
if (!callback) {
FatalError("Error unknown callback");
return MsgProcessingError;
}
if (resolve__) {
auto maybe__permission_action = IPC::ReadParam<uint32_t>((&(reader__)));
if (!maybe__permission_action) {
FatalError("Error deserializing 'uint32_t'");
return MsgValueError;
}
auto& permission_action = *maybe__permission_action;
// Sentinel = 'permission_action'
if ((!(((&(reader__)))->ReadSentinel(1085605671)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
return MsgValueError;
}
reader__.EndRead();
callback->Resolve(std::move(permission_action));
} else {
ResponseRejectReason reason__{};
if (!IPC::ReadParam(&reader__, &reason__)) {
FatalError("Error deserializing ResponseRejectReason");
return MsgValueError;
}
reader__.EndRead();
callback->Reject(std::move(reason__));
}
return MsgProcessed;
}
case PWindowGlobal::Msg_NotifyPermissionChange__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PWindowGlobal", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PWindowGlobalChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PWindowGlobal::Msg_NotifyPermissionChange", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__type = IPC::ReadParam<nsCString>((&(reader__)));
if (!maybe__type) {
FatalError("Error deserializing 'nsCString'");
return MsgValueError;
}
auto& type = *maybe__type;
// Sentinel = 'type'
if ((!(((&(reader__)))->ReadSentinel(75760067)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
return MsgValueError;
}
auto maybe__permission = IPC::ReadParam<uint32_t>((&(reader__)));
if (!maybe__permission) {
FatalError("Error deserializing 'uint32_t'");
return MsgValueError;
}
auto& permission = *maybe__permission;
// Sentinel = 'permission'
if ((!(((&(reader__)))->ReadSentinel(394921034)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<WindowGlobalChild*>(this))->RecvNotifyPermissionChange(std::move(type), std::move(permission));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
default:
return MsgNotKnown;
}
}
auto PWindowGlobalChild::OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) -> PWindowGlobalChild::Result
{
return MsgNotKnown;
}
auto PWindowGlobalChild::DoomSubtree() -> void
{
SetDoomed();
}
auto PWindowGlobalChild::PeekManagedActor() -> IProtocol*
{
return nullptr;
}
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::PWindowGlobalChild*>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
MOZ_RELEASE_ASSERT(
aWriter->GetActor(),
"Cannot serialize managed actors without an actor");
int32_t id;
if (!aVar) {
id = 0; // kNullActorId
} else {
id = aVar->Id();
if (id == 1) { // kFreedActorId
aVar->FatalError("Actor has been |delete|d");
}
MOZ_RELEASE_ASSERT(
aWriter->GetActor()->GetIPCChannel() == aVar->GetIPCChannel(),
"Actor must be from the same channel as the"
" actor it's being sent over");
MOZ_RELEASE_ASSERT(
aVar->CanSend(),
"Actor must still be open when sending");
}
IPC::WriteParam(aWriter, id);
}
auto ParamTraits<::mozilla::dom::PWindowGlobalChild*>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
MOZ_RELEASE_ASSERT(
aReader->GetActor(),
"Cannot deserialize managed actors without an actor");
mozilla::Maybe<mozilla::ipc::IProtocol*> actor = aReader->GetActor()
->ReadActor(aReader, true, "PWindowGlobal", PWindowGlobalMsgStart);
if (actor.isSome()) {
return static_cast<::mozilla::dom::PWindowGlobalChild*>(actor.ref());
}
return {};
}
} // namespace IPC