Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PBrowserBridgeChild_h
#define PBrowserBridgeChild_h
#include "mozilla/dom/PBrowserBridge.h"
#ifdef DEBUG
#include "prenv.h"
#endif // DEBUG
#include "mozilla/Tainting.h"
#include "mozilla/ipc/MessageChannel.h"
#include "mozilla/ipc/ProtocolUtils.h"
// Headers for things that cannot be forward declared
#include "Units.h"
#include "mozilla/AspectRatio.h"
#include "mozilla/HalIPCUtils.h"
#include "mozilla/PresShellForwards.h"
#include "mozilla/ScrollbarPreferences.h"
#include "mozilla/ServoStyleConsts.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/EffectsInfo.h"
#include "mozilla/dom/NotificationBinding.h"
#include "mozilla/dom/TabMessageTypes.h"
#include "mozilla/gfx/Types.h"
#include "mozilla/net/ClassOfService.h"
#include "nsIFrame.h"
#include "nsILoadInfo.h"
#include "nsIWidgetListener.h"
namespace mozilla {
namespace dom {
class PBrowserChild;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PBrowserParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace a11y {
class PDocAccessibleChild;
} // namespace a11y
} // namespace mozilla
namespace mozilla {
namespace a11y {
class PDocAccessibleParent;
} // namespace a11y
} // namespace mozilla
namespace mozilla {
namespace dom {
class PBrowserChild;
} // namespace dom
} // namespace mozilla
namespace mozilla {
struct void_t;
} // namespace mozilla
namespace mozilla {
struct SerializedStructuredCloneBuffer;
} // namespace mozilla
namespace mozilla {
namespace dom {
struct LoadingSessionHistoryInfo;
} // namespace dom
} // namespace mozilla
class nsIPrincipal;
class nsIURI;
class nsIContentSecurityPolicy;
class nsIInputStream;
class nsIReferrerInfo;
class nsIVariant;
namespace mozilla {
class RemoteLazyInputStream;
} // namespace mozilla
namespace mozilla {
namespace ipc {
class BigBuffer;
} // namespace ipc
} // namespace mozilla
namespace mozilla {
class WidgetMouseEvent;
} // namespace mozilla
struct nsRect;
class nsDocShellLoadState;
namespace mozilla {
namespace dom {
class PBrowserBridgeChild :
public mozilla::ipc::IRefCountedProtocol
{
private:
friend class ::mozilla::dom::PBrowserChild;
public:
static constexpr ::mozilla::ipc::ProtocolId kProtocolId = PBrowserBridgeMsgStart;
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::AspectRatio AspectRatio;
typedef ::mozilla::ipc::BigBuffer BigBuffer;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::CSSRect CSSRect;
typedef ::mozilla::CSSSize CSSSize;
typedef ::mozilla::CSSToLayoutDeviceScale CSSToLayoutDeviceScale;
typedef ::mozilla::embedding::CStringKeyValue CStringKeyValue;
typedef ::mozilla::dom::CallerType CallerType;
typedef ::mozilla::net::ClassOfService ClassOfService;
typedef ::mozilla::dom::ClonedMessageData ClonedMessageData;
typedef ::mozilla::dom::ClonedOrErrorMessageData ClonedOrErrorMessageData;
typedef ::mozilla::dom::CreatedWindowInfo CreatedWindowInfo;
typedef ::mozilla::DesktopIntRect DesktopIntRect;
typedef ::mozilla::DesktopToLayoutDeviceScale DesktopToLayoutDeviceScale;
typedef ::mozilla::dom::DimensionInfo DimensionInfo;
typedef ::mozilla::dom::DocShellLoadStateInit DocShellLoadStateInit;
typedef ::mozilla::dom::EffectsInfo EffectsInfo;
typedef ::mozilla::dom::EmbedderElementEventType EmbedderElementEventType;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::dom::ErrorMessageData ErrorMessageData;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
typedef ::mozilla::dom::FrameScriptInfo FrameScriptInfo;
typedef ::nsILoadInfo::HTTPSUpgradeTelemetryType HTTPSUpgradeTelemetryType;
typedef ::mozilla::dom::IDPLVariant IDPLVariant;
typedef ::mozilla::dom::IPCImage IPCImage;
typedef ::mozilla::dom::IPCNotificationOptions IPCNotificationOptions;
typedef ::mozilla::dom::IPDLProperty IPDLProperty;
typedef ::mozilla::dom::IPDLVariantValue IPDLVariantValue;
typedef ::mozilla::ImageIntSize ImageIntSize;
typedef ::mozilla::IntrinsicSize IntrinsicSize;
typedef ::mozilla::LayoutDeviceIntPoint LayoutDeviceIntPoint;
typedef ::mozilla::LayoutDeviceIntRect LayoutDeviceIntRect;
typedef ::mozilla::LayoutDeviceIntSize LayoutDeviceIntSize;
typedef ::mozilla::dom::LoadingSessionHistoryInfo LoadingSessionHistoryInfo;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::dom::MaybeDiscardedBrowsingContext MaybeDiscardedBrowsingContext;
typedef ::mozilla::dom::MessageData MessageData;
typedef ::mozilla::dom::MessageDataType MessageDataType;
typedef ::mozilla::dom::MessagePortIdentifier MessagePortIdentifier;
typedef ::mozilla::dom::NotificationBehavior NotificationBehavior;
typedef ::mozilla::dom::NotificationDirection NotificationDirection;
typedef ::mozilla::dom::OwnerShowInfo OwnerShowInfo;
typedef ::mozilla::dom::PBrowserChild PBrowserChild;
typedef ::mozilla::dom::PBrowserParent PBrowserParent;
typedef ::mozilla::a11y::PDocAccessibleChild PDocAccessibleChild;
typedef ::mozilla::a11y::PDocAccessibleParent PDocAccessibleParent;
typedef ::mozilla::dom::ParentShowInfo ParentShowInfo;
typedef ::mozilla::embedding::PrintData PrintData;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef ::mozilla::dom::RefMessageData RefMessageData;
typedef ::mozilla::RemoteLazyInputStream RemoteLazyInputStream;
typedef ::mozilla::dom::ReplacementChannelConfigInit ReplacementChannelConfigInit;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::nsILoadInfo::SchemelessInputType SchemelessInputType;
typedef ::mozilla::dom::ScreenDetails ScreenDetails;
typedef ::mozilla::hal::ScreenOrientation ScreenOrientation;
typedef ::mozilla::ScrollAxis ScrollAxis;
typedef ::mozilla::ScrollFlags ScrollFlags;
typedef ::mozilla::ScrollbarPreference ScrollbarPreference;
typedef ::mozilla::SerializedStructuredCloneBuffer SerializedStructuredCloneBuffer;
typedef ::mozilla::ipc::Shmem Shmem;
typedef ::mozilla::StyleImageRendering StyleImageRendering;
typedef ::mozilla::gfx::SurfaceFormat SurfaceFormat;
typedef ::mozilla::TimeStamp TimeStamp;
typedef ::mozilla::dom::TimedChannelInfo TimedChannelInfo;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
typedef ::mozilla::WidgetMouseEvent WidgetMouseEvent;
typedef ::int16_t int16_t;
typedef ::int32_t int32_t;
typedef ::int64_t int64_t;
typedef ::int8_t int8_t;
typedef ::intptr_t intptr_t;
typedef ::nsCString nsCString;
typedef ::nsDocShellLoadState nsDocShellLoadState;
typedef ::nsIContentSecurityPolicy nsIContentSecurityPolicy;
typedef ::nsIInputStream nsIInputStream;
typedef ::nsIPrincipal nsIPrincipal;
typedef ::nsIReferrerInfo nsIReferrerInfo;
typedef ::nsIURI nsIURI;
typedef ::nsIVariant nsIVariant;
typedef ::nsRect nsRect;
typedef ::nsSizeMode nsSizeMode;
typedef ::nsString nsString;
typedef ::nsresult nsresult;
typedef ::uint16_t uint16_t;
typedef ::uint32_t uint32_t;
typedef ::uint64_t uint64_t;
typedef ::uint8_t uint8_t;
typedef ::uintptr_t uintptr_t;
typedef ::mozilla::void_t void_t;
protected:
virtual mozilla::ipc::IPCResult
Recv__delete__();
public:
typedef mozilla::ipc::IProtocol IProtocol;
typedef IPC::Message Message;
typedef base::ProcessHandle ProcessHandle;
typedef mozilla::ipc::MessageChannel MessageChannel;
typedef mozilla::ipc::SharedMemory SharedMemory;
public:
MOZ_IMPLICIT PBrowserBridgeChild();
virtual ~PBrowserBridgeChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
::GeckoChildID
OtherChildID() const;
::mozilla::ipc::EndpointProcInfo
OtherEndpointProcInfo() const;
PBrowserChild*
Manager() const;
mozilla::Span<mozilla::ipc::ProtocolId const>
ManagedProtocolIds() const final;
UntypedManagedContainer*
GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;
static bool
Send__delete__(PBrowserBridgeChild* actor);
bool
SendBeginDestroy();
bool
SendLoadURL(mozilla::NotNull<nsDocShellLoadState*> aLoadState);
bool
SendResumeLoad(const uint64_t& aPendingSwitchID);
bool
SendShow(const OwnerShowInfo& info);
bool
SendScrollbarPreferenceChanged(const ScrollbarPreference& pref);
bool
SendUpdateDimensions(
const LayoutDeviceIntRect& rect,
const LayoutDeviceIntSize& size);
bool
SendRenderLayers(const bool& aEnabled);
bool
SendUpdateEffects(const EffectsInfo& aEffects);
bool
SendUpdateRemotePrintSettings(const PrintData& aPrintData);
bool
SendNavigateByKey(
const bool& aForward,
const bool& aForDocumentNavigation);
bool
SendDispatchSynthesizedMouseEvent(const WidgetMouseEvent& event);
bool
SendActivate(const uint64_t& aActionId);
bool
SendDeactivate(
const bool& aWindowLowering,
const uint64_t& aActionId);
bool
SendUpdateRemoteStyle(const StyleImageRendering& aImageRendering);
bool
SendWillChangeProcess();
bool
SendSetEmbedderAccessible(
PDocAccessibleChild* aDoc,
const uint64_t& aID);
void
DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
Result
OnMessageReceived(const Message& msg__) override;
Result
OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) override;
private:
bool mAwaitingManagedEndpointBind = false;
};
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::PBrowserBridgeChild*>
{
typedef ::mozilla::dom::PBrowserBridgeChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PBrowserBridgeChild_h