mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1512990
- Part 4 - remove declarations of Recv/Answer methods from IPDL protocol base class; r=froydnj
For cases where the class has direct calls (that is, we cast `this` to the subclass before making the call) no longer declare Recv/Answer methods on the base class at all. This should ensure that slots for them are not generated in vtables, and also allow the derived class to choose the method signature (e.g. whether it wants to take something by reference or by value). Differential Revision: https://phabricator.services.mozilla.com/D18132 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
984f0333ea
commit
0f01791ffc
@ -19,7 +19,7 @@ class HeapSnapshotTempFileHelperParent
|
||||
explicit HeapSnapshotTempFileHelperParent() {}
|
||||
void ActorDestroy(ActorDestroyReason why) override {}
|
||||
mozilla::ipc::IPCResult RecvOpenHeapSnapshotTempFile(
|
||||
OpenHeapSnapshotTempFileResponse* outResponse) override;
|
||||
OpenHeapSnapshotTempFileResponse* outResponse);
|
||||
|
||||
public:
|
||||
static inline PHeapSnapshotTempFileHelperParent* Create();
|
||||
|
@ -221,11 +221,10 @@ class RemotePermissionRequest final
|
||||
nsPIDOMWindowInner* aWindow);
|
||||
|
||||
// It will be called when prompt dismissed.
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyResult(
|
||||
const bool& aAllow,
|
||||
InfallibleTArray<PermissionChoice>&& aChoices) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyResult(
|
||||
const bool& aAllow, InfallibleTArray<PermissionChoice>&& aChoices);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetVisibility() override;
|
||||
mozilla::ipc::IPCResult RecvGetVisibility();
|
||||
|
||||
void IPDLAddRef() {
|
||||
mIPCOpen = true;
|
||||
|
2
dom/cache/CacheParent.h
vendored
2
dom/cache/CacheParent.h
vendored
@ -34,7 +34,7 @@ class CacheParent final : public PCacheParent {
|
||||
virtual mozilla::ipc::IPCResult RecvPCacheOpConstructor(
|
||||
PCacheOpParent* actor, const CacheOpArgs& aOpArgs) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvTeardown() override;
|
||||
mozilla::ipc::IPCResult RecvTeardown();
|
||||
|
||||
RefPtr<cache::Manager> mManager;
|
||||
const CacheId mCacheId;
|
||||
|
2
dom/cache/CacheStorageParent.h
vendored
2
dom/cache/CacheStorageParent.h
vendored
@ -37,7 +37,7 @@ class CacheStorageParent final : public PCacheStorageParent,
|
||||
virtual mozilla::ipc::IPCResult RecvPCacheOpConstructor(
|
||||
PCacheOpParent* actor, const CacheOpArgs& aOpArgs) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvTeardown() override;
|
||||
mozilla::ipc::IPCResult RecvTeardown();
|
||||
|
||||
// PrincipalVerifier::Listener methods
|
||||
virtual void OnPrincipalVerified(nsresult aRv,
|
||||
|
4
dom/cache/CacheStreamControlChild.h
vendored
4
dom/cache/CacheStreamControlChild.h
vendored
@ -53,8 +53,8 @@ class CacheStreamControlChild final : public PCacheStreamControlChild,
|
||||
|
||||
// PCacheStreamControlChild methods
|
||||
virtual void ActorDestroy(ActorDestroyReason aReason) override;
|
||||
virtual mozilla::ipc::IPCResult RecvClose(const nsID& aId) override;
|
||||
virtual mozilla::ipc::IPCResult RecvCloseAll() override;
|
||||
mozilla::ipc::IPCResult RecvClose(const nsID& aId);
|
||||
mozilla::ipc::IPCResult RecvCloseAll();
|
||||
|
||||
bool mDestroyStarted;
|
||||
bool mDestroyDelayed;
|
||||
|
6
dom/cache/CacheStreamControlParent.h
vendored
6
dom/cache/CacheStreamControlParent.h
vendored
@ -57,10 +57,10 @@ class CacheStreamControlParent final : public PCacheStreamControlParent,
|
||||
// PCacheStreamControlParent methods
|
||||
virtual void ActorDestroy(ActorDestroyReason aReason) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOpenStream(
|
||||
const nsID& aStreamId, OpenStreamResolver&& aResolve) override;
|
||||
mozilla::ipc::IPCResult RecvOpenStream(const nsID& aStreamId,
|
||||
OpenStreamResolver&& aResolve);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNoteClosed(const nsID& aId) override;
|
||||
mozilla::ipc::IPCResult RecvNoteClosed(const nsID& aId);
|
||||
|
||||
void NotifyClose(const nsID& aId);
|
||||
void NotifyCloseAll();
|
||||
|
@ -56,12 +56,11 @@ class IPCBlobInputStreamChild final
|
||||
|
||||
void StreamNeeded(IPCBlobInputStream* aStream, nsIEventTarget* aEventTarget);
|
||||
|
||||
mozilla::ipc::IPCResult RecvStreamReady(
|
||||
const OptionalIPCStream& aStream) override;
|
||||
mozilla::ipc::IPCResult RecvStreamReady(const OptionalIPCStream& aStream);
|
||||
|
||||
void LengthNeeded(IPCBlobInputStream* aStream, nsIEventTarget* aEventTarget);
|
||||
|
||||
mozilla::ipc::IPCResult RecvLengthReady(const int64_t& aLength) override;
|
||||
mozilla::ipc::IPCResult RecvLengthReady(const int64_t& aLength);
|
||||
|
||||
void Shutdown();
|
||||
|
||||
|
@ -49,11 +49,11 @@ class IPCBlobInputStreamParent final
|
||||
|
||||
void SetCallback(IPCBlobInputStreamParentCallback* aCallback);
|
||||
|
||||
mozilla::ipc::IPCResult RecvStreamNeeded() override;
|
||||
mozilla::ipc::IPCResult RecvStreamNeeded();
|
||||
|
||||
mozilla::ipc::IPCResult RecvLengthNeeded() override;
|
||||
mozilla::ipc::IPCResult RecvLengthNeeded();
|
||||
|
||||
mozilla::ipc::IPCResult RecvClose() override;
|
||||
mozilla::ipc::IPCResult RecvClose();
|
||||
|
||||
mozilla::ipc::IPCResult Recv__delete__() override;
|
||||
|
||||
|
@ -38,7 +38,7 @@ class TemporaryIPCBlobChild final
|
||||
private:
|
||||
~TemporaryIPCBlobChild();
|
||||
|
||||
mozilla::ipc::IPCResult RecvFileDesc(const FileDescriptor& aFD) override;
|
||||
mozilla::ipc::IPCResult RecvFileDesc(const FileDescriptor& aFD);
|
||||
|
||||
mozilla::ipc::IPCResult Recv__delete__(
|
||||
const IPCBlobOrError& aBlobOrError) override;
|
||||
|
@ -27,10 +27,10 @@ class TemporaryIPCBlobParent final
|
||||
private:
|
||||
~TemporaryIPCBlobParent();
|
||||
|
||||
mozilla::ipc::IPCResult RecvOperationFailed() override;
|
||||
mozilla::ipc::IPCResult RecvOperationFailed();
|
||||
|
||||
mozilla::ipc::IPCResult RecvOperationDone(const nsCString& aContentType,
|
||||
const FileDescriptor& aFD) override;
|
||||
const FileDescriptor& aFD);
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -163,9 +163,9 @@ class BackgroundMutableFileParentBase : public PBackgroundMutableFileParent {
|
||||
virtual bool DeallocPBackgroundFileHandleParent(
|
||||
PBackgroundFileHandleParent* aActor);
|
||||
|
||||
mozilla::ipc::IPCResult RecvDeleteMe() final;
|
||||
mozilla::ipc::IPCResult RecvDeleteMe();
|
||||
|
||||
mozilla::ipc::IPCResult RecvGetFileId(int64_t* aFileId) override;
|
||||
virtual mozilla::ipc::IPCResult RecvGetFileId(int64_t* aFileId);
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
|
@ -15,10 +15,10 @@ class GamepadEventChannelChild final : public PGamepadEventChannelChild {
|
||||
public:
|
||||
GamepadEventChannelChild() {}
|
||||
~GamepadEventChannelChild() {}
|
||||
virtual mozilla::ipc::IPCResult RecvGamepadUpdate(
|
||||
const GamepadChangeEvent& aGamepadEvent) override;
|
||||
virtual mozilla::ipc::IPCResult RecvReplyGamepadVibrateHaptic(
|
||||
const uint32_t& aPromiseID) override;
|
||||
mozilla::ipc::IPCResult RecvGamepadUpdate(
|
||||
const GamepadChangeEvent& aGamepadEvent);
|
||||
mozilla::ipc::IPCResult RecvReplyGamepadVibrateHaptic(
|
||||
const uint32_t& aPromiseID);
|
||||
void AddPromise(const uint32_t& aID, dom::Promise* aPromise);
|
||||
|
||||
private:
|
||||
|
@ -16,14 +16,14 @@ class GamepadEventChannelParent final : public PGamepadEventChannelParent {
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(GamepadEventChannelParent)
|
||||
GamepadEventChannelParent();
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
virtual mozilla::ipc::IPCResult RecvGamepadListenerAdded() override;
|
||||
virtual mozilla::ipc::IPCResult RecvGamepadListenerRemoved() override;
|
||||
virtual mozilla::ipc::IPCResult RecvVibrateHaptic(
|
||||
const uint32_t& aControllerIdx, const uint32_t& aHapticIndex,
|
||||
const double& aIntensity, const double& aDuration,
|
||||
const uint32_t& aPromiseID) override;
|
||||
virtual mozilla::ipc::IPCResult RecvStopVibrateHaptic(
|
||||
const uint32_t& aGamepadIndex) override;
|
||||
mozilla::ipc::IPCResult RecvGamepadListenerAdded();
|
||||
mozilla::ipc::IPCResult RecvGamepadListenerRemoved();
|
||||
mozilla::ipc::IPCResult RecvVibrateHaptic(const uint32_t& aControllerIdx,
|
||||
const uint32_t& aHapticIndex,
|
||||
const double& aIntensity,
|
||||
const double& aDuration,
|
||||
const uint32_t& aPromiseID);
|
||||
mozilla::ipc::IPCResult RecvStopVibrateHaptic(const uint32_t& aGamepadIndex);
|
||||
void DispatchUpdateEvent(const GamepadChangeEvent& aEvent);
|
||||
bool HasGamepadListener() const { return mHasGamepadListener; }
|
||||
|
||||
|
@ -22,8 +22,8 @@ class GamepadTestChannelChild final : public PGamepadTestChannelChild {
|
||||
void AddPromise(const uint32_t& aID, Promise* aPromise);
|
||||
|
||||
private:
|
||||
virtual mozilla::ipc::IPCResult RecvReplyGamepadIndex(
|
||||
const uint32_t& aID, const uint32_t& aIndex) override;
|
||||
mozilla::ipc::IPCResult RecvReplyGamepadIndex(const uint32_t& aID,
|
||||
const uint32_t& aIndex);
|
||||
|
||||
nsRefPtrHashtable<nsUint32HashKey, dom::Promise> mPromiseList;
|
||||
};
|
||||
|
@ -17,9 +17,9 @@ class GamepadTestChannelParent final : public PGamepadTestChannelParent {
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(GamepadTestChannelParent)
|
||||
GamepadTestChannelParent() : mShuttingdown(false) {}
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override {}
|
||||
virtual mozilla::ipc::IPCResult RecvGamepadTestEvent(
|
||||
const uint32_t& aID, const GamepadChangeEvent& aGamepadEvent) override;
|
||||
virtual mozilla::ipc::IPCResult RecvShutdownChannel() override;
|
||||
mozilla::ipc::IPCResult RecvGamepadTestEvent(
|
||||
const uint32_t& aID, const GamepadChangeEvent& aGamepadEvent);
|
||||
mozilla::ipc::IPCResult RecvShutdownChannel();
|
||||
|
||||
private:
|
||||
~GamepadTestChannelParent() {}
|
||||
|
@ -6439,7 +6439,7 @@ class MutableFile : public BackgroundMutableFileParentBase {
|
||||
mozilla::ipc::IPCResult RecvPBackgroundFileHandleConstructor(
|
||||
PBackgroundFileHandleParent* aActor, const FileMode& aMode) final;
|
||||
|
||||
mozilla::ipc::IPCResult RecvGetFileId(int64_t* aFileId) final;
|
||||
mozilla::ipc::IPCResult RecvGetFileId(int64_t* aFileId) override;
|
||||
};
|
||||
|
||||
class FactoryOp : public DatabaseOperationBase,
|
||||
|
@ -47,9 +47,9 @@ class ContentBridgeChild final : public PContentBridgeChild,
|
||||
SendPChildToParentStreamConstructor(
|
||||
mozilla::ipc::PChildToParentStreamChild*) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvActivate(PBrowserChild* aTab) override;
|
||||
mozilla::ipc::IPCResult RecvActivate(PBrowserChild* aTab);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDeactivate(PBrowserChild* aTab) override;
|
||||
mozilla::ipc::IPCResult RecvDeactivate(PBrowserChild* aTab);
|
||||
|
||||
virtual already_AddRefed<nsIEventTarget> GetEventTargetFor(
|
||||
TabChild* aTabChild) override;
|
||||
|
@ -157,43 +157,42 @@ class ContentChild final : public PContentChild,
|
||||
static void UpdateCookieStatus(nsIChannel* aChannel);
|
||||
|
||||
mozilla::ipc::IPCResult RecvInitContentBridgeChild(
|
||||
Endpoint<PContentBridgeChild>&& aEndpoint) override;
|
||||
Endpoint<PContentBridgeChild>&& aEndpoint);
|
||||
|
||||
mozilla::ipc::IPCResult RecvInitGMPService(
|
||||
Endpoint<PGMPServiceChild>&& aGMPService) override;
|
||||
Endpoint<PGMPServiceChild>&& aGMPService);
|
||||
|
||||
mozilla::ipc::IPCResult RecvInitProfiler(
|
||||
Endpoint<PProfilerChild>&& aEndpoint) override;
|
||||
Endpoint<PProfilerChild>&& aEndpoint);
|
||||
|
||||
mozilla::ipc::IPCResult RecvGMPsChanged(
|
||||
nsTArray<GMPCapabilityData>&& capabilities) override;
|
||||
nsTArray<GMPCapabilityData>&& capabilities);
|
||||
|
||||
mozilla::ipc::IPCResult RecvInitProcessHangMonitor(
|
||||
Endpoint<PProcessHangMonitorChild>&& aHangMonitor) override;
|
||||
Endpoint<PProcessHangMonitorChild>&& aHangMonitor);
|
||||
|
||||
mozilla::ipc::IPCResult RecvInitRendering(
|
||||
Endpoint<PCompositorManagerChild>&& aCompositor,
|
||||
Endpoint<PImageBridgeChild>&& aImageBridge,
|
||||
Endpoint<PVRManagerChild>&& aVRBridge,
|
||||
Endpoint<PVideoDecoderManagerChild>&& aVideoManager,
|
||||
nsTArray<uint32_t>&& namespaces) override;
|
||||
nsTArray<uint32_t>&& namespaces);
|
||||
|
||||
mozilla::ipc::IPCResult RecvRequestPerformanceMetrics(
|
||||
const nsID& aID) override;
|
||||
mozilla::ipc::IPCResult RecvRequestPerformanceMetrics(const nsID& aID);
|
||||
|
||||
mozilla::ipc::IPCResult RecvReinitRendering(
|
||||
Endpoint<PCompositorManagerChild>&& aCompositor,
|
||||
Endpoint<PImageBridgeChild>&& aImageBridge,
|
||||
Endpoint<PVRManagerChild>&& aVRBridge,
|
||||
Endpoint<PVideoDecoderManagerChild>&& aVideoManager,
|
||||
nsTArray<uint32_t>&& namespaces) override;
|
||||
nsTArray<uint32_t>&& namespaces);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAudioDefaultDeviceChange() override;
|
||||
virtual mozilla::ipc::IPCResult RecvAudioDefaultDeviceChange();
|
||||
|
||||
mozilla::ipc::IPCResult RecvReinitRenderingForDeviceReset() override;
|
||||
mozilla::ipc::IPCResult RecvReinitRenderingForDeviceReset();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetProcessSandbox(
|
||||
const MaybeFileDesc& aBroker) override;
|
||||
const MaybeFileDesc& aBroker);
|
||||
|
||||
virtual PBrowserChild* AllocPBrowserChild(const TabId& aTabId,
|
||||
const TabId& aSameTabGroupAs,
|
||||
@ -303,28 +302,28 @@ class ContentChild final : public PContentChild,
|
||||
|
||||
bool DeallocPPresentationChild(PPresentationChild* aActor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyPresentationReceiverLaunched(
|
||||
PBrowserChild* aIframe, const nsString& aSessionId) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyPresentationReceiverLaunched(
|
||||
PBrowserChild* aIframe, const nsString& aSessionId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyPresentationReceiverCleanUp(
|
||||
const nsString& aSessionId) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyPresentationReceiverCleanUp(
|
||||
const nsString& aSessionId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyEmptyHTTPCache() override;
|
||||
mozilla::ipc::IPCResult RecvNotifyEmptyHTTPCache();
|
||||
|
||||
PSpeechSynthesisChild* AllocPSpeechSynthesisChild();
|
||||
|
||||
bool DeallocPSpeechSynthesisChild(PSpeechSynthesisChild* aActor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRegisterChrome(
|
||||
mozilla::ipc::IPCResult RecvRegisterChrome(
|
||||
InfallibleTArray<ChromePackage>&& packages,
|
||||
InfallibleTArray<SubstitutionMapping>&& resources,
|
||||
InfallibleTArray<OverrideMapping>&& overrides, const nsCString& locale,
|
||||
const bool& reset) override;
|
||||
virtual mozilla::ipc::IPCResult RecvRegisterChromeItem(
|
||||
const ChromeRegistryItem& item) override;
|
||||
const bool& reset);
|
||||
mozilla::ipc::IPCResult RecvRegisterChromeItem(
|
||||
const ChromeRegistryItem& item);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvClearImageCache(
|
||||
const bool& privateLoader, const bool& chrome) override;
|
||||
mozilla::ipc::IPCResult RecvClearImageCache(const bool& privateLoader,
|
||||
const bool& chrome);
|
||||
|
||||
virtual mozilla::jsipc::PJavaScriptChild* AllocPJavaScriptChild() override;
|
||||
|
||||
@ -335,43 +334,36 @@ class ContentChild final : public PContentChild,
|
||||
|
||||
bool DeallocPRemoteSpellcheckEngineChild(PRemoteSpellcheckEngineChild*);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetOffline(const bool& offline) override;
|
||||
mozilla::ipc::IPCResult RecvSetOffline(const bool& offline);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetConnectivity(
|
||||
const bool& connectivity) override;
|
||||
virtual mozilla::ipc::IPCResult RecvSetCaptivePortalState(
|
||||
const int32_t& state) override;
|
||||
mozilla::ipc::IPCResult RecvSetConnectivity(const bool& connectivity);
|
||||
mozilla::ipc::IPCResult RecvSetCaptivePortalState(const int32_t& state);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvBidiKeyboardNotify(
|
||||
const bool& isLangRTL, const bool& haveBidiKeyboards) override;
|
||||
mozilla::ipc::IPCResult RecvBidiKeyboardNotify(const bool& isLangRTL,
|
||||
const bool& haveBidiKeyboards);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyVisited(
|
||||
nsTArray<URIParams>&& aURIs) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyVisited(nsTArray<URIParams>&& aURIs);
|
||||
|
||||
// auto remove when alertfinished is received.
|
||||
nsresult AddRemoteAlertObserver(const nsString& aData,
|
||||
nsIObserver* aObserver);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPreferenceUpdate(
|
||||
const Pref& aPref) override;
|
||||
virtual mozilla::ipc::IPCResult RecvVarUpdate(
|
||||
const GfxVarUpdate& pref) override;
|
||||
mozilla::ipc::IPCResult RecvPreferenceUpdate(const Pref& aPref);
|
||||
mozilla::ipc::IPCResult RecvVarUpdate(const GfxVarUpdate& pref);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDataStoragePut(
|
||||
const nsString& aFilename, const DataStorageItem& aItem) override;
|
||||
mozilla::ipc::IPCResult RecvDataStoragePut(const nsString& aFilename,
|
||||
const DataStorageItem& aItem);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDataStorageRemove(
|
||||
const nsString& aFilename, const nsCString& aKey,
|
||||
const DataStorageType& aType) override;
|
||||
mozilla::ipc::IPCResult RecvDataStorageRemove(const nsString& aFilename,
|
||||
const nsCString& aKey,
|
||||
const DataStorageType& aType);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDataStorageClear(
|
||||
const nsString& aFilename) override;
|
||||
mozilla::ipc::IPCResult RecvDataStorageClear(const nsString& aFilename);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyAlertsObserver(
|
||||
const nsCString& aType, const nsString& aData) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyAlertsObserver(const nsCString& aType,
|
||||
const nsString& aData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvLoadProcessScript(
|
||||
const nsString& aURL) override;
|
||||
virtual mozilla::ipc::IPCResult RecvLoadProcessScript(const nsString& aURL);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAsyncMessage(
|
||||
const nsString& aMsg, InfallibleTArray<CpowEntry>&& aCpows,
|
||||
@ -379,129 +371,125 @@ class ContentChild final : public PContentChild,
|
||||
const ClonedMessageData& aData) override;
|
||||
|
||||
mozilla::ipc::IPCResult RecvRegisterStringBundles(
|
||||
nsTArray<StringBundleDescriptor>&& stringBundles) override;
|
||||
nsTArray<StringBundleDescriptor>&& stringBundles);
|
||||
|
||||
mozilla::ipc::IPCResult RecvUpdateSharedData(
|
||||
const FileDescriptor& aMapFile, const uint32_t& aMapSize,
|
||||
nsTArray<IPCBlob>&& aBlobs, nsTArray<nsCString>&& aChangedKeys) override;
|
||||
nsTArray<IPCBlob>&& aBlobs, nsTArray<nsCString>&& aChangedKeys);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGeolocationUpdate(
|
||||
nsIDOMGeoPosition* aPosition) override;
|
||||
mozilla::ipc::IPCResult RecvGeolocationUpdate(nsIDOMGeoPosition* aPosition);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGeolocationError(
|
||||
const uint16_t& errorCode) override;
|
||||
mozilla::ipc::IPCResult RecvGeolocationError(const uint16_t& errorCode);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateDictionaryList(
|
||||
InfallibleTArray<nsString>&& aDictionaries) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateDictionaryList(
|
||||
InfallibleTArray<nsString>&& aDictionaries);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateFontList(
|
||||
InfallibleTArray<SystemFontListEntry>&& aFontList) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateFontList(
|
||||
InfallibleTArray<SystemFontListEntry>&& aFontList);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateAppLocales(
|
||||
nsTArray<nsCString>&& aAppLocales) override;
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateRequestedLocales(
|
||||
nsTArray<nsCString>&& aRequestedLocales) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateAppLocales(
|
||||
nsTArray<nsCString>&& aAppLocales);
|
||||
mozilla::ipc::IPCResult RecvUpdateRequestedLocales(
|
||||
nsTArray<nsCString>&& aRequestedLocales);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvClearSiteDataReloadNeeded(
|
||||
const nsString& aOrigin) override;
|
||||
mozilla::ipc::IPCResult RecvClearSiteDataReloadNeeded(
|
||||
const nsString& aOrigin);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAddPermission(
|
||||
const IPC::Permission& permission) override;
|
||||
mozilla::ipc::IPCResult RecvAddPermission(const IPC::Permission& permission);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRemoveAllPermissions() override;
|
||||
mozilla::ipc::IPCResult RecvRemoveAllPermissions();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvFlushMemory(
|
||||
const nsString& reason) override;
|
||||
mozilla::ipc::IPCResult RecvFlushMemory(const nsString& reason);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvActivateA11y(
|
||||
const uint32_t& aMainChromeTid, const uint32_t& aMsaaID) override;
|
||||
virtual mozilla::ipc::IPCResult RecvShutdownA11y() override;
|
||||
mozilla::ipc::IPCResult RecvActivateA11y(const uint32_t& aMainChromeTid,
|
||||
const uint32_t& aMsaaID);
|
||||
mozilla::ipc::IPCResult RecvShutdownA11y();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGarbageCollect() override;
|
||||
virtual mozilla::ipc::IPCResult RecvCycleCollect() override;
|
||||
virtual mozilla::ipc::IPCResult RecvUnlinkGhosts() override;
|
||||
mozilla::ipc::IPCResult RecvGarbageCollect();
|
||||
mozilla::ipc::IPCResult RecvCycleCollect();
|
||||
mozilla::ipc::IPCResult RecvUnlinkGhosts();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAppInfo(
|
||||
mozilla::ipc::IPCResult RecvAppInfo(
|
||||
const nsCString& version, const nsCString& buildID, const nsCString& name,
|
||||
const nsCString& UAName, const nsCString& ID, const nsCString& vendor,
|
||||
const nsCString& sourceURL) override;
|
||||
const nsCString& sourceURL);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRemoteType(
|
||||
const nsString& aRemoteType) override;
|
||||
mozilla::ipc::IPCResult RecvRemoteType(const nsString& aRemoteType);
|
||||
|
||||
const nsAString& GetRemoteType() const;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInitServiceWorkers(
|
||||
const ServiceWorkerConfiguration& aConfig) override;
|
||||
mozilla::ipc::IPCResult RecvInitServiceWorkers(
|
||||
const ServiceWorkerConfiguration& aConfig);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInitBlobURLs(
|
||||
nsTArray<BlobURLRegistrationData>&& aRegistations) override;
|
||||
mozilla::ipc::IPCResult RecvInitBlobURLs(
|
||||
nsTArray<BlobURLRegistrationData>&& aRegistations);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInitJSWindowActorInfos(
|
||||
nsTArray<JSWindowActorInfo>&& aInfos) override;
|
||||
mozilla::ipc::IPCResult RecvInitJSWindowActorInfos(
|
||||
nsTArray<JSWindowActorInfo>&& aInfos);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvLastPrivateDocShellDestroyed() override;
|
||||
mozilla::ipc::IPCResult RecvLastPrivateDocShellDestroyed();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyProcessPriorityChanged(
|
||||
const hal::ProcessPriority& aPriority) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyProcessPriorityChanged(
|
||||
const hal::ProcessPriority& aPriority);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvMinimizeMemoryUsage() override;
|
||||
mozilla::ipc::IPCResult RecvMinimizeMemoryUsage();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvLoadAndRegisterSheet(
|
||||
const URIParams& aURI, const uint32_t& aType) override;
|
||||
mozilla::ipc::IPCResult RecvLoadAndRegisterSheet(const URIParams& aURI,
|
||||
const uint32_t& aType);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUnregisterSheet(
|
||||
const URIParams& aURI, const uint32_t& aType) override;
|
||||
mozilla::ipc::IPCResult RecvUnregisterSheet(const URIParams& aURI,
|
||||
const uint32_t& aType);
|
||||
|
||||
void AddIdleObserver(nsIObserver* aObserver, uint32_t aIdleTimeInS);
|
||||
|
||||
void RemoveIdleObserver(nsIObserver* aObserver, uint32_t aIdleTimeInS);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyIdleObserver(
|
||||
const uint64_t& aObserver, const nsCString& aTopic,
|
||||
const nsString& aData) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyIdleObserver(const uint64_t& aObserver,
|
||||
const nsCString& aTopic,
|
||||
const nsString& aData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateWindow(
|
||||
const uintptr_t& aChildId) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateWindow(const uintptr_t& aChildId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDomainSetChanged(
|
||||
mozilla::ipc::IPCResult RecvDomainSetChanged(
|
||||
const uint32_t& aSetType, const uint32_t& aChangeType,
|
||||
const OptionalURIParams& aDomain) override;
|
||||
const OptionalURIParams& aDomain);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvShutdown() override;
|
||||
mozilla::ipc::IPCResult RecvShutdown();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInvokeDragSession(
|
||||
nsTArray<IPCDataTransfer>&& aTransfers, const uint32_t& aAction) override;
|
||||
mozilla::ipc::IPCResult RecvInvokeDragSession(
|
||||
nsTArray<IPCDataTransfer>&& aTransfers, const uint32_t& aAction);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvEndDragSession(
|
||||
mozilla::ipc::IPCResult RecvEndDragSession(
|
||||
const bool& aDoneDrag, const bool& aUserCancelled,
|
||||
const mozilla::LayoutDeviceIntPoint& aEndDragPoint,
|
||||
const uint32_t& aKeyModifiers) override;
|
||||
const uint32_t& aKeyModifiers);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPush(const nsCString& aScope,
|
||||
mozilla::ipc::IPCResult RecvPush(const nsCString& aScope,
|
||||
const IPC::Principal& aPrincipal,
|
||||
const nsString& aMessageId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvPushWithData(const nsCString& aScope,
|
||||
const IPC::Principal& aPrincipal,
|
||||
const nsString& aMessageId) override;
|
||||
const nsString& aMessageId,
|
||||
InfallibleTArray<uint8_t>&& aData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPushWithData(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal,
|
||||
const nsString& aMessageId, InfallibleTArray<uint8_t>&& aData) override;
|
||||
mozilla::ipc::IPCResult RecvPushSubscriptionChange(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPushSubscriptionChange(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal) override;
|
||||
mozilla::ipc::IPCResult RecvPushError(const nsCString& aScope,
|
||||
const IPC::Principal& aPrincipal,
|
||||
const nsString& aMessage,
|
||||
const uint32_t& aFlags);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPushError(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal,
|
||||
const nsString& aMessage, const uint32_t& aFlags) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyPushSubscriptionModifiedObservers(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyPushSubscriptionModifiedObservers(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal) override;
|
||||
mozilla::ipc::IPCResult RecvActivate(PBrowserChild* aTab);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvActivate(PBrowserChild* aTab) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDeactivate(PBrowserChild* aTab) override;
|
||||
mozilla::ipc::IPCResult RecvDeactivate(PBrowserChild* aTab);
|
||||
|
||||
mozilla::ipc::IPCResult RecvRefreshScreens(
|
||||
nsTArray<ScreenDetails>&& aScreens) override;
|
||||
nsTArray<ScreenDetails>&& aScreens);
|
||||
|
||||
// Get the directory for IndexedDB files. We query the parent for this and
|
||||
// cache the value
|
||||
@ -562,9 +550,9 @@ class ContentChild final : public PContentChild,
|
||||
PContentPermissionRequestChild* actor);
|
||||
|
||||
// Windows specific - set up audio session
|
||||
virtual mozilla::ipc::IPCResult RecvSetAudioSessionData(
|
||||
const nsID& aId, const nsString& aDisplayName,
|
||||
const nsString& aIconPath) override;
|
||||
mozilla::ipc::IPCResult RecvSetAudioSessionData(const nsID& aId,
|
||||
const nsString& aDisplayName,
|
||||
const nsString& aIconPath);
|
||||
|
||||
// GetFiles for WebKit/Blink FileSystem API and Directory API must run on the
|
||||
// parent process.
|
||||
@ -574,54 +562,52 @@ class ContentChild final : public PContentChild,
|
||||
|
||||
void DeleteGetFilesRequest(nsID& aUUID, GetFilesHelperChild* aChild);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetFilesResponse(
|
||||
const nsID& aUUID, const GetFilesResponseResult& aResult) override;
|
||||
mozilla::ipc::IPCResult RecvGetFilesResponse(
|
||||
const nsID& aUUID, const GetFilesResponseResult& aResult);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvBlobURLRegistration(
|
||||
mozilla::ipc::IPCResult RecvBlobURLRegistration(
|
||||
const nsCString& aURI, const IPCBlob& aBlob,
|
||||
const IPC::Principal& aPrincipal) override;
|
||||
const IPC::Principal& aPrincipal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvBlobURLUnregistration(
|
||||
const nsCString& aURI) override;
|
||||
mozilla::ipc::IPCResult RecvBlobURLUnregistration(const nsCString& aURI);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvFileCreationResponse(
|
||||
const nsID& aUUID, const FileCreationResult& aResult) override;
|
||||
mozilla::ipc::IPCResult RecvFileCreationResponse(
|
||||
const nsID& aUUID, const FileCreationResult& aResult);
|
||||
|
||||
mozilla::ipc::IPCResult RecvRequestMemoryReport(
|
||||
const uint32_t& generation, const bool& anonymize,
|
||||
const bool& minimizeMemoryUsage, const MaybeFileDesc& DMDFile) override;
|
||||
const bool& minimizeMemoryUsage, const MaybeFileDesc& DMDFile);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetXPCOMProcessAttributes(
|
||||
mozilla::ipc::IPCResult RecvSetXPCOMProcessAttributes(
|
||||
const XPCOMInitData& aXPCOMInit, const StructuredCloneData& aInitialData,
|
||||
nsTArray<LookAndFeelInt>&& aLookAndFeelIntCache,
|
||||
nsTArray<SystemFontListEntry>&& aFontList) override;
|
||||
nsTArray<SystemFontListEntry>&& aFontList);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvProvideAnonymousTemporaryFile(
|
||||
const uint64_t& aID, const FileDescOrError& aFD) override;
|
||||
mozilla::ipc::IPCResult RecvProvideAnonymousTemporaryFile(
|
||||
const uint64_t& aID, const FileDescOrError& aFD);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetPermissionsWithKey(
|
||||
const nsCString& aPermissionKey,
|
||||
nsTArray<IPC::Permission>&& aPerms) override;
|
||||
const nsCString& aPermissionKey, nsTArray<IPC::Permission>&& aPerms);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvShareCodeCoverageMutex(
|
||||
const CrossProcessMutexHandle& aHandle) override;
|
||||
mozilla::ipc::IPCResult RecvShareCodeCoverageMutex(
|
||||
const CrossProcessMutexHandle& aHandle);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvFlushCodeCoverageCounters(
|
||||
FlushCodeCoverageCountersResolver&& aResolver) override;
|
||||
mozilla::ipc::IPCResult RecvFlushCodeCoverageCounters(
|
||||
FlushCodeCoverageCountersResolver&& aResolver);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetMemoryUniqueSetSize(
|
||||
GetMemoryUniqueSetSizeResolver&& aResolver) override;
|
||||
mozilla::ipc::IPCResult RecvGetMemoryUniqueSetSize(
|
||||
GetMemoryUniqueSetSizeResolver&& aResolver);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetInputEventQueueEnabled() override;
|
||||
mozilla::ipc::IPCResult RecvSetInputEventQueueEnabled();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvFlushInputEventQueue() override;
|
||||
mozilla::ipc::IPCResult RecvFlushInputEventQueue();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSuspendInputEventQueue() override;
|
||||
mozilla::ipc::IPCResult RecvSuspendInputEventQueue();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvResumeInputEventQueue() override;
|
||||
mozilla::ipc::IPCResult RecvResumeInputEventQueue();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAddDynamicScalars(
|
||||
nsTArray<DynamicScalarDefinition>&& aDefs) override;
|
||||
mozilla::ipc::IPCResult RecvAddDynamicScalars(
|
||||
nsTArray<DynamicScalarDefinition>&& aDefs);
|
||||
|
||||
#if defined(XP_WIN) && defined(ACCESSIBILITY)
|
||||
bool SendGetA11yContentId();
|
||||
@ -675,25 +661,24 @@ class ContentChild final : public PContentChild,
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetPluginList(
|
||||
const uint32_t& aPluginEpoch, nsTArray<PluginTag>&& aPluginTags,
|
||||
nsTArray<FakePluginTag>&& aFakePluginTags) override;
|
||||
nsTArray<FakePluginTag>&& aFakePluginTags);
|
||||
|
||||
PClientOpenWindowOpChild* AllocPClientOpenWindowOpChild(
|
||||
const ClientOpenWindowArgs& aArgs);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPClientOpenWindowOpConstructor(
|
||||
mozilla::ipc::IPCResult RecvPClientOpenWindowOpConstructor(
|
||||
PClientOpenWindowOpChild* aActor,
|
||||
const ClientOpenWindowArgs& aArgs) override;
|
||||
|
||||
bool DeallocPClientOpenWindowOpChild(PClientOpenWindowOpChild* aActor);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSaveRecording(
|
||||
const FileDescriptor& aFile) override;
|
||||
mozilla::ipc::IPCResult RecvSaveRecording(const FileDescriptor& aFile);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCrossProcessRedirect(
|
||||
mozilla::ipc::IPCResult RecvCrossProcessRedirect(
|
||||
const uint32_t& aRegistrarId, nsIURI* aURI, const uint32_t& aNewLoadFlags,
|
||||
const OptionalLoadInfoArgs& aLoadInfoForwarder,
|
||||
const uint64_t& aChannelId, nsIURI* aOriginalURI,
|
||||
const uint64_t& aIdentifier) override;
|
||||
const uint64_t& aIdentifier);
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
// Fetch the current number of pending input events.
|
||||
@ -724,15 +709,13 @@ class ContentChild final : public PContentChild,
|
||||
|
||||
virtual void OnChannelReceivedMessage(const Message& aMsg) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvWindowClose(
|
||||
const BrowsingContextId& aContextId, const bool& aTrustedCaller) override;
|
||||
virtual mozilla::ipc::IPCResult RecvWindowFocus(
|
||||
const BrowsingContextId& aContextId) override;
|
||||
virtual mozilla::ipc::IPCResult RecvWindowBlur(
|
||||
const BrowsingContextId& aContextId) override;
|
||||
virtual mozilla::ipc::IPCResult RecvWindowPostMessage(
|
||||
mozilla::ipc::IPCResult RecvWindowClose(const BrowsingContextId& aContextId,
|
||||
const bool& aTrustedCaller);
|
||||
mozilla::ipc::IPCResult RecvWindowFocus(const BrowsingContextId& aContextId);
|
||||
mozilla::ipc::IPCResult RecvWindowBlur(const BrowsingContextId& aContextId);
|
||||
mozilla::ipc::IPCResult RecvWindowPostMessage(
|
||||
const BrowsingContextId& aContextId, const ClonedMessageData& aMessage,
|
||||
const PostMessageData& aData) override;
|
||||
const PostMessageData& aData);
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
virtual PContentChild::Result OnMessageReceived(const Message& aMsg) override;
|
||||
|
@ -277,41 +277,39 @@ class ContentParent final : public PContentParent,
|
||||
// Let managees query if it is safe to send messages.
|
||||
bool IsDestroyed() const { return !mIPCOpen; }
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCreateChildProcess(
|
||||
mozilla::ipc::IPCResult RecvCreateChildProcess(
|
||||
const IPCTabContext& aContext, const hal::ProcessPriority& aPriority,
|
||||
const TabId& aOpenerTabId, const TabId& aTabId, ContentParentId* aCpId,
|
||||
bool* aIsForBrowser) override;
|
||||
bool* aIsForBrowser);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvBridgeToChildProcess(
|
||||
const ContentParentId& aCpId,
|
||||
Endpoint<PContentBridgeParent>* aEndpoint) override;
|
||||
mozilla::ipc::IPCResult RecvBridgeToChildProcess(
|
||||
const ContentParentId& aCpId, Endpoint<PContentBridgeParent>* aEndpoint);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOpenRecordReplayChannel(
|
||||
const uint32_t& channelId, FileDescriptor* connection) override;
|
||||
virtual mozilla::ipc::IPCResult RecvCreateReplayingProcess(
|
||||
const uint32_t& aChannelId) override;
|
||||
mozilla::ipc::IPCResult RecvOpenRecordReplayChannel(
|
||||
const uint32_t& channelId, FileDescriptor* connection);
|
||||
mozilla::ipc::IPCResult RecvCreateReplayingProcess(
|
||||
const uint32_t& aChannelId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCreateGMPService() override;
|
||||
mozilla::ipc::IPCResult RecvCreateGMPService();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvLoadPlugin(
|
||||
mozilla::ipc::IPCResult RecvLoadPlugin(
|
||||
const uint32_t& aPluginId, nsresult* aRv, uint32_t* aRunID,
|
||||
Endpoint<PPluginModuleParent>* aEndpoint) override;
|
||||
Endpoint<PPluginModuleParent>* aEndpoint);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvMaybeReloadPlugins() override;
|
||||
mozilla::ipc::IPCResult RecvMaybeReloadPlugins();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvConnectPluginBridge(
|
||||
mozilla::ipc::IPCResult RecvConnectPluginBridge(
|
||||
const uint32_t& aPluginId, nsresult* aRv,
|
||||
Endpoint<PPluginModuleParent>* aEndpoint) override;
|
||||
Endpoint<PPluginModuleParent>* aEndpoint);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvLaunchRDDProcess(
|
||||
nsresult* aRv, Endpoint<PRemoteDecoderManagerChild>* aEndpoint) override;
|
||||
mozilla::ipc::IPCResult RecvLaunchRDDProcess(
|
||||
nsresult* aRv, Endpoint<PRemoteDecoderManagerChild>* aEndpoint);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUngrabPointer(
|
||||
const uint32_t& aTime) override;
|
||||
mozilla::ipc::IPCResult RecvUngrabPointer(const uint32_t& aTime);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRemovePermission(
|
||||
const IPC::Principal& aPrincipal, const nsCString& aPermissionType,
|
||||
nsresult* aRv) override;
|
||||
mozilla::ipc::IPCResult RecvRemovePermission(const IPC::Principal& aPrincipal,
|
||||
const nsCString& aPermissionType,
|
||||
nsresult* aRv);
|
||||
|
||||
NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(ContentParent, nsIObserver)
|
||||
|
||||
@ -404,8 +402,8 @@ class ContentParent final : public PContentParent,
|
||||
|
||||
virtual void OnChannelError() override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInitCrashReporter(
|
||||
Shmem&& aShmem, const NativeThreadId& aThreadId) override;
|
||||
mozilla::ipc::IPCResult RecvInitCrashReporter(
|
||||
Shmem&& aShmem, const NativeThreadId& aThreadId);
|
||||
|
||||
PNeckoParent* AllocPNeckoParent();
|
||||
|
||||
@ -425,9 +423,9 @@ class ContentParent final : public PContentParent,
|
||||
already_AddRefed<embedding::PrintingParent> GetPrintingParent();
|
||||
#endif
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInitStreamFilter(
|
||||
mozilla::ipc::IPCResult RecvInitStreamFilter(
|
||||
const uint64_t& aChannelId, const nsString& aAddonId,
|
||||
InitStreamFilterResolver&& aResolver) override;
|
||||
InitStreamFilterResolver&& aResolver);
|
||||
|
||||
virtual PChildToParentStreamParent* AllocPChildToParentStreamParent()
|
||||
override;
|
||||
@ -463,20 +461,20 @@ class ContentParent final : public PContentParent,
|
||||
|
||||
PRemoteSpellcheckEngineParent* AllocPRemoteSpellcheckEngineParent();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRecordingDeviceEvents(
|
||||
mozilla::ipc::IPCResult RecvRecordingDeviceEvents(
|
||||
const nsString& aRecordingStatus, const nsString& aPageURL,
|
||||
const bool& aIsAudio, const bool& aIsVideo) override;
|
||||
const bool& aIsAudio, const bool& aIsVideo);
|
||||
|
||||
bool CycleCollectWithLogs(bool aDumpAllTraces,
|
||||
nsICycleCollectorLogSink* aSink,
|
||||
nsIDumpGCAndCCLogsCallback* aCallback);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUnregisterRemoteFrame(
|
||||
mozilla::ipc::IPCResult RecvUnregisterRemoteFrame(
|
||||
const TabId& aTabId, const ContentParentId& aCpId,
|
||||
const bool& aMarkedDestroying) override;
|
||||
const bool& aMarkedDestroying);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyTabDestroying(
|
||||
const TabId& aTabId, const ContentParentId& aCpId) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyTabDestroying(const TabId& aTabId,
|
||||
const ContentParentId& aCpId);
|
||||
|
||||
nsTArray<TabContext> GetManagedTabContext();
|
||||
|
||||
@ -492,9 +490,9 @@ class ContentParent final : public PContentParent,
|
||||
bool DeallocPOfflineCacheUpdateParent(POfflineCacheUpdateParent* aActor);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetOfflinePermission(
|
||||
const IPC::Principal& principal) override;
|
||||
const IPC::Principal& principal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvFinishShutdown() override;
|
||||
mozilla::ipc::IPCResult RecvFinishShutdown();
|
||||
|
||||
void MaybeInvokeDragSession(TabParent* aParent);
|
||||
|
||||
@ -511,24 +509,23 @@ class ContentParent final : public PContentParent,
|
||||
|
||||
void ForkNewProcess(bool aBlocking);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCreateWindow(
|
||||
mozilla::ipc::IPCResult RecvCreateWindow(
|
||||
PBrowserParent* aThisTabParent, PBrowserParent* aNewTab,
|
||||
const uint32_t& aChromeFlags, const bool& aCalledFromJS,
|
||||
const bool& aPositionSpecified, const bool& aSizeSpecified,
|
||||
const OptionalURIParams& aURIToLoad, const nsCString& aFeatures,
|
||||
const nsCString& aBaseURI, const float& aFullZoom,
|
||||
const IPC::Principal& aTriggeringPrincipal,
|
||||
const uint32_t& aReferrerPolicy,
|
||||
CreateWindowResolver&& aResolve) override;
|
||||
const uint32_t& aReferrerPolicy, CreateWindowResolver&& aResolve);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCreateWindowInDifferentProcess(
|
||||
mozilla::ipc::IPCResult RecvCreateWindowInDifferentProcess(
|
||||
PBrowserParent* aThisTab, const uint32_t& aChromeFlags,
|
||||
const bool& aCalledFromJS, const bool& aPositionSpecified,
|
||||
const bool& aSizeSpecified, const OptionalURIParams& aURIToLoad,
|
||||
const nsCString& aFeatures, const nsCString& aBaseURI,
|
||||
const float& aFullZoom, const nsString& aName,
|
||||
const IPC::Principal& aTriggeringPrincipal,
|
||||
const uint32_t& aReferrerPolicy) override;
|
||||
const uint32_t& aReferrerPolicy);
|
||||
|
||||
static void BroadcastBlobURLRegistration(
|
||||
const nsACString& aURI, BlobImpl* aBlobImpl, nsIPrincipal* aPrincipal,
|
||||
@ -537,19 +534,16 @@ class ContentParent final : public PContentParent,
|
||||
static void BroadcastBlobURLUnregistration(
|
||||
const nsACString& aURI, ContentParent* aIgnoreThisCP = nullptr);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvStoreAndBroadcastBlobURLRegistration(
|
||||
const nsCString& aURI, const IPCBlob& aBlob,
|
||||
const Principal& aPrincipal) override;
|
||||
mozilla::ipc::IPCResult RecvStoreAndBroadcastBlobURLRegistration(
|
||||
const nsCString& aURI, const IPCBlob& aBlob, const Principal& aPrincipal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUnstoreAndBroadcastBlobURLUnregistration(
|
||||
const nsCString& aURI) override;
|
||||
mozilla::ipc::IPCResult RecvUnstoreAndBroadcastBlobURLUnregistration(
|
||||
const nsCString& aURI);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetA11yContentId(
|
||||
uint32_t* aContentId) override;
|
||||
mozilla::ipc::IPCResult RecvGetA11yContentId(uint32_t* aContentId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvA11yHandlerControl(
|
||||
const uint32_t& aPid,
|
||||
const IHandlerControlHolder& aHandlerControl) override;
|
||||
mozilla::ipc::IPCResult RecvA11yHandlerControl(
|
||||
const uint32_t& aPid, const IHandlerControlHolder& aHandlerControl);
|
||||
|
||||
virtual int32_t Pid() const override;
|
||||
|
||||
@ -615,30 +609,28 @@ class ContentParent final : public PContentParent,
|
||||
|
||||
static bool IsInputEventQueueSupported();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAttachBrowsingContext(
|
||||
mozilla::ipc::IPCResult RecvAttachBrowsingContext(
|
||||
const BrowsingContextId& aParentContextId,
|
||||
const BrowsingContextId& aOpenerId, const BrowsingContextId& aContextId,
|
||||
const nsString& aName) override;
|
||||
const nsString& aName);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDetachBrowsingContext(
|
||||
const BrowsingContextId& aContextId, const bool& aMoveToBFCache) override;
|
||||
mozilla::ipc::IPCResult RecvDetachBrowsingContext(
|
||||
const BrowsingContextId& aContextId, const bool& aMoveToBFCache);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetOpenerBrowsingContext(
|
||||
mozilla::ipc::IPCResult RecvSetOpenerBrowsingContext(
|
||||
const BrowsingContextId& aContextId,
|
||||
const BrowsingContextId& aOpenerContextId) override;
|
||||
const BrowsingContextId& aOpenerContextId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvWindowClose(
|
||||
const BrowsingContextId& aContextId, const bool& aTrustedCaller) override;
|
||||
virtual mozilla::ipc::IPCResult RecvWindowFocus(
|
||||
const BrowsingContextId& aContextId) override;
|
||||
virtual mozilla::ipc::IPCResult RecvWindowBlur(
|
||||
const BrowsingContextId& aContextId) override;
|
||||
virtual mozilla::ipc::IPCResult RecvWindowPostMessage(
|
||||
mozilla::ipc::IPCResult RecvWindowClose(const BrowsingContextId& aContextId,
|
||||
const bool& aTrustedCaller);
|
||||
mozilla::ipc::IPCResult RecvWindowFocus(const BrowsingContextId& aContextId);
|
||||
mozilla::ipc::IPCResult RecvWindowBlur(const BrowsingContextId& aContextId);
|
||||
mozilla::ipc::IPCResult RecvWindowPostMessage(
|
||||
const BrowsingContextId& aContextId, const ClonedMessageData& aMessage,
|
||||
const PostMessageData& aData) override;
|
||||
const PostMessageData& aData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetUserGestureActivation(
|
||||
const BrowsingContextId& aContextId, const bool& aNewValue) override;
|
||||
mozilla::ipc::IPCResult RecvSetUserGestureActivation(
|
||||
const BrowsingContextId& aContextId, const bool& aNewValue);
|
||||
|
||||
protected:
|
||||
void OnChannelConnected(int32_t pid) override;
|
||||
@ -825,15 +817,13 @@ class ContentParent final : public PContentParent,
|
||||
static nsTArray<ContentParent*>& GetOrCreatePool(
|
||||
const nsAString& aContentProcessType);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInitBackground(
|
||||
Endpoint<mozilla::ipc::PBackgroundParent>&& aEndpoint) override;
|
||||
mozilla::ipc::IPCResult RecvInitBackground(
|
||||
Endpoint<mozilla::ipc::PBackgroundParent>&& aEndpoint);
|
||||
|
||||
mozilla::ipc::IPCResult RecvAddMemoryReport(
|
||||
const MemoryReport& aReport) override;
|
||||
mozilla::ipc::IPCResult RecvFinishMemoryReport(
|
||||
const uint32_t& aGeneration) override;
|
||||
mozilla::ipc::IPCResult RecvAddMemoryReport(const MemoryReport& aReport);
|
||||
mozilla::ipc::IPCResult RecvFinishMemoryReport(const uint32_t& aGeneration);
|
||||
mozilla::ipc::IPCResult RecvAddPerformanceMetrics(
|
||||
const nsID& aID, nsTArray<PerformanceInfo>&& aMetrics) override;
|
||||
const nsID& aID, nsTArray<PerformanceInfo>&& aMetrics);
|
||||
|
||||
virtual bool DeallocPJavaScriptParent(
|
||||
mozilla::jsipc::PJavaScriptParent*) override;
|
||||
@ -862,13 +852,13 @@ class ContentParent final : public PContentParent,
|
||||
virtual bool DeallocPIPCBlobInputStreamParent(
|
||||
PIPCBlobInputStreamParent* aActor) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvIsSecureURI(
|
||||
mozilla::ipc::IPCResult RecvIsSecureURI(
|
||||
const uint32_t& aType, const URIParams& aURI, const uint32_t& aFlags,
|
||||
const OriginAttributes& aOriginAttributes, bool* aIsSecureURI) override;
|
||||
const OriginAttributes& aOriginAttributes, bool* aIsSecureURI);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAccumulateMixedContentHSTS(
|
||||
mozilla::ipc::IPCResult RecvAccumulateMixedContentHSTS(
|
||||
const URIParams& aURI, const bool& aActive,
|
||||
const OriginAttributes& aOriginAttributes) override;
|
||||
const OriginAttributes& aOriginAttributes);
|
||||
|
||||
bool DeallocPHalParent(PHalParent*);
|
||||
|
||||
@ -936,110 +926,101 @@ class ContentParent final : public PContentParent,
|
||||
bool DeallocPWebBrowserPersistDocumentParent(
|
||||
PWebBrowserPersistDocumentParent* aActor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetGfxVars(
|
||||
InfallibleTArray<GfxVarUpdate>* aVars) override;
|
||||
mozilla::ipc::IPCResult RecvGetGfxVars(InfallibleTArray<GfxVarUpdate>* aVars);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvReadFontList(
|
||||
InfallibleTArray<FontListEntry>* retValue) override;
|
||||
mozilla::ipc::IPCResult RecvReadFontList(
|
||||
InfallibleTArray<FontListEntry>* retValue);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetClipboard(
|
||||
mozilla::ipc::IPCResult RecvSetClipboard(
|
||||
const IPCDataTransfer& aDataTransfer, const bool& aIsPrivateData,
|
||||
const IPC::Principal& aRequestingPrincipal,
|
||||
const uint32_t& aContentPolicyType,
|
||||
const int32_t& aWhichClipboard) override;
|
||||
const uint32_t& aContentPolicyType, const int32_t& aWhichClipboard);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetClipboard(
|
||||
nsTArray<nsCString>&& aTypes, const int32_t& aWhichClipboard,
|
||||
IPCDataTransfer* aDataTransfer) override;
|
||||
mozilla::ipc::IPCResult RecvGetClipboard(nsTArray<nsCString>&& aTypes,
|
||||
const int32_t& aWhichClipboard,
|
||||
IPCDataTransfer* aDataTransfer);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvEmptyClipboard(
|
||||
const int32_t& aWhichClipboard) override;
|
||||
mozilla::ipc::IPCResult RecvEmptyClipboard(const int32_t& aWhichClipboard);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvClipboardHasType(
|
||||
nsTArray<nsCString>&& aTypes, const int32_t& aWhichClipboard,
|
||||
bool* aHasType) override;
|
||||
mozilla::ipc::IPCResult RecvClipboardHasType(nsTArray<nsCString>&& aTypes,
|
||||
const int32_t& aWhichClipboard,
|
||||
bool* aHasType);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetExternalClipboardFormats(
|
||||
mozilla::ipc::IPCResult RecvGetExternalClipboardFormats(
|
||||
const int32_t& aWhichClipboard, const bool& aPlainTextOnly,
|
||||
nsTArray<nsCString>* aTypes) override;
|
||||
nsTArray<nsCString>* aTypes);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPlaySound(const URIParams& aURI) override;
|
||||
virtual mozilla::ipc::IPCResult RecvBeep() override;
|
||||
virtual mozilla::ipc::IPCResult RecvPlayEventSound(
|
||||
const uint32_t& aEventId) override;
|
||||
mozilla::ipc::IPCResult RecvPlaySound(const URIParams& aURI);
|
||||
mozilla::ipc::IPCResult RecvBeep();
|
||||
mozilla::ipc::IPCResult RecvPlayEventSound(const uint32_t& aEventId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetIconForExtension(
|
||||
mozilla::ipc::IPCResult RecvGetIconForExtension(
|
||||
const nsCString& aFileExt, const uint32_t& aIconSize,
|
||||
InfallibleTArray<uint8_t>* bits) override;
|
||||
InfallibleTArray<uint8_t>* bits);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetShowPasswordSetting(
|
||||
bool* showPassword) override;
|
||||
mozilla::ipc::IPCResult RecvGetShowPasswordSetting(bool* showPassword);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvStartVisitedQuery(
|
||||
const URIParams& uri) override;
|
||||
mozilla::ipc::IPCResult RecvStartVisitedQuery(const URIParams& uri);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetURITitle(
|
||||
const URIParams& uri, const nsString& title) override;
|
||||
mozilla::ipc::IPCResult RecvSetURITitle(const URIParams& uri,
|
||||
const nsString& title);
|
||||
|
||||
bool HasNotificationPermission(const IPC::Principal& aPrincipal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvShowAlert(
|
||||
nsIAlertNotification* aAlert) override;
|
||||
mozilla::ipc::IPCResult RecvShowAlert(nsIAlertNotification* aAlert);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCloseAlert(
|
||||
const nsString& aName, const IPC::Principal& aPrincipal) override;
|
||||
mozilla::ipc::IPCResult RecvCloseAlert(const nsString& aName,
|
||||
const IPC::Principal& aPrincipal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDisableNotifications(
|
||||
const IPC::Principal& aPrincipal) override;
|
||||
mozilla::ipc::IPCResult RecvDisableNotifications(
|
||||
const IPC::Principal& aPrincipal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOpenNotificationSettings(
|
||||
const IPC::Principal& aPrincipal) override;
|
||||
mozilla::ipc::IPCResult RecvOpenNotificationSettings(
|
||||
const IPC::Principal& aPrincipal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotificationEvent(
|
||||
const nsString& aType, const NotificationEventData& aData) override;
|
||||
mozilla::ipc::IPCResult RecvNotificationEvent(
|
||||
const nsString& aType, const NotificationEventData& aData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvLoadURIExternal(
|
||||
const URIParams& uri, PBrowserParent* windowContext) override;
|
||||
virtual mozilla::ipc::IPCResult RecvExtProtocolChannelConnectParent(
|
||||
const uint32_t& registrarId) override;
|
||||
mozilla::ipc::IPCResult RecvLoadURIExternal(const URIParams& uri,
|
||||
PBrowserParent* windowContext);
|
||||
mozilla::ipc::IPCResult RecvExtProtocolChannelConnectParent(
|
||||
const uint32_t& registrarId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSyncMessage(
|
||||
mozilla::ipc::IPCResult RecvSyncMessage(
|
||||
const nsString& aMsg, const ClonedMessageData& aData,
|
||||
InfallibleTArray<CpowEntry>&& aCpows, const IPC::Principal& aPrincipal,
|
||||
nsTArray<StructuredCloneData>* aRetvals) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRpcMessage(
|
||||
mozilla::ipc::IPCResult RecvRpcMessage(
|
||||
const nsString& aMsg, const ClonedMessageData& aData,
|
||||
InfallibleTArray<CpowEntry>&& aCpows, const IPC::Principal& aPrincipal,
|
||||
nsTArray<StructuredCloneData>* aRetvals) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAsyncMessage(
|
||||
mozilla::ipc::IPCResult RecvAsyncMessage(
|
||||
const nsString& aMsg, InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
const ClonedMessageData& aData) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAddGeolocationListener(
|
||||
const IPC::Principal& aPrincipal, const bool& aHighAccuracy) override;
|
||||
virtual mozilla::ipc::IPCResult RecvRemoveGeolocationListener() override;
|
||||
mozilla::ipc::IPCResult RecvAddGeolocationListener(
|
||||
const IPC::Principal& aPrincipal, const bool& aHighAccuracy);
|
||||
mozilla::ipc::IPCResult RecvRemoveGeolocationListener();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetGeolocationHigherAccuracy(
|
||||
const bool& aEnable) override;
|
||||
mozilla::ipc::IPCResult RecvSetGeolocationHigherAccuracy(const bool& aEnable);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvConsoleMessage(
|
||||
const nsString& aMessage) override;
|
||||
mozilla::ipc::IPCResult RecvConsoleMessage(const nsString& aMessage);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvScriptError(
|
||||
mozilla::ipc::IPCResult RecvScriptError(
|
||||
const nsString& aMessage, const nsString& aSourceName,
|
||||
const nsString& aSourceLine, const uint32_t& aLineNumber,
|
||||
const uint32_t& aColNumber, const uint32_t& aFlags,
|
||||
const nsCString& aCategory, const bool& aIsFromPrivateWindow) override;
|
||||
const nsCString& aCategory, const bool& aIsFromPrivateWindow);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvScriptErrorWithStack(
|
||||
mozilla::ipc::IPCResult RecvScriptErrorWithStack(
|
||||
const nsString& aMessage, const nsString& aSourceName,
|
||||
const nsString& aSourceLine, const uint32_t& aLineNumber,
|
||||
const uint32_t& aColNumber, const uint32_t& aFlags,
|
||||
const nsCString& aCategory, const bool& aIsFromPrivateWindow,
|
||||
const ClonedMessageData& aStack) override;
|
||||
const ClonedMessageData& aStack);
|
||||
|
||||
private:
|
||||
mozilla::ipc::IPCResult RecvScriptErrorInternal(
|
||||
@ -1050,58 +1031,56 @@ class ContentParent final : public PContentParent,
|
||||
const ClonedMessageData* aStack = nullptr);
|
||||
|
||||
public:
|
||||
virtual mozilla::ipc::IPCResult RecvPrivateDocShellsExist(
|
||||
const bool& aExist) override;
|
||||
mozilla::ipc::IPCResult RecvPrivateDocShellsExist(const bool& aExist);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvFirstIdle() override;
|
||||
mozilla::ipc::IPCResult RecvFirstIdle();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDeviceReset() override;
|
||||
mozilla::ipc::IPCResult RecvDeviceReset();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvKeywordToURI(
|
||||
const nsCString& aKeyword, nsString* aProviderName,
|
||||
RefPtr<nsIInputStream>* aPostData, OptionalURIParams* aURI) override;
|
||||
mozilla::ipc::IPCResult RecvKeywordToURI(const nsCString& aKeyword,
|
||||
nsString* aProviderName,
|
||||
RefPtr<nsIInputStream>* aPostData,
|
||||
OptionalURIParams* aURI);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyKeywordSearchLoading(
|
||||
const nsString& aProvider, const nsString& aKeyword) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyKeywordSearchLoading(
|
||||
const nsString& aProvider, const nsString& aKeyword);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCopyFavicon(
|
||||
mozilla::ipc::IPCResult RecvCopyFavicon(
|
||||
const URIParams& aOldURI, const URIParams& aNewURI,
|
||||
const IPC::Principal& aLoadingPrincipal,
|
||||
const bool& aInPrivateBrowsing) override;
|
||||
const IPC::Principal& aLoadingPrincipal, const bool& aInPrivateBrowsing);
|
||||
|
||||
virtual void ProcessingError(Result aCode, const char* aMsgName) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGraphicsError(
|
||||
const nsCString& aError) override;
|
||||
mozilla::ipc::IPCResult RecvGraphicsError(const nsCString& aError);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvBeginDriverCrashGuard(
|
||||
const uint32_t& aGuardType, bool* aOutCrashed) override;
|
||||
mozilla::ipc::IPCResult RecvBeginDriverCrashGuard(const uint32_t& aGuardType,
|
||||
bool* aOutCrashed);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvEndDriverCrashGuard(
|
||||
const uint32_t& aGuardType) override;
|
||||
mozilla::ipc::IPCResult RecvEndDriverCrashGuard(const uint32_t& aGuardType);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAddIdleObserver(
|
||||
const uint64_t& observerId, const uint32_t& aIdleTimeInS) override;
|
||||
mozilla::ipc::IPCResult RecvAddIdleObserver(const uint64_t& observerId,
|
||||
const uint32_t& aIdleTimeInS);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRemoveIdleObserver(
|
||||
const uint64_t& observerId, const uint32_t& aIdleTimeInS) override;
|
||||
mozilla::ipc::IPCResult RecvRemoveIdleObserver(const uint64_t& observerId,
|
||||
const uint32_t& aIdleTimeInS);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvBackUpXResources(
|
||||
const FileDescriptor& aXSocketFd) override;
|
||||
mozilla::ipc::IPCResult RecvBackUpXResources(
|
||||
const FileDescriptor& aXSocketFd);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRequestAnonymousTemporaryFile(
|
||||
const uint64_t& aID) override;
|
||||
mozilla::ipc::IPCResult RecvRequestAnonymousTemporaryFile(
|
||||
const uint64_t& aID);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCreateAudioIPCConnection(
|
||||
CreateAudioIPCConnectionResolver&& aResolver) override;
|
||||
mozilla::ipc::IPCResult RecvCreateAudioIPCConnection(
|
||||
CreateAudioIPCConnectionResolver&& aResolver);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvKeygenProcessValue(
|
||||
const nsString& oldValue, const nsString& challenge,
|
||||
const nsString& keytype, const nsString& keyparams,
|
||||
nsString* newValue) override;
|
||||
mozilla::ipc::IPCResult RecvKeygenProcessValue(const nsString& oldValue,
|
||||
const nsString& challenge,
|
||||
const nsString& keytype,
|
||||
const nsString& keyparams,
|
||||
nsString* newValue);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvKeygenProvideContent(
|
||||
nsString* aAttribute, nsTArray<nsString>* aContent) override;
|
||||
mozilla::ipc::IPCResult RecvKeygenProvideContent(
|
||||
nsString* aAttribute, nsTArray<nsString>* aContent);
|
||||
|
||||
virtual PFileDescriptorSetParent* AllocPFileDescriptorSetParent(
|
||||
const mozilla::ipc::FileDescriptor&) override;
|
||||
@ -1112,76 +1091,73 @@ class ContentParent final : public PContentParent,
|
||||
PWebrtcGlobalParent* AllocPWebrtcGlobalParent();
|
||||
bool DeallocPWebrtcGlobalParent(PWebrtcGlobalParent* aActor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateDropEffect(
|
||||
const uint32_t& aDragAction, const uint32_t& aDropEffect) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateDropEffect(const uint32_t& aDragAction,
|
||||
const uint32_t& aDropEffect);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvShutdownProfile(
|
||||
const nsCString& aProfile) override;
|
||||
mozilla::ipc::IPCResult RecvShutdownProfile(const nsCString& aProfile);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetGraphicsDeviceInitData(
|
||||
ContentDeviceData* aOut) override;
|
||||
mozilla::ipc::IPCResult RecvGetGraphicsDeviceInitData(
|
||||
ContentDeviceData* aOut);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetAndroidSystemInfo(
|
||||
AndroidSystemInfo* aInfo) override;
|
||||
mozilla::ipc::IPCResult RecvGetAndroidSystemInfo(AndroidSystemInfo* aInfo);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyBenchmarkResult(
|
||||
const nsString& aCodecName, const uint32_t& aDecodeFPS) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyBenchmarkResult(const nsString& aCodecName,
|
||||
const uint32_t& aDecodeFPS);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyPushObservers(
|
||||
mozilla::ipc::IPCResult RecvNotifyPushObservers(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal,
|
||||
const nsString& aMessageId) override;
|
||||
const nsString& aMessageId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyPushObserversWithData(
|
||||
mozilla::ipc::IPCResult RecvNotifyPushObserversWithData(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal,
|
||||
const nsString& aMessageId, InfallibleTArray<uint8_t>&& aData) override;
|
||||
const nsString& aMessageId, InfallibleTArray<uint8_t>&& aData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyPushSubscriptionChangeObservers(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyPushSubscriptionChangeObservers(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPushError(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal,
|
||||
const nsString& aMessage, const uint32_t& aFlags) override;
|
||||
mozilla::ipc::IPCResult RecvPushError(const nsCString& aScope,
|
||||
const IPC::Principal& aPrincipal,
|
||||
const nsString& aMessage,
|
||||
const uint32_t& aFlags);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyPushSubscriptionModifiedObservers(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyPushSubscriptionModifiedObservers(
|
||||
const nsCString& aScope, const IPC::Principal& aPrincipal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetFilesRequest(
|
||||
const nsID& aID, const nsString& aDirectoryPath,
|
||||
const bool& aRecursiveFlag) override;
|
||||
mozilla::ipc::IPCResult RecvGetFilesRequest(const nsID& aID,
|
||||
const nsString& aDirectoryPath,
|
||||
const bool& aRecursiveFlag);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDeleteGetFilesRequest(
|
||||
const nsID& aID) override;
|
||||
mozilla::ipc::IPCResult RecvDeleteGetFilesRequest(const nsID& aID);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvFileCreationRequest(
|
||||
mozilla::ipc::IPCResult RecvFileCreationRequest(
|
||||
const nsID& aID, const nsString& aFullPath, const nsString& aType,
|
||||
const nsString& aName, const bool& aLastModifiedPassed,
|
||||
const int64_t& aLastModified, const bool& aExistenceCheck,
|
||||
const bool& aIsFromNsIFile) override;
|
||||
const bool& aIsFromNsIFile);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAccumulateChildHistograms(
|
||||
InfallibleTArray<HistogramAccumulation>&& aAccumulations) override;
|
||||
virtual mozilla::ipc::IPCResult RecvAccumulateChildKeyedHistograms(
|
||||
InfallibleTArray<KeyedHistogramAccumulation>&& aAccumulations) override;
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateChildScalars(
|
||||
InfallibleTArray<ScalarAction>&& aScalarActions) override;
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateChildKeyedScalars(
|
||||
InfallibleTArray<KeyedScalarAction>&& aScalarActions) override;
|
||||
virtual mozilla::ipc::IPCResult RecvRecordChildEvents(
|
||||
nsTArray<ChildEventData>&& events) override;
|
||||
virtual mozilla::ipc::IPCResult RecvRecordDiscardedData(
|
||||
const DiscardedData& aDiscardedData) override;
|
||||
mozilla::ipc::IPCResult RecvAccumulateChildHistograms(
|
||||
InfallibleTArray<HistogramAccumulation>&& aAccumulations);
|
||||
mozilla::ipc::IPCResult RecvAccumulateChildKeyedHistograms(
|
||||
InfallibleTArray<KeyedHistogramAccumulation>&& aAccumulations);
|
||||
mozilla::ipc::IPCResult RecvUpdateChildScalars(
|
||||
InfallibleTArray<ScalarAction>&& aScalarActions);
|
||||
mozilla::ipc::IPCResult RecvUpdateChildKeyedScalars(
|
||||
InfallibleTArray<KeyedScalarAction>&& aScalarActions);
|
||||
mozilla::ipc::IPCResult RecvRecordChildEvents(
|
||||
nsTArray<ChildEventData>&& events);
|
||||
mozilla::ipc::IPCResult RecvRecordDiscardedData(
|
||||
const DiscardedData& aDiscardedData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvBHRThreadHang(
|
||||
const HangDetails& aHangDetails) override;
|
||||
mozilla::ipc::IPCResult RecvBHRThreadHang(const HangDetails& aHangDetails);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvFirstPartyStorageAccessGrantedForOrigin(
|
||||
mozilla::ipc::IPCResult RecvFirstPartyStorageAccessGrantedForOrigin(
|
||||
const Principal& aParentPrincipal, const Principal& aTrackingPrincipal,
|
||||
const nsCString& aTrackingOrigin, const nsCString& aGrantedOrigin,
|
||||
const int& aAllowMode,
|
||||
FirstPartyStorageAccessGrantedForOriginResolver&& aResolver) override;
|
||||
FirstPartyStorageAccessGrantedForOriginResolver&& aResolver);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvStoreUserInteractionAsPermission(
|
||||
const Principal& aPrincipal) override;
|
||||
mozilla::ipc::IPCResult RecvStoreUserInteractionAsPermission(
|
||||
const Principal& aPrincipal);
|
||||
|
||||
// Notify the ContentChild to enable the input event prioritization when
|
||||
// initializing.
|
||||
|
@ -37,15 +37,16 @@ class FilePickerParent : public PFilePickerParent {
|
||||
|
||||
void SendFilesOrDirectories(const nsTArray<BlobImplOrString>& aData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOpen(
|
||||
const int16_t& aSelectedType, const bool& aAddToRecentDocs,
|
||||
const nsString& aDefaultFile, const nsString& aDefaultExtension,
|
||||
InfallibleTArray<nsString>&& aFilters,
|
||||
InfallibleTArray<nsString>&& aFilterNames,
|
||||
InfallibleTArray<nsString>&& aRawFilters,
|
||||
const nsString& aDisplayDirectory,
|
||||
const nsString& aDisplaySpecialDirectory,
|
||||
const nsString& aOkButtonLabel) override;
|
||||
mozilla::ipc::IPCResult RecvOpen(const int16_t& aSelectedType,
|
||||
const bool& aAddToRecentDocs,
|
||||
const nsString& aDefaultFile,
|
||||
const nsString& aDefaultExtension,
|
||||
InfallibleTArray<nsString>&& aFilters,
|
||||
InfallibleTArray<nsString>&& aFilterNames,
|
||||
InfallibleTArray<nsString>&& aRawFilters,
|
||||
const nsString& aDisplayDirectory,
|
||||
const nsString& aDisplaySpecialDirectory,
|
||||
const nsString& aOkButtonLabel);
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -136,163 +136,156 @@ class TabParent final : public PBrowserParent,
|
||||
|
||||
void AddWindowListeners();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvMoveFocus(
|
||||
const bool& aForward, const bool& aForDocumentNavigation) override;
|
||||
mozilla::ipc::IPCResult RecvMoveFocus(const bool& aForward,
|
||||
const bool& aForDocumentNavigation);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSizeShellTo(
|
||||
const uint32_t& aFlags, const int32_t& aWidth, const int32_t& aHeight,
|
||||
const int32_t& aShellItemWidth, const int32_t& aShellItemHeight) override;
|
||||
mozilla::ipc::IPCResult RecvSizeShellTo(const uint32_t& aFlags,
|
||||
const int32_t& aWidth,
|
||||
const int32_t& aHeight,
|
||||
const int32_t& aShellItemWidth,
|
||||
const int32_t& aShellItemHeight);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDropLinks(
|
||||
nsTArray<nsString>&& aLinks) override;
|
||||
mozilla::ipc::IPCResult RecvDropLinks(nsTArray<nsString>&& aLinks);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvEvent(
|
||||
const RemoteDOMEvent& aEvent) override;
|
||||
mozilla::ipc::IPCResult RecvEvent(const RemoteDOMEvent& aEvent);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvReplyKeyEvent(
|
||||
const WidgetKeyboardEvent& aEvent) override;
|
||||
mozilla::ipc::IPCResult RecvReplyKeyEvent(const WidgetKeyboardEvent& aEvent);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAccessKeyNotHandled(
|
||||
const WidgetKeyboardEvent& aEvent) override;
|
||||
mozilla::ipc::IPCResult RecvAccessKeyNotHandled(
|
||||
const WidgetKeyboardEvent& aEvent);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetHasBeforeUnload(
|
||||
const bool& aHasBeforeUnload) override;
|
||||
mozilla::ipc::IPCResult RecvSetHasBeforeUnload(const bool& aHasBeforeUnload);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRegisterProtocolHandler(
|
||||
const nsString& aScheme, nsIURI* aHandlerURI, const nsString& aTitle,
|
||||
nsIURI* aDocURI) override;
|
||||
mozilla::ipc::IPCResult RecvRegisterProtocolHandler(const nsString& aScheme,
|
||||
nsIURI* aHandlerURI,
|
||||
const nsString& aTitle,
|
||||
nsIURI* aDocURI);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOnContentBlockingEvent(
|
||||
mozilla::ipc::IPCResult RecvOnContentBlockingEvent(
|
||||
const OptionalWebProgressData& aWebProgressData,
|
||||
const RequestData& aRequestData, const uint32_t& aEvent) override;
|
||||
const RequestData& aRequestData, const uint32_t& aEvent);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvBrowserFrameOpenWindow(
|
||||
mozilla::ipc::IPCResult RecvBrowserFrameOpenWindow(
|
||||
PBrowserParent* aOpener, const nsString& aURL, const nsString& aName,
|
||||
const nsString& aFeatures,
|
||||
BrowserFrameOpenWindowResolver&& aResolve) override;
|
||||
const nsString& aFeatures, BrowserFrameOpenWindowResolver&& aResolve);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSyncMessage(
|
||||
mozilla::ipc::IPCResult RecvSyncMessage(
|
||||
const nsString& aMessage, const ClonedMessageData& aData,
|
||||
InfallibleTArray<CpowEntry>&& aCpows, const IPC::Principal& aPrincipal,
|
||||
nsTArray<ipc::StructuredCloneData>* aRetVal) override;
|
||||
nsTArray<ipc::StructuredCloneData>* aRetVal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRpcMessage(
|
||||
mozilla::ipc::IPCResult RecvRpcMessage(
|
||||
const nsString& aMessage, const ClonedMessageData& aData,
|
||||
InfallibleTArray<CpowEntry>&& aCpows, const IPC::Principal& aPrincipal,
|
||||
nsTArray<ipc::StructuredCloneData>* aRetVal) override;
|
||||
nsTArray<ipc::StructuredCloneData>* aRetVal);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAsyncMessage(
|
||||
const nsString& aMessage, InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
const ClonedMessageData& aData) override;
|
||||
mozilla::ipc::IPCResult RecvAsyncMessage(const nsString& aMessage,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
const ClonedMessageData& aData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyIMEFocus(
|
||||
mozilla::ipc::IPCResult RecvNotifyIMEFocus(
|
||||
const ContentCache& aContentCache,
|
||||
const widget::IMENotification& aEventMessage,
|
||||
NotifyIMEFocusResolver&& aResolve) override;
|
||||
NotifyIMEFocusResolver&& aResolve);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyIMETextChange(
|
||||
mozilla::ipc::IPCResult RecvNotifyIMETextChange(
|
||||
const ContentCache& aContentCache,
|
||||
const widget::IMENotification& aEventMessage) override;
|
||||
const widget::IMENotification& aEventMessage);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyIMECompositionUpdate(
|
||||
mozilla::ipc::IPCResult RecvNotifyIMECompositionUpdate(
|
||||
const ContentCache& aContentCache,
|
||||
const widget::IMENotification& aEventMessage) override;
|
||||
const widget::IMENotification& aEventMessage);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyIMESelection(
|
||||
mozilla::ipc::IPCResult RecvNotifyIMESelection(
|
||||
const ContentCache& aContentCache,
|
||||
const widget::IMENotification& aEventMessage) override;
|
||||
const widget::IMENotification& aEventMessage);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateContentCache(
|
||||
const ContentCache& aContentCache) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateContentCache(
|
||||
const ContentCache& aContentCache);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyIMEMouseButtonEvent(
|
||||
const widget::IMENotification& aEventMessage,
|
||||
bool* aConsumedByIME) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyIMEMouseButtonEvent(
|
||||
const widget::IMENotification& aEventMessage, bool* aConsumedByIME);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyIMEPositionChange(
|
||||
mozilla::ipc::IPCResult RecvNotifyIMEPositionChange(
|
||||
const ContentCache& aContentCache,
|
||||
const widget::IMENotification& aEventMessage) override;
|
||||
const widget::IMENotification& aEventMessage);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOnEventNeedingAckHandled(
|
||||
const EventMessage& aMessage) override;
|
||||
mozilla::ipc::IPCResult RecvOnEventNeedingAckHandled(
|
||||
const EventMessage& aMessage);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRequestIMEToCommitComposition(
|
||||
const bool& aCancel, bool* aIsCommitted,
|
||||
nsString* aCommittedString) override;
|
||||
mozilla::ipc::IPCResult RecvRequestIMEToCommitComposition(
|
||||
const bool& aCancel, bool* aIsCommitted, nsString* aCommittedString);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvStartPluginIME(
|
||||
mozilla::ipc::IPCResult RecvStartPluginIME(
|
||||
const WidgetKeyboardEvent& aKeyboardEvent, const int32_t& aPanelX,
|
||||
const int32_t& aPanelY, nsString* aCommitted) override;
|
||||
const int32_t& aPanelY, nsString* aCommitted);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetPluginFocused(
|
||||
const bool& aFocused) override;
|
||||
mozilla::ipc::IPCResult RecvSetPluginFocused(const bool& aFocused);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetCandidateWindowForPlugin(
|
||||
const widget::CandidateWindowPosition& aPosition) override;
|
||||
virtual mozilla::ipc::IPCResult RecvEnableIMEForPlugin(
|
||||
const bool& aEnable) override;
|
||||
mozilla::ipc::IPCResult RecvSetCandidateWindowForPlugin(
|
||||
const widget::CandidateWindowPosition& aPosition);
|
||||
mozilla::ipc::IPCResult RecvEnableIMEForPlugin(const bool& aEnable);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDefaultProcOfPluginEvent(
|
||||
const WidgetPluginEvent& aEvent) override;
|
||||
mozilla::ipc::IPCResult RecvDefaultProcOfPluginEvent(
|
||||
const WidgetPluginEvent& aEvent);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvGetInputContext(
|
||||
widget::IMEState* aIMEState) override;
|
||||
mozilla::ipc::IPCResult RecvGetInputContext(widget::IMEState* aIMEState);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetInputContext(
|
||||
mozilla::ipc::IPCResult RecvSetInputContext(
|
||||
const widget::InputContext& aContext,
|
||||
const widget::InputContextAction& aAction) override;
|
||||
const widget::InputContextAction& aAction);
|
||||
|
||||
// See nsIKeyEventInPluginCallback
|
||||
virtual void HandledWindowedPluginKeyEvent(
|
||||
const NativeEventData& aKeyEventData, bool aIsConsumed) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOnWindowedPluginKeyEvent(
|
||||
const NativeEventData& aKeyEventData) override;
|
||||
mozilla::ipc::IPCResult RecvOnWindowedPluginKeyEvent(
|
||||
const NativeEventData& aKeyEventData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRequestFocus(
|
||||
const bool& aCanRaise) override;
|
||||
mozilla::ipc::IPCResult RecvRequestFocus(const bool& aCanRaise);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvLookUpDictionary(
|
||||
mozilla::ipc::IPCResult RecvLookUpDictionary(
|
||||
const nsString& aText, nsTArray<mozilla::FontRange>&& aFontRangeArray,
|
||||
const bool& aIsVertical, const LayoutDeviceIntPoint& aPoint) override;
|
||||
const bool& aIsVertical, const LayoutDeviceIntPoint& aPoint);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvEnableDisableCommands(
|
||||
mozilla::ipc::IPCResult RecvEnableDisableCommands(
|
||||
const nsString& aAction, nsTArray<nsCString>&& aEnabledCommands,
|
||||
nsTArray<nsCString>&& aDisabledCommands) override;
|
||||
nsTArray<nsCString>&& aDisabledCommands);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetCursor(
|
||||
mozilla::ipc::IPCResult RecvSetCursor(
|
||||
const nsCursor& aValue, const bool& aHasCustomCursor,
|
||||
const nsCString& aUri, const uint32_t& aWidth, const uint32_t& aHeight,
|
||||
const uint32_t& aStride, const gfx::SurfaceFormat& aFormat,
|
||||
const uint32_t& aHotspotX, const uint32_t& aHotspotY,
|
||||
const bool& aForce) override;
|
||||
const bool& aForce);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetStatus(
|
||||
const uint32_t& aType, const nsString& aStatus) override;
|
||||
mozilla::ipc::IPCResult RecvSetStatus(
|
||||
const uint32_t& aType, const nsString& aStatus);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvShowTooltip(
|
||||
const uint32_t& aX, const uint32_t& aY, const nsString& aTooltip,
|
||||
const nsString& aDirection) override;
|
||||
mozilla::ipc::IPCResult RecvShowTooltip(const uint32_t& aX,
|
||||
const uint32_t& aY,
|
||||
const nsString& aTooltip,
|
||||
const nsString& aDirection);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvHideTooltip() override;
|
||||
mozilla::ipc::IPCResult RecvHideTooltip();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetNativeChildOfShareableWindow(
|
||||
const uintptr_t& childWindow) override;
|
||||
mozilla::ipc::IPCResult RecvSetNativeChildOfShareableWindow(
|
||||
const uintptr_t& childWindow);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDispatchFocusToTopLevelWindow() override;
|
||||
mozilla::ipc::IPCResult RecvDispatchFocusToTopLevelWindow();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRespondStartSwipeEvent(
|
||||
const uint64_t& aInputBlockId, const bool& aStartSwipe) override;
|
||||
mozilla::ipc::IPCResult RecvRespondStartSwipeEvent(
|
||||
const uint64_t& aInputBlockId, const bool& aStartSwipe);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDispatchWheelEvent(
|
||||
const mozilla::WidgetWheelEvent& aEvent) override;
|
||||
mozilla::ipc::IPCResult RecvDispatchWheelEvent(
|
||||
const mozilla::WidgetWheelEvent& aEvent);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDispatchMouseEvent(
|
||||
const mozilla::WidgetMouseEvent& aEvent) override;
|
||||
mozilla::ipc::IPCResult RecvDispatchMouseEvent(
|
||||
const mozilla::WidgetMouseEvent& aEvent);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDispatchKeyboardEvent(
|
||||
const mozilla::WidgetKeyboardEvent& aEvent) override;
|
||||
mozilla::ipc::IPCResult RecvDispatchKeyboardEvent(
|
||||
const mozilla::WidgetKeyboardEvent& aEvent);
|
||||
|
||||
PColorPickerParent* AllocPColorPickerParent(const nsString& aTitle,
|
||||
const nsString& aInitialColor);
|
||||
@ -359,46 +352,43 @@ class TabParent final : public PBrowserParent,
|
||||
|
||||
LayoutDeviceToCSSScale GetLayoutDeviceToCSSScale();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRequestNativeKeyBindings(
|
||||
mozilla::ipc::IPCResult RecvRequestNativeKeyBindings(
|
||||
const uint32_t& aType, const mozilla::WidgetKeyboardEvent& aEvent,
|
||||
nsTArray<mozilla::CommandInt>* aCommands) override;
|
||||
nsTArray<mozilla::CommandInt>* aCommands);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSynthesizeNativeKeyEvent(
|
||||
mozilla::ipc::IPCResult RecvSynthesizeNativeKeyEvent(
|
||||
const int32_t& aNativeKeyboardLayout, const int32_t& aNativeKeyCode,
|
||||
const uint32_t& aModifierFlags, const nsString& aCharacters,
|
||||
const nsString& aUnmodifiedCharacters,
|
||||
const uint64_t& aObserverId) override;
|
||||
const nsString& aUnmodifiedCharacters, const uint64_t& aObserverId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSynthesizeNativeMouseEvent(
|
||||
mozilla::ipc::IPCResult RecvSynthesizeNativeMouseEvent(
|
||||
const LayoutDeviceIntPoint& aPoint, const uint32_t& aNativeMessage,
|
||||
const uint32_t& aModifierFlags, const uint64_t& aObserverId) override;
|
||||
const uint32_t& aModifierFlags, const uint64_t& aObserverId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSynthesizeNativeMouseMove(
|
||||
const LayoutDeviceIntPoint& aPoint, const uint64_t& aObserverId) override;
|
||||
mozilla::ipc::IPCResult RecvSynthesizeNativeMouseMove(
|
||||
const LayoutDeviceIntPoint& aPoint, const uint64_t& aObserverId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSynthesizeNativeMouseScrollEvent(
|
||||
mozilla::ipc::IPCResult RecvSynthesizeNativeMouseScrollEvent(
|
||||
const LayoutDeviceIntPoint& aPoint, const uint32_t& aNativeMessage,
|
||||
const double& aDeltaX, const double& aDeltaY, const double& aDeltaZ,
|
||||
const uint32_t& aModifierFlags, const uint32_t& aAdditionalFlags,
|
||||
const uint64_t& aObserverId) override;
|
||||
const uint64_t& aObserverId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSynthesizeNativeTouchPoint(
|
||||
mozilla::ipc::IPCResult RecvSynthesizeNativeTouchPoint(
|
||||
const uint32_t& aPointerId, const TouchPointerState& aPointerState,
|
||||
const LayoutDeviceIntPoint& aPoint, const double& aPointerPressure,
|
||||
const uint32_t& aPointerOrientation,
|
||||
const uint64_t& aObserverId) override;
|
||||
const uint32_t& aPointerOrientation, const uint64_t& aObserverId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSynthesizeNativeTouchTap(
|
||||
mozilla::ipc::IPCResult RecvSynthesizeNativeTouchTap(
|
||||
const LayoutDeviceIntPoint& aPoint, const bool& aLongTap,
|
||||
const uint64_t& aObserverId) override;
|
||||
const uint64_t& aObserverId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvClearNativeTouchSequence(
|
||||
const uint64_t& aObserverId) override;
|
||||
mozilla::ipc::IPCResult RecvClearNativeTouchSequence(
|
||||
const uint64_t& aObserverId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetPrefersReducedMotionOverrideForTest(
|
||||
const bool& aValue) override;
|
||||
virtual mozilla::ipc::IPCResult RecvResetPrefersReducedMotionOverrideForTest()
|
||||
override;
|
||||
mozilla::ipc::IPCResult RecvSetPrefersReducedMotionOverrideForTest(
|
||||
const bool& aValue);
|
||||
mozilla::ipc::IPCResult RecvResetPrefersReducedMotionOverrideForTest();
|
||||
|
||||
void SendMouseEvent(const nsAString& aType, float aX, float aY,
|
||||
int32_t aButton, int32_t aClickCount, int32_t aModifiers,
|
||||
@ -529,11 +519,11 @@ class TabParent final : public PBrowserParent,
|
||||
void RequestSubPaint(gfx::CrossProcessPaint* aPaint, float aScale,
|
||||
nscolor aBackgroundColor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInvokeDragSession(
|
||||
mozilla::ipc::IPCResult RecvInvokeDragSession(
|
||||
nsTArray<IPCDataTransfer>&& aTransfers, const uint32_t& aAction,
|
||||
const OptionalShmem& aVisualDnDData, const uint32_t& aStride,
|
||||
const gfx::SurfaceFormat& aFormat, const LayoutDeviceIntRect& aDragRect,
|
||||
const IPC::Principal& aPrincipal) override;
|
||||
const IPC::Principal& aPrincipal);
|
||||
|
||||
void AddInitialDnDDataTo(DataTransfer* aDataTransfer,
|
||||
nsIPrincipal** aPrincipal);
|
||||
@ -544,7 +534,7 @@ class TabParent final : public PBrowserParent,
|
||||
layout::RenderFrame* GetRenderFrame();
|
||||
|
||||
mozilla::ipc::IPCResult RecvEnsureLayersConnected(
|
||||
CompositorOptions* aCompositorOptions) override;
|
||||
CompositorOptions* aCompositorOptions);
|
||||
|
||||
// LiveResizeListener implementation
|
||||
void LiveResizeStarted() override;
|
||||
@ -565,9 +555,9 @@ class TabParent final : public PBrowserParent,
|
||||
mozilla::jsipc::CpowHolder* aCpows, nsIPrincipal* aPrincipal,
|
||||
nsTArray<ipc::StructuredCloneData>* aJSONRetVal = nullptr);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAsyncAuthPrompt(
|
||||
const nsCString& aUri, const nsString& aRealm,
|
||||
const uint64_t& aCallbackId) override;
|
||||
mozilla::ipc::IPCResult RecvAsyncAuthPrompt(const nsCString& aUri,
|
||||
const nsString& aRealm,
|
||||
const uint64_t& aCallbackId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult Recv__delete__() override;
|
||||
|
||||
@ -576,36 +566,35 @@ class TabParent final : public PBrowserParent,
|
||||
Element* mFrameElement;
|
||||
nsCOMPtr<nsIBrowserDOMWindow> mBrowserDOMWindow;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRemotePaintIsReady() override;
|
||||
mozilla::ipc::IPCResult RecvRemotePaintIsReady();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyCompositorTransaction() override;
|
||||
mozilla::ipc::IPCResult RecvNotifyCompositorTransaction();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRemoteIsReadyToHandleInputEvents()
|
||||
override;
|
||||
mozilla::ipc::IPCResult RecvRemoteIsReadyToHandleInputEvents();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPaintWhileInterruptingJSNoOp(
|
||||
const LayersObserverEpoch& aEpoch) override;
|
||||
mozilla::ipc::IPCResult RecvPaintWhileInterruptingJSNoOp(
|
||||
const LayersObserverEpoch& aEpoch);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetDimensions(
|
||||
const uint32_t& aFlags, const int32_t& aX, const int32_t& aY,
|
||||
const int32_t& aCx, const int32_t& aCy) override;
|
||||
mozilla::ipc::IPCResult RecvSetDimensions(const uint32_t& aFlags,
|
||||
const int32_t& aX,
|
||||
const int32_t& aY,
|
||||
const int32_t& aCx,
|
||||
const int32_t& aCy);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvShowCanvasPermissionPrompt(
|
||||
const nsCString& aFirstPartyURI, const bool& aHideDoorHanger) override;
|
||||
mozilla::ipc::IPCResult RecvShowCanvasPermissionPrompt(
|
||||
const nsCString& aFirstPartyURI, const bool& aHideDoorHanger);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRootBrowsingContext(
|
||||
const BrowsingContextId& aId) override;
|
||||
mozilla::ipc::IPCResult RecvRootBrowsingContext(const BrowsingContextId& aId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetSystemFont(
|
||||
const nsCString& aFontName) override;
|
||||
mozilla::ipc::IPCResult RecvGetSystemFont(nsCString* aFontName) override;
|
||||
mozilla::ipc::IPCResult RecvSetSystemFont(const nsCString& aFontName);
|
||||
mozilla::ipc::IPCResult RecvGetSystemFont(nsCString* aFontName);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvVisitURI(
|
||||
const URIParams& aURI, const OptionalURIParams& aLastVisitedURI,
|
||||
const uint32_t& aFlags) override;
|
||||
mozilla::ipc::IPCResult RecvVisitURI(const URIParams& aURI,
|
||||
const OptionalURIParams& aLastVisitedURI,
|
||||
const uint32_t& aFlags);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvQueryVisitedState(
|
||||
InfallibleTArray<URIParams>&& aURIs) override;
|
||||
mozilla::ipc::IPCResult RecvQueryVisitedState(
|
||||
InfallibleTArray<URIParams>&& aURIs);
|
||||
|
||||
ContentCacheInParent mContentCache;
|
||||
|
||||
|
@ -99,9 +99,9 @@ class WindowGlobalParent final : public nsISupports,
|
||||
|
||||
protected:
|
||||
// IPC messages
|
||||
mozilla::ipc::IPCResult RecvUpdateDocumentURI(nsIURI* aURI) override;
|
||||
mozilla::ipc::IPCResult RecvBecomeCurrentWindowGlobal() override;
|
||||
mozilla::ipc::IPCResult RecvDestroy() override;
|
||||
mozilla::ipc::IPCResult RecvUpdateDocumentURI(nsIURI* aURI);
|
||||
mozilla::ipc::IPCResult RecvBecomeCurrentWindowGlobal();
|
||||
mozilla::ipc::IPCResult RecvDestroy();
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -90,40 +90,39 @@ class ChromiumCDMParent final : public PChromiumCDMParent,
|
||||
~ChromiumCDMParent() {}
|
||||
|
||||
ipc::IPCResult Recv__delete__() override;
|
||||
ipc::IPCResult RecvOnResolvePromiseWithKeyStatus(
|
||||
const uint32_t& aPromiseId, const uint32_t& aKeyStatus) override;
|
||||
ipc::IPCResult RecvOnResolveNewSessionPromise(
|
||||
const uint32_t& aPromiseId, const nsCString& aSessionId) override;
|
||||
ipc::IPCResult RecvResolveLoadSessionPromise(
|
||||
const uint32_t& aPromiseId, const bool& aSuccessful) override;
|
||||
ipc::IPCResult RecvOnResolvePromise(const uint32_t& aPromiseId) override;
|
||||
ipc::IPCResult RecvOnResolvePromiseWithKeyStatus(const uint32_t& aPromiseId,
|
||||
const uint32_t& aKeyStatus);
|
||||
ipc::IPCResult RecvOnResolveNewSessionPromise(const uint32_t& aPromiseId,
|
||||
const nsCString& aSessionId);
|
||||
ipc::IPCResult RecvResolveLoadSessionPromise(const uint32_t& aPromiseId,
|
||||
const bool& aSuccessful);
|
||||
ipc::IPCResult RecvOnResolvePromise(const uint32_t& aPromiseId);
|
||||
ipc::IPCResult RecvOnRejectPromise(const uint32_t& aPromiseId,
|
||||
const uint32_t& aError,
|
||||
const uint32_t& aSystemCode,
|
||||
const nsCString& aErrorMessage) override;
|
||||
const nsCString& aErrorMessage);
|
||||
ipc::IPCResult RecvOnSessionMessage(const nsCString& aSessionId,
|
||||
const uint32_t& aMessageType,
|
||||
nsTArray<uint8_t>&& aMessage) override;
|
||||
nsTArray<uint8_t>&& aMessage);
|
||||
ipc::IPCResult RecvOnSessionKeysChange(
|
||||
const nsCString& aSessionId,
|
||||
nsTArray<CDMKeyInformation>&& aKeysInfo) override;
|
||||
ipc::IPCResult RecvOnExpirationChange(
|
||||
const nsCString& aSessionId, const double& aSecondsSinceEpoch) override;
|
||||
ipc::IPCResult RecvOnSessionClosed(const nsCString& aSessionId) override;
|
||||
const nsCString& aSessionId, nsTArray<CDMKeyInformation>&& aKeysInfo);
|
||||
ipc::IPCResult RecvOnExpirationChange(const nsCString& aSessionId,
|
||||
const double& aSecondsSinceEpoch);
|
||||
ipc::IPCResult RecvOnSessionClosed(const nsCString& aSessionId);
|
||||
ipc::IPCResult RecvDecrypted(const uint32_t& aId, const uint32_t& aStatus,
|
||||
ipc::Shmem&& aData) override;
|
||||
ipc::Shmem&& aData);
|
||||
ipc::IPCResult RecvDecryptFailed(const uint32_t& aId,
|
||||
const uint32_t& aStatus) override;
|
||||
ipc::IPCResult RecvOnDecoderInitDone(const uint32_t& aStatus) override;
|
||||
const uint32_t& aStatus);
|
||||
ipc::IPCResult RecvOnDecoderInitDone(const uint32_t& aStatus);
|
||||
ipc::IPCResult RecvDecodedShmem(const CDMVideoFrame& aFrame,
|
||||
ipc::Shmem&& aShmem) override;
|
||||
ipc::Shmem&& aShmem);
|
||||
ipc::IPCResult RecvDecodedData(const CDMVideoFrame& aFrame,
|
||||
nsTArray<uint8_t>&& aData) override;
|
||||
ipc::IPCResult RecvDecodeFailed(const uint32_t& aStatus) override;
|
||||
ipc::IPCResult RecvShutdown() override;
|
||||
ipc::IPCResult RecvResetVideoDecoderComplete() override;
|
||||
ipc::IPCResult RecvDrainComplete() override;
|
||||
ipc::IPCResult RecvIncreaseShmemPoolSize() override;
|
||||
nsTArray<uint8_t>&& aData);
|
||||
ipc::IPCResult RecvDecodeFailed(const uint32_t& aStatus);
|
||||
ipc::IPCResult RecvShutdown();
|
||||
ipc::IPCResult RecvResetVideoDecoderComplete();
|
||||
ipc::IPCResult RecvDrainComplete();
|
||||
ipc::IPCResult RecvIncreaseShmemPoolSize();
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
bool SendBufferToCDM(uint32_t aSizeInBytes);
|
||||
|
||||
|
@ -45,11 +45,10 @@ class GMPChild : public PGMPChild {
|
||||
|
||||
bool GetUTF8LibPath(nsACString& aOutLibPath);
|
||||
|
||||
mozilla::ipc::IPCResult RecvProvideStorageId(
|
||||
const nsCString& aStorageId) override;
|
||||
mozilla::ipc::IPCResult RecvProvideStorageId(const nsCString& aStorageId);
|
||||
|
||||
mozilla::ipc::IPCResult AnswerStartPlugin(const nsString& aAdapter) override;
|
||||
mozilla::ipc::IPCResult RecvPreloadLibs(const nsCString& aLibs) override;
|
||||
mozilla::ipc::IPCResult AnswerStartPlugin(const nsString& aAdapter);
|
||||
mozilla::ipc::IPCResult RecvPreloadLibs(const nsCString& aLibs);
|
||||
|
||||
PGMPTimerChild* AllocPGMPTimerChild();
|
||||
bool DeallocPGMPTimerChild(PGMPTimerChild* aActor);
|
||||
@ -59,11 +58,11 @@ class GMPChild : public PGMPChild {
|
||||
|
||||
void GMPContentChildActorDestroy(GMPContentChild* aGMPContentChild);
|
||||
|
||||
mozilla::ipc::IPCResult RecvCrashPluginNow() override;
|
||||
mozilla::ipc::IPCResult RecvCloseActive() override;
|
||||
mozilla::ipc::IPCResult RecvCrashPluginNow();
|
||||
mozilla::ipc::IPCResult RecvCloseActive();
|
||||
|
||||
mozilla::ipc::IPCResult RecvInitGMPContentChild(
|
||||
Endpoint<PGMPContentChild>&& aEndpoint) override;
|
||||
Endpoint<PGMPContentChild>&& aEndpoint);
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
void ProcessingError(Result aCode, const char* aReason) override;
|
||||
|
@ -158,7 +158,7 @@ class GMPParent final : public PGMPParent {
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
mozilla::ipc::IPCResult RecvInitCrashReporter(
|
||||
Shmem&& shmem, const NativeThreadId& aThreadId) override;
|
||||
Shmem&& shmem, const NativeThreadId& aThreadId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvPGMPStorageConstructor(
|
||||
PGMPStorageParent* actor) override;
|
||||
@ -170,7 +170,7 @@ class GMPParent final : public PGMPParent {
|
||||
PGMPTimerParent* AllocPGMPTimerParent();
|
||||
bool DeallocPGMPTimerParent(PGMPTimerParent* aActor);
|
||||
|
||||
mozilla::ipc::IPCResult RecvPGMPContentChildDestroyed() override;
|
||||
mozilla::ipc::IPCResult RecvPGMPContentChildDestroyed();
|
||||
bool IsUsed() {
|
||||
return mGMPContentChildCount > 0 || !mGetContentParentPromises.IsEmpty();
|
||||
}
|
||||
|
@ -75,13 +75,13 @@ class GMPStorageChild : public PGMPStorageChild {
|
||||
|
||||
// PGMPStorageChild
|
||||
mozilla::ipc::IPCResult RecvOpenComplete(const nsCString& aRecordName,
|
||||
const GMPErr& aStatus) override;
|
||||
mozilla::ipc::IPCResult RecvReadComplete(
|
||||
const nsCString& aRecordName, const GMPErr& aStatus,
|
||||
InfallibleTArray<uint8_t>&& aBytes) override;
|
||||
const GMPErr& aStatus);
|
||||
mozilla::ipc::IPCResult RecvReadComplete(const nsCString& aRecordName,
|
||||
const GMPErr& aStatus,
|
||||
InfallibleTArray<uint8_t>&& aBytes);
|
||||
mozilla::ipc::IPCResult RecvWriteComplete(const nsCString& aRecordName,
|
||||
const GMPErr& aStatus) override;
|
||||
mozilla::ipc::IPCResult RecvShutdown() override;
|
||||
const GMPErr& aStatus);
|
||||
mozilla::ipc::IPCResult RecvShutdown();
|
||||
|
||||
private:
|
||||
Monitor mMonitor;
|
||||
|
@ -30,7 +30,7 @@ class GMPTimerChild : public PGMPTimerChild {
|
||||
|
||||
protected:
|
||||
// GMPTimerChild
|
||||
mozilla::ipc::IPCResult RecvTimerExpired(const uint32_t& aTimerId) override;
|
||||
mozilla::ipc::IPCResult RecvTimerExpired(const uint32_t& aTimerId);
|
||||
|
||||
private:
|
||||
~GMPTimerChild();
|
||||
|
@ -28,7 +28,7 @@ class GMPTimerParent : public PGMPTimerParent {
|
||||
|
||||
protected:
|
||||
mozilla::ipc::IPCResult RecvSetTimer(const uint32_t& aTimerId,
|
||||
const uint32_t& aTimeoutMs) override;
|
||||
const uint32_t& aTimeoutMs);
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
private:
|
||||
|
@ -51,16 +51,15 @@ class GMPVideoDecoderChild : public PGMPVideoDecoderChild,
|
||||
// PGMPVideoDecoderChild
|
||||
mozilla::ipc::IPCResult RecvInitDecode(
|
||||
const GMPVideoCodec& aCodecSettings,
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecific,
|
||||
const int32_t& aCoreCount) override;
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecific, const int32_t& aCoreCount);
|
||||
mozilla::ipc::IPCResult RecvDecode(
|
||||
const GMPVideoEncodedFrameData& aInputFrame, const bool& aMissingFrames,
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecificInfo,
|
||||
const int64_t& aRenderTimeMs) override;
|
||||
mozilla::ipc::IPCResult RecvChildShmemForPool(Shmem&& aFrameBuffer) override;
|
||||
mozilla::ipc::IPCResult RecvReset() override;
|
||||
mozilla::ipc::IPCResult RecvDrain() override;
|
||||
mozilla::ipc::IPCResult RecvDecodingComplete() override;
|
||||
const int64_t& aRenderTimeMs);
|
||||
mozilla::ipc::IPCResult RecvChildShmemForPool(Shmem&& aFrameBuffer);
|
||||
mozilla::ipc::IPCResult RecvReset();
|
||||
mozilla::ipc::IPCResult RecvDrain();
|
||||
mozilla::ipc::IPCResult RecvDecodingComplete();
|
||||
|
||||
GMPContentChild* mPlugin;
|
||||
GMPVideoDecoder* mVideoDecoder;
|
||||
|
@ -48,20 +48,18 @@ class GMPVideoEncoderChild : public PGMPVideoEncoderChild,
|
||||
mozilla::ipc::IPCResult RecvInitEncode(
|
||||
const GMPVideoCodec& aCodecSettings,
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecific, const int32_t& aNumberOfCores,
|
||||
const uint32_t& aMaxPayloadSize) override;
|
||||
const uint32_t& aMaxPayloadSize);
|
||||
mozilla::ipc::IPCResult RecvEncode(
|
||||
const GMPVideoi420FrameData& aInputFrame,
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecificInfo,
|
||||
InfallibleTArray<GMPVideoFrameType>&& aFrameTypes) override;
|
||||
mozilla::ipc::IPCResult RecvChildShmemForPool(
|
||||
Shmem&& aEncodedBuffer) override;
|
||||
mozilla::ipc::IPCResult RecvSetChannelParameters(
|
||||
const uint32_t& aPacketLoss, const uint32_t& aRTT) override;
|
||||
InfallibleTArray<GMPVideoFrameType>&& aFrameTypes);
|
||||
mozilla::ipc::IPCResult RecvChildShmemForPool(Shmem&& aEncodedBuffer);
|
||||
mozilla::ipc::IPCResult RecvSetChannelParameters(const uint32_t& aPacketLoss,
|
||||
const uint32_t& aRTT);
|
||||
mozilla::ipc::IPCResult RecvSetRates(const uint32_t& aNewBitRate,
|
||||
const uint32_t& aFrameRate) override;
|
||||
mozilla::ipc::IPCResult RecvSetPeriodicKeyFrames(
|
||||
const bool& aEnable) override;
|
||||
mozilla::ipc::IPCResult RecvEncodingComplete() override;
|
||||
const uint32_t& aFrameRate);
|
||||
mozilla::ipc::IPCResult RecvSetPeriodicKeyFrames(const bool& aEnable);
|
||||
mozilla::ipc::IPCResult RecvEncodingComplete();
|
||||
|
||||
GMPContentChild* mPlugin;
|
||||
GMPVideoEncoder* mVideoEncoder;
|
||||
|
@ -33,16 +33,14 @@ class RDDChild final : public PRDDChild {
|
||||
bool EnsureRDDReady();
|
||||
|
||||
// PRDDChild overrides.
|
||||
mozilla::ipc::IPCResult RecvInitComplete() override;
|
||||
mozilla::ipc::IPCResult RecvInitComplete();
|
||||
mozilla::ipc::IPCResult RecvInitCrashReporter(
|
||||
Shmem&& shmem, const NativeThreadId& aThreadId) override;
|
||||
Shmem&& shmem, const NativeThreadId& aThreadId);
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
mozilla::ipc::IPCResult RecvAddMemoryReport(
|
||||
const MemoryReport& aReport) override;
|
||||
mozilla::ipc::IPCResult RecvFinishMemoryReport(
|
||||
const uint32_t& aGeneration) override;
|
||||
mozilla::ipc::IPCResult RecvAddMemoryReport(const MemoryReport& aReport);
|
||||
mozilla::ipc::IPCResult RecvFinishMemoryReport(const uint32_t& aGeneration);
|
||||
|
||||
bool SendRequestMemoryReport(const uint32_t& aGeneration,
|
||||
const bool& aAnonymize,
|
||||
|
@ -24,15 +24,15 @@ class RDDParent final : public PRDDParent {
|
||||
bool Init(base::ProcessId aParentPid, const char* aParentBuildID,
|
||||
MessageLoop* aIOLoop, IPC::Channel* aChannel);
|
||||
|
||||
mozilla::ipc::IPCResult RecvInit() override;
|
||||
mozilla::ipc::IPCResult RecvInit();
|
||||
mozilla::ipc::IPCResult RecvInitProfiler(
|
||||
Endpoint<PProfilerChild>&& aEndpoint) override;
|
||||
Endpoint<PProfilerChild>&& aEndpoint);
|
||||
|
||||
mozilla::ipc::IPCResult RecvNewContentRemoteDecoderManager(
|
||||
Endpoint<PRemoteDecoderManagerParent>&& aEndpoint) override;
|
||||
Endpoint<PRemoteDecoderManagerParent>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvRequestMemoryReport(
|
||||
const uint32_t& generation, const bool& anonymize,
|
||||
const bool& minimizeMemoryUsage, const MaybeFileDesc& DMDFile) override;
|
||||
const bool& minimizeMemoryUsage, const MaybeFileDesc& DMDFile);
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -42,9 +42,9 @@ class VideoDecoderManagerParent final : public PVideoDecoderManagerParent {
|
||||
bool DeallocPVideoDecoderParent(PVideoDecoderParent* actor);
|
||||
|
||||
mozilla::ipc::IPCResult RecvReadback(const SurfaceDescriptorGPUVideo& aSD,
|
||||
SurfaceDescriptor* aResult) override;
|
||||
SurfaceDescriptor* aResult);
|
||||
mozilla::ipc::IPCResult RecvDeallocateSurfaceDescriptorGPUVideo(
|
||||
const SurfaceDescriptorGPUVideo& aSD) override;
|
||||
const SurfaceDescriptorGPUVideo& aSD);
|
||||
|
||||
void ActorDestroy(mozilla::ipc::IProtocol::ActorDestroyReason) override;
|
||||
|
||||
|
@ -48,7 +48,7 @@ class MediaSystemResourceManagerChild final
|
||||
|
||||
protected:
|
||||
mozilla::ipc::IPCResult RecvResponse(const uint32_t& aId,
|
||||
const bool& aSuccess) override;
|
||||
const bool& aSuccess);
|
||||
|
||||
private:
|
||||
void ActorDestroy(ActorDestroyReason aActorDestroyReason) override;
|
||||
|
@ -28,11 +28,11 @@ class MediaSystemResourceManagerParent final
|
||||
protected:
|
||||
mozilla::ipc::IPCResult RecvAcquire(
|
||||
const uint32_t& aId, const MediaSystemResourceType& aResourceType,
|
||||
const bool& aWillWait) override;
|
||||
const bool& aWillWait);
|
||||
|
||||
mozilla::ipc::IPCResult RecvRelease(const uint32_t& aId) override;
|
||||
mozilla::ipc::IPCResult RecvRelease(const uint32_t& aId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvRemoveResourceManager() override;
|
||||
mozilla::ipc::IPCResult RecvRemoveResourceManager();
|
||||
|
||||
private:
|
||||
void ActorDestroy(ActorDestroyReason aActorDestroyReason) override;
|
||||
|
@ -24,19 +24,18 @@ class SpeechSynthesisChild : public PSpeechSynthesisChild {
|
||||
public:
|
||||
mozilla::ipc::IPCResult RecvInitialVoicesAndState(
|
||||
nsTArray<RemoteVoice>&& aVoices, nsTArray<nsString>&& aDefaults,
|
||||
const bool& aIsSpeaking) override;
|
||||
const bool& aIsSpeaking);
|
||||
|
||||
mozilla::ipc::IPCResult RecvVoiceAdded(const RemoteVoice& aVoice) override;
|
||||
mozilla::ipc::IPCResult RecvVoiceAdded(const RemoteVoice& aVoice);
|
||||
|
||||
mozilla::ipc::IPCResult RecvVoiceRemoved(const nsString& aUri) override;
|
||||
mozilla::ipc::IPCResult RecvVoiceRemoved(const nsString& aUri);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetDefaultVoice(const nsString& aUri,
|
||||
const bool& aIsDefault) override;
|
||||
const bool& aIsDefault);
|
||||
|
||||
mozilla::ipc::IPCResult RecvIsSpeakingChanged(
|
||||
const bool& aIsSpeaking) override;
|
||||
mozilla::ipc::IPCResult RecvIsSpeakingChanged(const bool& aIsSpeaking);
|
||||
|
||||
mozilla::ipc::IPCResult RecvNotifyVoicesChanged() override;
|
||||
mozilla::ipc::IPCResult RecvNotifyVoicesChanged();
|
||||
|
||||
protected:
|
||||
SpeechSynthesisChild();
|
||||
|
@ -29,13 +29,13 @@ class MessagePortChild final : public PMessagePortChild {
|
||||
private:
|
||||
~MessagePortChild() { MOZ_ASSERT(!mPort); }
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvEntangled(
|
||||
nsTArray<ClonedMessageData>&& aMessages) override;
|
||||
mozilla::ipc::IPCResult RecvEntangled(
|
||||
nsTArray<ClonedMessageData>&& aMessages);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvReceiveData(
|
||||
nsTArray<ClonedMessageData>&& aMessages) override;
|
||||
mozilla::ipc::IPCResult RecvReceiveData(
|
||||
nsTArray<ClonedMessageData>&& aMessages);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvStopSendingDataConfirmed() override;
|
||||
mozilla::ipc::IPCResult RecvStopSendingDataConfirmed();
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -36,15 +36,15 @@ class MessagePortParent final : public PMessagePortParent {
|
||||
const uint32_t& aSequenceID);
|
||||
|
||||
private:
|
||||
virtual mozilla::ipc::IPCResult RecvPostMessages(
|
||||
nsTArray<ClonedMessageData>&& aMessages) override;
|
||||
mozilla::ipc::IPCResult RecvPostMessages(
|
||||
nsTArray<ClonedMessageData>&& aMessages);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDisentangle(
|
||||
nsTArray<ClonedMessageData>&& aMessages) override;
|
||||
mozilla::ipc::IPCResult RecvDisentangle(
|
||||
nsTArray<ClonedMessageData>&& aMessages);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvStopSendingData() override;
|
||||
mozilla::ipc::IPCResult RecvStopSendingData();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvClose() override;
|
||||
mozilla::ipc::IPCResult RecvClose();
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -22,7 +22,7 @@ class MIDIManagerParent final : public PMIDIManagerParent {
|
||||
public:
|
||||
NS_INLINE_DECL_REFCOUNTING(MIDIManagerParent);
|
||||
MIDIManagerParent() = default;
|
||||
mozilla::ipc::IPCResult RecvShutdown() override;
|
||||
mozilla::ipc::IPCResult RecvShutdown();
|
||||
void Teardown();
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -25,13 +25,12 @@ class MIDIPortInfo;
|
||||
class MIDIPortChild final : public PMIDIPortChild, public MIDIPortInterface {
|
||||
public:
|
||||
NS_INLINE_DECL_REFCOUNTING(MIDIPortChild);
|
||||
virtual mozilla::ipc::IPCResult RecvReceive(
|
||||
nsTArray<MIDIMessage>&& aMsgs) override;
|
||||
mozilla::ipc::IPCResult RecvReceive(nsTArray<MIDIMessage>&& aMsgs);
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateStatus(
|
||||
const uint32_t& aDeviceState, const uint32_t& aConnectionState) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateStatus(const uint32_t& aDeviceState,
|
||||
const uint32_t& aConnectionState);
|
||||
|
||||
MIDIPortChild(const MIDIPortInfo& aPortInfo, bool aSysexEnabled,
|
||||
MIDIPort* aPort);
|
||||
|
@ -23,11 +23,11 @@ class MIDIPortParent final : public PMIDIPortParent, public MIDIPortInterface {
|
||||
public:
|
||||
NS_INLINE_DECL_REFCOUNTING(MIDIPortParent);
|
||||
void ActorDestroy(ActorDestroyReason) override;
|
||||
mozilla::ipc::IPCResult RecvSend(nsTArray<MIDIMessage>&& aMsg) override;
|
||||
mozilla::ipc::IPCResult RecvOpen() override;
|
||||
mozilla::ipc::IPCResult RecvClose() override;
|
||||
mozilla::ipc::IPCResult RecvClear() override;
|
||||
mozilla::ipc::IPCResult RecvShutdown() override;
|
||||
mozilla::ipc::IPCResult RecvSend(nsTArray<MIDIMessage>&& aMsg);
|
||||
mozilla::ipc::IPCResult RecvOpen();
|
||||
mozilla::ipc::IPCResult RecvClose();
|
||||
mozilla::ipc::IPCResult RecvClear();
|
||||
mozilla::ipc::IPCResult RecvShutdown();
|
||||
MOZ_IMPLICIT MIDIPortParent(const MIDIPortInfo& aPortInfo,
|
||||
const bool aSysexEnabled);
|
||||
// Sends the current port status to the child actor. May also send message
|
||||
|
@ -53,8 +53,7 @@ class TCPServerSocketChild : public mozilla::net::PTCPServerSocketChild,
|
||||
|
||||
void Close();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCallbackAccept(
|
||||
PTCPSocketChild* socket) override;
|
||||
mozilla::ipc::IPCResult RecvCallbackAccept(PTCPSocketChild* socket);
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
|
@ -30,8 +30,8 @@ class TCPServerSocketParent : public mozilla::net::PTCPServerSocketParent,
|
||||
|
||||
void Init();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvClose() override;
|
||||
virtual mozilla::ipc::IPCResult RecvRequestDelete() override;
|
||||
mozilla::ipc::IPCResult RecvClose();
|
||||
mozilla::ipc::IPCResult RecvRequestDelete();
|
||||
|
||||
void AddIPDLReference();
|
||||
void ReleaseIPDLReference();
|
||||
|
@ -68,12 +68,12 @@ class TCPSocketChild : public mozilla::net::PTCPSocketChild,
|
||||
void GetHost(nsAString& aHost);
|
||||
void GetPort(uint16_t* aPort);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCallback(
|
||||
const nsString& aType, const CallbackData& aData,
|
||||
const uint32_t& aReadyState) override;
|
||||
virtual mozilla::ipc::IPCResult RecvRequestDelete() override;
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateBufferedAmount(
|
||||
const uint32_t& aBufferred, const uint32_t& aTrackingNumber) override;
|
||||
mozilla::ipc::IPCResult RecvCallback(const nsString& aType,
|
||||
const CallbackData& aData,
|
||||
const uint32_t& aReadyState);
|
||||
mozilla::ipc::IPCResult RecvRequestDelete();
|
||||
mozilla::ipc::IPCResult RecvUpdateBufferedAmount(
|
||||
const uint32_t& aBufferred, const uint32_t& aTrackingNumber);
|
||||
nsresult SetFilterName(const nsACString& aFilterName);
|
||||
|
||||
private:
|
||||
|
@ -49,23 +49,23 @@ class TCPSocketParent : public mozilla::net::PTCPSocketParent,
|
||||
|
||||
TCPSocketParent() {}
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOpen(
|
||||
const nsString& aHost, const uint16_t& aPort, const bool& useSSL,
|
||||
const bool& aUseArrayBuffers) override;
|
||||
mozilla::ipc::IPCResult RecvOpen(const nsString& aHost, const uint16_t& aPort,
|
||||
const bool& useSSL,
|
||||
const bool& aUseArrayBuffers);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOpenBind(
|
||||
mozilla::ipc::IPCResult RecvOpenBind(
|
||||
const nsCString& aRemoteHost, const uint16_t& aRemotePort,
|
||||
const nsCString& aLocalAddr, const uint16_t& aLocalPort,
|
||||
const bool& aUseSSL, const bool& aReuseAddrPort,
|
||||
const bool& aUseArrayBuffers, const nsCString& aFilter) override;
|
||||
const bool& aUseArrayBuffers, const nsCString& aFilter);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvStartTLS() override;
|
||||
virtual mozilla::ipc::IPCResult RecvSuspend() override;
|
||||
virtual mozilla::ipc::IPCResult RecvResume() override;
|
||||
virtual mozilla::ipc::IPCResult RecvClose() override;
|
||||
virtual mozilla::ipc::IPCResult RecvData(
|
||||
const SendableData& aData, const uint32_t& aTrackingNumber) override;
|
||||
virtual mozilla::ipc::IPCResult RecvRequestDelete() override;
|
||||
mozilla::ipc::IPCResult RecvStartTLS();
|
||||
mozilla::ipc::IPCResult RecvSuspend();
|
||||
mozilla::ipc::IPCResult RecvResume();
|
||||
mozilla::ipc::IPCResult RecvClose();
|
||||
mozilla::ipc::IPCResult RecvData(const SendableData& aData,
|
||||
const uint32_t& aTrackingNumber);
|
||||
mozilla::ipc::IPCResult RecvRequestDelete();
|
||||
|
||||
void FireErrorEvent(const nsAString& aName, const nsAString& aType,
|
||||
TCPReadyState aReadyState);
|
||||
|
@ -45,17 +45,16 @@ class UDPSocketChild : public mozilla::net::PUDPSocketChild,
|
||||
UDPSocketChild();
|
||||
virtual ~UDPSocketChild();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCallbackOpened(
|
||||
const UDPAddressInfo& aAddressInfo) override;
|
||||
virtual mozilla::ipc::IPCResult RecvCallbackConnected(
|
||||
const UDPAddressInfo& aAddressInfo) override;
|
||||
virtual mozilla::ipc::IPCResult RecvCallbackClosed() override;
|
||||
virtual mozilla::ipc::IPCResult RecvCallbackReceivedData(
|
||||
const UDPAddressInfo& aAddressInfo,
|
||||
InfallibleTArray<uint8_t>&& aData) override;
|
||||
virtual mozilla::ipc::IPCResult RecvCallbackError(
|
||||
const nsCString& aMessage, const nsCString& aFilename,
|
||||
const uint32_t& aLineNumber) override;
|
||||
mozilla::ipc::IPCResult RecvCallbackOpened(
|
||||
const UDPAddressInfo& aAddressInfo);
|
||||
mozilla::ipc::IPCResult RecvCallbackConnected(
|
||||
const UDPAddressInfo& aAddressInfo);
|
||||
mozilla::ipc::IPCResult RecvCallbackClosed();
|
||||
mozilla::ipc::IPCResult RecvCallbackReceivedData(
|
||||
const UDPAddressInfo& aAddressInfo, InfallibleTArray<uint8_t>&& aData);
|
||||
mozilla::ipc::IPCResult RecvCallbackError(const nsCString& aMessage,
|
||||
const nsCString& aFilename,
|
||||
const uint32_t& aLineNumber);
|
||||
|
||||
private:
|
||||
nsresult SendDataInternal(const UDPSocketAddr& aAddr, const uint8_t* aData,
|
||||
|
@ -31,12 +31,12 @@ class UDPSocketParent : public mozilla::net::PUDPSocketParent,
|
||||
|
||||
bool Init(const IPC::Principal& aPrincipal, const nsACString& aFilter);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvBind(
|
||||
const UDPAddressInfo& aAddressInfo, const bool& aAddressReuse,
|
||||
const bool& aLoopback, const uint32_t& recvBufferSize,
|
||||
const uint32_t& sendBufferSize) override;
|
||||
virtual mozilla::ipc::IPCResult RecvConnect(
|
||||
const UDPAddressInfo& aAddressInfo) override;
|
||||
mozilla::ipc::IPCResult RecvBind(const UDPAddressInfo& aAddressInfo,
|
||||
const bool& aAddressReuse,
|
||||
const bool& aLoopback,
|
||||
const uint32_t& recvBufferSize,
|
||||
const uint32_t& sendBufferSize);
|
||||
mozilla::ipc::IPCResult RecvConnect(const UDPAddressInfo& aAddressInfo);
|
||||
void DoSendConnectResponse(const UDPAddressInfo& aAddressInfo);
|
||||
void SendConnectResponse(nsIEventTarget* aThread,
|
||||
const UDPAddressInfo& aAddressInfo);
|
||||
@ -44,15 +44,15 @@ class UDPSocketParent : public mozilla::net::PUDPSocketParent,
|
||||
nsCOMPtr<nsIEventTarget>& aReturnThread,
|
||||
const UDPAddressInfo& aAddressInfo);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOutgoingData(
|
||||
const UDPData& aData, const UDPSocketAddr& aAddr) override;
|
||||
mozilla::ipc::IPCResult RecvOutgoingData(const UDPData& aData,
|
||||
const UDPSocketAddr& aAddr);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvClose() override;
|
||||
virtual mozilla::ipc::IPCResult RecvRequestDelete() override;
|
||||
virtual mozilla::ipc::IPCResult RecvJoinMulticast(
|
||||
const nsCString& aMulticastAddress, const nsCString& aInterface) override;
|
||||
virtual mozilla::ipc::IPCResult RecvLeaveMulticast(
|
||||
const nsCString& aMulticastAddress, const nsCString& aInterface) override;
|
||||
mozilla::ipc::IPCResult RecvClose();
|
||||
mozilla::ipc::IPCResult RecvRequestDelete();
|
||||
mozilla::ipc::IPCResult RecvJoinMulticast(const nsCString& aMulticastAddress,
|
||||
const nsCString& aInterface);
|
||||
mozilla::ipc::IPCResult RecvLeaveMulticast(const nsCString& aMulticastAddress,
|
||||
const nsCString& aInterface);
|
||||
|
||||
private:
|
||||
virtual ~UDPSocketParent();
|
||||
|
@ -26,21 +26,22 @@ class PaymentRequestChild final : public PPaymentRequestChild {
|
||||
|
||||
protected:
|
||||
mozilla::ipc::IPCResult RecvRespondPayment(
|
||||
const IPCPaymentActionResponse& aResponse) override;
|
||||
const IPCPaymentActionResponse& aResponse);
|
||||
|
||||
mozilla::ipc::IPCResult RecvChangeShippingAddress(
|
||||
const nsString& aRequestId, const IPCPaymentAddress& aAddress) override;
|
||||
const nsString& aRequestId, const IPCPaymentAddress& aAddress);
|
||||
|
||||
mozilla::ipc::IPCResult RecvChangeShippingOption(
|
||||
const nsString& aRequestId, const nsString& aOption) override;
|
||||
mozilla::ipc::IPCResult RecvChangeShippingOption(const nsString& aRequestId,
|
||||
const nsString& aOption);
|
||||
|
||||
mozilla::ipc::IPCResult RecvChangePayerDetail(
|
||||
const nsString& aRequestId, const nsString& aPayerName,
|
||||
const nsString& aPayerEmail, const nsString& aPayerPhone) override;
|
||||
mozilla::ipc::IPCResult RecvChangePayerDetail(const nsString& aRequestId,
|
||||
const nsString& aPayerName,
|
||||
const nsString& aPayerEmail,
|
||||
const nsString& aPayerPhone);
|
||||
|
||||
mozilla::ipc::IPCResult RecvChangePaymentMethod(
|
||||
const nsString& aRequestId, const nsString& aMethodName,
|
||||
const IPCMethodChangeDetails& aMethodDetails) override;
|
||||
const IPCMethodChangeDetails& aMethodDetails);
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -36,7 +36,7 @@ class PaymentRequestParent final : public PPaymentRequestParent {
|
||||
|
||||
protected:
|
||||
mozilla::ipc::IPCResult RecvRequestPayment(
|
||||
const IPCPaymentActionRequest& aRequest) override;
|
||||
const IPCPaymentActionRequest& aRequest);
|
||||
|
||||
mozilla::ipc::IPCResult Recv__delete__() override;
|
||||
|
||||
|
@ -29,11 +29,10 @@ class BrowserStreamChild : public PBrowserStreamChild, public AStream {
|
||||
NPError StreamConstructed(const nsCString& mimeType, const bool& seekable,
|
||||
uint16_t* stype);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvWrite(const int32_t& offset,
|
||||
const uint32_t& newsize,
|
||||
const Buffer& data) override;
|
||||
virtual mozilla::ipc::IPCResult RecvNPP_DestroyStream(
|
||||
const NPReason& reason) override;
|
||||
mozilla::ipc::IPCResult RecvWrite(const int32_t& offset,
|
||||
const uint32_t& newsize,
|
||||
const Buffer& data);
|
||||
mozilla::ipc::IPCResult RecvNPP_DestroyStream(const NPReason& reason);
|
||||
virtual mozilla::ipc::IPCResult Recv__delete__() override;
|
||||
|
||||
void EnsureCorrectInstance(PluginInstanceChild* i) {
|
||||
|
@ -63,44 +63,38 @@ class PluginInstanceChild : public PPluginInstanceChild {
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual mozilla::ipc::IPCResult AnswerCreateChildPluginWindow(
|
||||
NativeWindowHandle* aChildPluginWindow) override;
|
||||
mozilla::ipc::IPCResult AnswerCreateChildPluginWindow(
|
||||
NativeWindowHandle* aChildPluginWindow);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCreateChildPopupSurrogate(
|
||||
const NativeWindowHandle& aNetscapeWindow) override;
|
||||
mozilla::ipc::IPCResult RecvCreateChildPopupSurrogate(
|
||||
const NativeWindowHandle& aNetscapeWindow);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPP_SetWindow(
|
||||
const NPRemoteWindow& window) override;
|
||||
mozilla::ipc::IPCResult AnswerNPP_SetWindow(const NPRemoteWindow& window);
|
||||
|
||||
virtual mozilla::ipc::IPCResult
|
||||
AnswerNPP_GetValue_NPPVpluginWantsAllNetworkStreams(bool* wantsAllStreams,
|
||||
NPError* rv) override;
|
||||
virtual mozilla::ipc::IPCResult
|
||||
AnswerNPP_GetValue_NPPVpluginScriptableNPObject(
|
||||
PPluginScriptableObjectChild** value, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult
|
||||
AnswerNPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId(
|
||||
nsCString* aPlugId, NPError* aResult) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPP_SetValue_NPNVprivateModeBool(
|
||||
const bool& value, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPP_SetValue_NPNVmuteAudioBool(
|
||||
const bool& value, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPP_SetValue_NPNVCSSZoomFactor(
|
||||
const double& value, NPError* result) override;
|
||||
mozilla::ipc::IPCResult AnswerNPP_GetValue_NPPVpluginWantsAllNetworkStreams(
|
||||
bool* wantsAllStreams, NPError* rv);
|
||||
mozilla::ipc::IPCResult AnswerNPP_GetValue_NPPVpluginScriptableNPObject(
|
||||
PPluginScriptableObjectChild** value, NPError* result);
|
||||
mozilla::ipc::IPCResult
|
||||
AnswerNPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId(nsCString* aPlugId,
|
||||
NPError* aResult);
|
||||
mozilla::ipc::IPCResult AnswerNPP_SetValue_NPNVprivateModeBool(
|
||||
const bool& value, NPError* result);
|
||||
mozilla::ipc::IPCResult AnswerNPP_SetValue_NPNVmuteAudioBool(
|
||||
const bool& value, NPError* result);
|
||||
mozilla::ipc::IPCResult AnswerNPP_SetValue_NPNVCSSZoomFactor(
|
||||
const double& value, NPError* result);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPP_HandleEvent(
|
||||
const NPRemoteEvent& event, int16_t* handled) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPP_HandleEvent_Shmem(
|
||||
const NPRemoteEvent& event, Shmem&& mem, int16_t* handled,
|
||||
Shmem* rtnmem) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPP_HandleEvent_IOSurface(
|
||||
const NPRemoteEvent& event, const uint32_t& surface,
|
||||
int16_t* handled) override;
|
||||
mozilla::ipc::IPCResult AnswerNPP_HandleEvent(const NPRemoteEvent& event,
|
||||
int16_t* handled);
|
||||
mozilla::ipc::IPCResult AnswerNPP_HandleEvent_Shmem(
|
||||
const NPRemoteEvent& event, Shmem&& mem, int16_t* handled, Shmem* rtnmem);
|
||||
mozilla::ipc::IPCResult AnswerNPP_HandleEvent_IOSurface(
|
||||
const NPRemoteEvent& event, const uint32_t& surface, int16_t* handled);
|
||||
|
||||
// Async rendering
|
||||
virtual mozilla::ipc::IPCResult RecvAsyncSetWindow(
|
||||
const gfxSurfaceType& aSurfaceType,
|
||||
const NPRemoteWindow& aWindow) override;
|
||||
mozilla::ipc::IPCResult RecvAsyncSetWindow(const gfxSurfaceType& aSurfaceType,
|
||||
const NPRemoteWindow& aWindow);
|
||||
|
||||
virtual void DoAsyncSetWindow(const gfxSurfaceType& aSurfaceType,
|
||||
const NPRemoteWindow& aWindow, bool aIsAsync);
|
||||
@ -115,8 +109,8 @@ class PluginInstanceChild : public PPluginInstanceChild {
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerPaint(const NPRemoteEvent& event,
|
||||
int16_t* handled) override {
|
||||
mozilla::ipc::IPCResult AnswerPaint(const NPRemoteEvent& event,
|
||||
int16_t* handled) {
|
||||
PaintTracker pt;
|
||||
if (!AnswerNPP_HandleEvent(event, handled)) {
|
||||
return IPC_FAIL_NO_REASON(this);
|
||||
@ -124,13 +118,12 @@ class PluginInstanceChild : public PPluginInstanceChild {
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvWindowPosChanged(
|
||||
const NPRemoteEvent& event) override;
|
||||
mozilla::ipc::IPCResult RecvWindowPosChanged(const NPRemoteEvent& event);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvContentsScaleFactorChanged(
|
||||
const double& aContentsScaleFactor) override;
|
||||
mozilla::ipc::IPCResult RecvContentsScaleFactorChanged(
|
||||
const double& aContentsScaleFactor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPP_Destroy(NPError* result) override;
|
||||
mozilla::ipc::IPCResult AnswerNPP_Destroy(NPError* result);
|
||||
|
||||
PPluginScriptableObjectChild* AllocPPluginScriptableObjectChild();
|
||||
|
||||
@ -145,9 +138,10 @@ class PluginInstanceChild : public PPluginInstanceChild {
|
||||
const uint32_t& aLength, const uint32_t& aLastmodified,
|
||||
PStreamNotifyChild* aNotifyData, const nsCString& aHeaders) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPP_NewStream(
|
||||
PBrowserStreamChild* actor, const nsCString& mimeType,
|
||||
const bool& seekable, NPError* rv, uint16_t* stype) override;
|
||||
mozilla::ipc::IPCResult AnswerNPP_NewStream(PBrowserStreamChild* actor,
|
||||
const nsCString& mimeType,
|
||||
const bool& seekable, NPError* rv,
|
||||
uint16_t* stype);
|
||||
|
||||
PBrowserStreamChild* AllocPBrowserStreamChild(const nsCString& url,
|
||||
const uint32_t& length,
|
||||
@ -163,11 +157,11 @@ class PluginInstanceChild : public PPluginInstanceChild {
|
||||
|
||||
bool DeallocPStreamNotifyChild(PStreamNotifyChild* notifyData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerSetPluginFocus() override;
|
||||
mozilla::ipc::IPCResult AnswerSetPluginFocus();
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerUpdateWindow() override;
|
||||
mozilla::ipc::IPCResult AnswerUpdateWindow();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNPP_DidComposite() override;
|
||||
mozilla::ipc::IPCResult RecvNPP_DidComposite();
|
||||
|
||||
public:
|
||||
PluginInstanceChild(const NPPluginFuncs* aPluginIface,
|
||||
@ -217,8 +211,8 @@ class PluginInstanceChild : public PPluginInstanceChild {
|
||||
|
||||
void DoAsyncRedraw();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvHandledWindowedPluginKeyEvent(
|
||||
const NativeEventData& aKeyEventData, const bool& aIsConsumed) override;
|
||||
mozilla::ipc::IPCResult RecvHandledWindowedPluginKeyEvent(
|
||||
const NativeEventData& aKeyEventData, const bool& aIsConsumed);
|
||||
|
||||
#if defined(XP_WIN)
|
||||
NPError DefaultAudioDeviceChanged(NPAudioDeviceChangeDetails& details);
|
||||
@ -232,8 +226,8 @@ class PluginInstanceChild : public PPluginInstanceChild {
|
||||
|
||||
bool IsUsingDirectDrawing();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateBackground(
|
||||
const SurfaceDescriptor& aBackground, const nsIntRect& aRect) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateBackground(
|
||||
const SurfaceDescriptor& aBackground, const nsIntRect& aRect);
|
||||
|
||||
PPluginBackgroundDestroyerChild* AllocPPluginBackgroundDestroyerChild();
|
||||
|
||||
|
@ -83,52 +83,51 @@ class PluginInstanceParent : public PPluginInstanceParent {
|
||||
const nsCString& headers);
|
||||
bool DeallocPBrowserStreamParent(PBrowserStreamParent* stream);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetValue_NPNVnetscapeWindow(
|
||||
NativeWindowHandle* value, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetValue_NPNVWindowNPObject(
|
||||
PPluginScriptableObjectParent** value, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetValue_NPNVPluginElementNPObject(
|
||||
PPluginScriptableObjectParent** value, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetValue_NPNVprivateModeBool(
|
||||
bool* value, NPError* result) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetValue_NPNVnetscapeWindow(
|
||||
NativeWindowHandle* value, NPError* result);
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetValue_NPNVWindowNPObject(
|
||||
PPluginScriptableObjectParent** value, NPError* result);
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetValue_NPNVPluginElementNPObject(
|
||||
PPluginScriptableObjectParent** value, NPError* result);
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetValue_NPNVprivateModeBool(
|
||||
bool* value, NPError* result);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetValue_DrawingModelSupport(
|
||||
const NPNVariable& model, bool* value) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetValue_DrawingModelSupport(
|
||||
const NPNVariable& model, bool* value);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetValue_NPNVdocumentOrigin(
|
||||
nsCString* value, NPError* result) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetValue_NPNVdocumentOrigin(
|
||||
nsCString* value, NPError* result);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetValue_SupportsAsyncBitmapSurface(
|
||||
bool* value) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetValue_SupportsAsyncBitmapSurface(
|
||||
bool* value);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetValue_SupportsAsyncDXGISurface(
|
||||
bool* value) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetValue_SupportsAsyncDXGISurface(
|
||||
bool* value);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetValue_PreferredDXGIAdapter(
|
||||
DxgiAdapterDesc* desc) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetValue_PreferredDXGIAdapter(
|
||||
DxgiAdapterDesc* desc);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginWindow(
|
||||
const bool& windowed, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginTransparent(
|
||||
const bool& transparent, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginUsesDOMForCursor(
|
||||
const bool& useDOMForCursor, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginDrawingModel(
|
||||
const int& drawingModel, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginEventModel(
|
||||
const int& eventModel, NPError* result) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginIsPlayingAudio(
|
||||
const bool& isAudioPlaying, NPError* result) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginWindow(
|
||||
const bool& windowed, NPError* result);
|
||||
mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginTransparent(
|
||||
const bool& transparent, NPError* result);
|
||||
mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginUsesDOMForCursor(
|
||||
const bool& useDOMForCursor, NPError* result);
|
||||
mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginDrawingModel(
|
||||
const int& drawingModel, NPError* result);
|
||||
mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginEventModel(
|
||||
const int& eventModel, NPError* result);
|
||||
mozilla::ipc::IPCResult AnswerNPN_SetValue_NPPVpluginIsPlayingAudio(
|
||||
const bool& isAudioPlaying, NPError* result);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetURL(const nsCString& url,
|
||||
const nsCString& target,
|
||||
NPError* result) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetURL(const nsCString& url,
|
||||
const nsCString& target,
|
||||
NPError* result);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_PostURL(const nsCString& url,
|
||||
const nsCString& target,
|
||||
const nsCString& buffer,
|
||||
const bool& file,
|
||||
NPError* result) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_PostURL(const nsCString& url,
|
||||
const nsCString& target,
|
||||
const nsCString& buffer,
|
||||
const bool& file, NPError* result);
|
||||
|
||||
PStreamNotifyParent* AllocPStreamNotifyParent(
|
||||
const nsCString& url, const nsCString& target, const bool& post,
|
||||
@ -141,28 +140,29 @@ class PluginInstanceParent : public PPluginInstanceParent {
|
||||
|
||||
bool DeallocPStreamNotifyParent(PStreamNotifyParent* notifyData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNPN_InvalidateRect(
|
||||
const NPRect& rect) override;
|
||||
mozilla::ipc::IPCResult RecvNPN_InvalidateRect(const NPRect& rect);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRevokeCurrentDirectSurface() override;
|
||||
mozilla::ipc::IPCResult RecvRevokeCurrentDirectSurface();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInitDXGISurface(
|
||||
const gfx::SurfaceFormat& format, const gfx::IntSize& size,
|
||||
WindowsHandle* outHandle, NPError* outError) override;
|
||||
virtual mozilla::ipc::IPCResult RecvFinalizeDXGISurface(
|
||||
const WindowsHandle& handle) override;
|
||||
mozilla::ipc::IPCResult RecvInitDXGISurface(const gfx::SurfaceFormat& format,
|
||||
const gfx::IntSize& size,
|
||||
WindowsHandle* outHandle,
|
||||
NPError* outError);
|
||||
mozilla::ipc::IPCResult RecvFinalizeDXGISurface(const WindowsHandle& handle);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvShowDirectBitmap(
|
||||
Shmem&& buffer, const gfx::SurfaceFormat& format, const uint32_t& stride,
|
||||
const gfx::IntSize& size, const gfx::IntRect& dirty) override;
|
||||
mozilla::ipc::IPCResult RecvShowDirectBitmap(Shmem&& buffer,
|
||||
const gfx::SurfaceFormat& format,
|
||||
const uint32_t& stride,
|
||||
const gfx::IntSize& size,
|
||||
const gfx::IntRect& dirty);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvShowDirectDXGISurface(
|
||||
const WindowsHandle& handle, const gfx::IntRect& rect) override;
|
||||
mozilla::ipc::IPCResult RecvShowDirectDXGISurface(const WindowsHandle& handle,
|
||||
const gfx::IntRect& rect);
|
||||
|
||||
// Async rendering
|
||||
virtual mozilla::ipc::IPCResult RecvShow(
|
||||
const NPRect& updatedRect, const SurfaceDescriptor& newSurface,
|
||||
SurfaceDescriptor* prevSurface) override;
|
||||
mozilla::ipc::IPCResult RecvShow(const NPRect& updatedRect,
|
||||
const SurfaceDescriptor& newSurface,
|
||||
SurfaceDescriptor* prevSurface);
|
||||
|
||||
PPluginSurfaceParent* AllocPPluginSurfaceParent(
|
||||
const WindowsSharedMemoryHandle& handle,
|
||||
@ -170,29 +170,28 @@ class PluginInstanceParent : public PPluginInstanceParent {
|
||||
|
||||
bool DeallocPPluginSurfaceParent(PPluginSurfaceParent* s);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_PushPopupsEnabledState(
|
||||
const bool& aState) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_PushPopupsEnabledState(const bool& aState);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_PopPopupsEnabledState() override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_PopPopupsEnabledState();
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_GetValueForURL(
|
||||
mozilla::ipc::IPCResult AnswerNPN_GetValueForURL(
|
||||
const NPNURLVariable& variable, const nsCString& url, nsCString* value,
|
||||
NPError* result) override;
|
||||
NPError* result);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_SetValueForURL(
|
||||
mozilla::ipc::IPCResult AnswerNPN_SetValueForURL(
|
||||
const NPNURLVariable& variable, const nsCString& url,
|
||||
const nsCString& value, NPError* result) override;
|
||||
const nsCString& value, NPError* result);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_ConvertPoint(
|
||||
mozilla::ipc::IPCResult AnswerNPN_ConvertPoint(
|
||||
const double& sourceX, const bool& ignoreDestX, const double& sourceY,
|
||||
const bool& ignoreDestY, const NPCoordinateSpace& sourceSpace,
|
||||
const NPCoordinateSpace& destSpace, double* destX, double* destY,
|
||||
bool* result) override;
|
||||
bool* result);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRedrawPlugin() override;
|
||||
mozilla::ipc::IPCResult RecvRedrawPlugin();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetNetscapeWindowAsParent(
|
||||
const NativeWindowHandle& childWindow) override;
|
||||
mozilla::ipc::IPCResult RecvSetNetscapeWindowAsParent(
|
||||
const NativeWindowHandle& childWindow);
|
||||
|
||||
NPError NPP_SetWindow(const NPWindow* aWindow);
|
||||
|
||||
@ -226,8 +225,7 @@ class PluginInstanceParent : public PPluginInstanceParent {
|
||||
|
||||
void GetSrcAttribute(nsACString& aOutput) const { aOutput = mSrcAttribute; }
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerPluginFocusChange(
|
||||
const bool& gotFocus) override;
|
||||
mozilla::ipc::IPCResult AnswerPluginFocusChange(const bool& gotFocus);
|
||||
|
||||
nsresult AsyncSetWindow(NPWindow* window);
|
||||
nsresult GetImageContainer(mozilla::layers::ImageContainer** aContainer);
|
||||
@ -254,20 +252,19 @@ class PluginInstanceParent : public PPluginInstanceParent {
|
||||
static PluginInstanceParent* Cast(NPP instance);
|
||||
|
||||
// for IME hook
|
||||
virtual mozilla::ipc::IPCResult RecvGetCompositionString(
|
||||
const uint32_t& aIndex, nsTArray<uint8_t>* aBuffer,
|
||||
int32_t* aLength) override;
|
||||
virtual mozilla::ipc::IPCResult RecvSetCandidateWindow(
|
||||
const mozilla::widget::CandidateWindowPosition& aPosition) override;
|
||||
virtual mozilla::ipc::IPCResult RecvRequestCommitOrCancel(
|
||||
const bool& aCommitted) override;
|
||||
virtual mozilla::ipc::IPCResult RecvEnableIME(const bool& aEnable) override;
|
||||
mozilla::ipc::IPCResult RecvGetCompositionString(const uint32_t& aIndex,
|
||||
nsTArray<uint8_t>* aBuffer,
|
||||
int32_t* aLength);
|
||||
mozilla::ipc::IPCResult RecvSetCandidateWindow(
|
||||
const mozilla::widget::CandidateWindowPosition& aPosition);
|
||||
mozilla::ipc::IPCResult RecvRequestCommitOrCancel(const bool& aCommitted);
|
||||
mozilla::ipc::IPCResult RecvEnableIME(const bool& aEnable);
|
||||
|
||||
// for reserved shortcut key handling with windowed plugin on Windows
|
||||
nsresult HandledWindowedPluginKeyEvent(
|
||||
const mozilla::NativeEventData& aKeyEventData, bool aIsConsumed);
|
||||
virtual mozilla::ipc::IPCResult RecvOnWindowedPluginKeyEvent(
|
||||
const mozilla::NativeEventData& aKeyEventData) override;
|
||||
mozilla::ipc::IPCResult RecvOnWindowedPluginKeyEvent(
|
||||
const mozilla::NativeEventData& aKeyEventData);
|
||||
|
||||
private:
|
||||
// Create an appropriate platform surface for a background of size
|
||||
|
@ -51,24 +51,23 @@ class PluginModuleChild : public PPluginModuleChild {
|
||||
|
||||
virtual bool ShouldContinueFromReplyTimeout() override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSettingChanged(
|
||||
const PluginSettings& aSettings) override;
|
||||
mozilla::ipc::IPCResult RecvSettingChanged(const PluginSettings& aSettings);
|
||||
|
||||
// Implement the PPluginModuleChild interface
|
||||
virtual mozilla::ipc::IPCResult RecvInitProfiler(
|
||||
Endpoint<mozilla::PProfilerChild>&& aEndpoint) override;
|
||||
virtual mozilla::ipc::IPCResult RecvDisableFlashProtectedMode() override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNP_GetEntryPoints(NPError* rv) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNP_Initialize(
|
||||
const PluginSettings& aSettings, NPError* rv) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerSyncNPP_New(
|
||||
PPluginInstanceChild* aActor, NPError* rv) override;
|
||||
mozilla::ipc::IPCResult RecvInitProfiler(
|
||||
Endpoint<mozilla::PProfilerChild>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvDisableFlashProtectedMode();
|
||||
mozilla::ipc::IPCResult AnswerNP_GetEntryPoints(NPError* rv);
|
||||
mozilla::ipc::IPCResult AnswerNP_Initialize(const PluginSettings& aSettings,
|
||||
NPError* rv);
|
||||
mozilla::ipc::IPCResult AnswerSyncNPP_New(PPluginInstanceChild* aActor,
|
||||
NPError* rv);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInitPluginModuleChild(
|
||||
Endpoint<PPluginModuleChild>&& endpoint) override;
|
||||
mozilla::ipc::IPCResult RecvInitPluginModuleChild(
|
||||
Endpoint<PPluginModuleChild>&& endpoint);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInitPluginFunctionBroker(
|
||||
Endpoint<PFunctionBrokerChild>&& endpoint) override;
|
||||
mozilla::ipc::IPCResult RecvInitPluginFunctionBroker(
|
||||
Endpoint<PFunctionBrokerChild>&& endpoint);
|
||||
|
||||
PPluginInstanceChild* AllocPPluginInstanceChild(
|
||||
const nsCString& aMimeType, const InfallibleTArray<nsCString>& aNames,
|
||||
@ -76,40 +75,36 @@ class PluginModuleChild : public PPluginModuleChild {
|
||||
|
||||
bool DeallocPPluginInstanceChild(PPluginInstanceChild* aActor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPPluginInstanceConstructor(
|
||||
mozilla::ipc::IPCResult RecvPPluginInstanceConstructor(
|
||||
PPluginInstanceChild* aActor, const nsCString& aMimeType,
|
||||
InfallibleTArray<nsCString>&& aNames,
|
||||
InfallibleTArray<nsCString>&& aValues) override;
|
||||
virtual mozilla::ipc::IPCResult AnswerNP_Shutdown(NPError* rv) override;
|
||||
mozilla::ipc::IPCResult AnswerNP_Shutdown(NPError* rv);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerOptionalFunctionsSupported(
|
||||
bool* aURLRedirectNotify, bool* aClearSiteData,
|
||||
bool* aGetSitesWithData) override;
|
||||
mozilla::ipc::IPCResult AnswerOptionalFunctionsSupported(
|
||||
bool* aURLRedirectNotify, bool* aClearSiteData, bool* aGetSitesWithData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNPP_ClearSiteData(
|
||||
const nsCString& aSite, const uint64_t& aFlags, const uint64_t& aMaxAge,
|
||||
const uint64_t& aCallbackId) override;
|
||||
mozilla::ipc::IPCResult RecvNPP_ClearSiteData(const nsCString& aSite,
|
||||
const uint64_t& aFlags,
|
||||
const uint64_t& aMaxAge,
|
||||
const uint64_t& aCallbackId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNPP_GetSitesWithData(
|
||||
const uint64_t& aCallbackId) override;
|
||||
mozilla::ipc::IPCResult RecvNPP_GetSitesWithData(const uint64_t& aCallbackId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetAudioSessionData(
|
||||
const nsID& aId, const nsString& aDisplayName,
|
||||
const nsString& aIconPath) override;
|
||||
mozilla::ipc::IPCResult RecvSetAudioSessionData(const nsID& aId,
|
||||
const nsString& aDisplayName,
|
||||
const nsString& aIconPath);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetParentHangTimeout(
|
||||
const uint32_t& aSeconds) override;
|
||||
mozilla::ipc::IPCResult RecvSetParentHangTimeout(const uint32_t& aSeconds);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerInitCrashReporter(
|
||||
Shmem&& aShmem, mozilla::dom::NativeThreadId* aId) override;
|
||||
mozilla::ipc::IPCResult AnswerInitCrashReporter(
|
||||
Shmem&& aShmem, mozilla::dom::NativeThreadId* aId);
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason why) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvProcessNativeEventsInInterruptCall()
|
||||
override;
|
||||
mozilla::ipc::IPCResult RecvProcessNativeEventsInInterruptCall();
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerModuleSupportsAsyncRender(
|
||||
bool* aResult) override;
|
||||
mozilla::ipc::IPCResult AnswerModuleSupportsAsyncRender(bool* aResult);
|
||||
|
||||
public:
|
||||
explicit PluginModuleChild(bool aIsChrome);
|
||||
@ -198,9 +193,9 @@ class PluginModuleChild : public PPluginModuleChild {
|
||||
NPError PluginRequiresAudioDeviceChanges(PluginInstanceChild* aInstance,
|
||||
NPBool aShouldRegister);
|
||||
mozilla::ipc::IPCResult RecvNPP_SetValue_NPNVaudioDeviceChangeDetails(
|
||||
const NPAudioDeviceChangeDetailsIPC& detailsIPC) override;
|
||||
const NPAudioDeviceChangeDetailsIPC& detailsIPC);
|
||||
mozilla::ipc::IPCResult RecvNPP_SetValue_NPNVaudioDeviceStateChanged(
|
||||
const NPAudioDeviceStateChangedIPC& aDeviceStateIPC) override;
|
||||
const NPAudioDeviceStateChangedIPC& aDeviceStateIPC);
|
||||
|
||||
private:
|
||||
NPError DoNP_Initialize(const PluginSettings& aSettings);
|
||||
|
@ -115,42 +115,36 @@ class PluginModuleParent : public PPluginModuleParent,
|
||||
return MediateRace(parent, child);
|
||||
}
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvBackUpXResources(
|
||||
const FileDescriptor& aXSocketFd) override;
|
||||
mozilla::ipc::IPCResult RecvBackUpXResources(
|
||||
const FileDescriptor& aXSocketFd);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerProcessSomeEvents() override;
|
||||
mozilla::ipc::IPCResult AnswerProcessSomeEvents();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvProcessNativeEventsInInterruptCall()
|
||||
override;
|
||||
mozilla::ipc::IPCResult RecvProcessNativeEventsInInterruptCall();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPluginShowWindow(
|
||||
mozilla::ipc::IPCResult RecvPluginShowWindow(
|
||||
const uint32_t& aWindowId, const bool& aModal, const int32_t& aX,
|
||||
const int32_t& aY, const size_t& aWidth, const size_t& aHeight) override;
|
||||
const int32_t& aY, const size_t& aWidth, const size_t& aHeight);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPluginHideWindow(
|
||||
const uint32_t& aWindowId) override;
|
||||
mozilla::ipc::IPCResult RecvPluginHideWindow(const uint32_t& aWindowId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetCursor(
|
||||
const NSCursorInfo& aCursorInfo) override;
|
||||
mozilla::ipc::IPCResult RecvSetCursor(const NSCursorInfo& aCursorInfo);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvShowCursor(const bool& aShow) override;
|
||||
mozilla::ipc::IPCResult RecvShowCursor(const bool& aShow);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPushCursor(
|
||||
const NSCursorInfo& aCursorInfo) override;
|
||||
mozilla::ipc::IPCResult RecvPushCursor(const NSCursorInfo& aCursorInfo);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPopCursor() override;
|
||||
mozilla::ipc::IPCResult RecvPopCursor();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNPN_SetException(
|
||||
const nsCString& aMessage) override;
|
||||
mozilla::ipc::IPCResult RecvNPN_SetException(const nsCString& aMessage);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNPN_ReloadPlugins(
|
||||
const bool& aReloadPages) override;
|
||||
mozilla::ipc::IPCResult RecvNPN_ReloadPlugins(const bool& aReloadPages);
|
||||
|
||||
static BrowserStreamParent* StreamCast(NPP instance, NPStream* s);
|
||||
|
||||
virtual mozilla::ipc::IPCResult
|
||||
AnswerNPN_SetValue_NPPVpluginRequiresAudioDeviceChanges(
|
||||
const bool& shouldRegister, NPError* result) override;
|
||||
const bool& shouldRegister, NPError* result);
|
||||
|
||||
protected:
|
||||
void SetChildTimeout(const int32_t aChildTimeout);
|
||||
@ -158,15 +152,15 @@ class PluginModuleParent : public PPluginModuleParent,
|
||||
|
||||
virtual void UpdatePluginTimeout() {}
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyContentModuleDestroyed() override {
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyContentModuleDestroyed() {
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvReturnClearSiteData(
|
||||
const NPError& aRv, const uint64_t& aCallbackId) override;
|
||||
mozilla::ipc::IPCResult RecvReturnClearSiteData(const NPError& aRv,
|
||||
const uint64_t& aCallbackId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvReturnSitesWithData(
|
||||
nsTArray<nsCString>&& aSites, const uint64_t& aCallbackId) override;
|
||||
mozilla::ipc::IPCResult RecvReturnSitesWithData(nsTArray<nsCString>&& aSites,
|
||||
const uint64_t& aCallbackId);
|
||||
|
||||
void SetPluginFuncs(NPPluginFuncs* aFuncs);
|
||||
|
||||
@ -461,12 +455,12 @@ class PluginModuleChromeParent : public PluginModuleParent,
|
||||
|
||||
bool InitCrashReporter();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyContentModuleDestroyed() override;
|
||||
mozilla::ipc::IPCResult RecvNotifyContentModuleDestroyed() override;
|
||||
|
||||
static void CachedSettingChanged(const char* aPref,
|
||||
PluginModuleChromeParent* aModule);
|
||||
|
||||
virtual mozilla::ipc::IPCResult
|
||||
mozilla::ipc::IPCResult
|
||||
AnswerNPN_SetValue_NPPVpluginRequiresAudioDeviceChanges(
|
||||
const bool& shouldRegister, NPError* result) override;
|
||||
|
||||
|
@ -44,43 +44,43 @@ class PluginScriptableObjectChild : public PPluginScriptableObjectChild {
|
||||
|
||||
void InitializeLocal(NPObject* aObject);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerInvalidate() override;
|
||||
mozilla::ipc::IPCResult AnswerInvalidate();
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerHasMethod(const PluginIdentifier& aId,
|
||||
bool* aHasMethod) override;
|
||||
mozilla::ipc::IPCResult AnswerHasMethod(const PluginIdentifier& aId,
|
||||
bool* aHasMethod);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerInvoke(
|
||||
const PluginIdentifier& aId, InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult, bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerInvoke(const PluginIdentifier& aId,
|
||||
InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult, bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerInvokeDefault(
|
||||
InfallibleTArray<Variant>&& aArgs, Variant* aResult,
|
||||
bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerInvokeDefault(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult, bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerHasProperty(
|
||||
const PluginIdentifier& aId, bool* aHasProperty) override;
|
||||
mozilla::ipc::IPCResult AnswerHasProperty(const PluginIdentifier& aId,
|
||||
bool* aHasProperty);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerGetChildProperty(
|
||||
const PluginIdentifier& aId, bool* aHasProperty, bool* aHasMethod,
|
||||
Variant* aResult, bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerGetChildProperty(const PluginIdentifier& aId,
|
||||
bool* aHasProperty,
|
||||
bool* aHasMethod,
|
||||
Variant* aResult,
|
||||
bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerSetProperty(const PluginIdentifier& aId,
|
||||
const Variant& aValue,
|
||||
bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerSetProperty(const PluginIdentifier& aId,
|
||||
const Variant& aValue,
|
||||
bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerRemoveProperty(
|
||||
const PluginIdentifier& aId, bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerRemoveProperty(const PluginIdentifier& aId,
|
||||
bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerEnumerate(
|
||||
InfallibleTArray<PluginIdentifier>* aProperties, bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerEnumerate(
|
||||
InfallibleTArray<PluginIdentifier>* aProperties, bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerConstruct(
|
||||
InfallibleTArray<Variant>&& aArgs, Variant* aResult,
|
||||
bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerConstruct(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult, bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvProtect() override;
|
||||
mozilla::ipc::IPCResult RecvProtect();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUnprotect() override;
|
||||
mozilla::ipc::IPCResult RecvUnprotect();
|
||||
|
||||
NPObject* GetObject(bool aCanResurrect);
|
||||
|
||||
|
@ -43,44 +43,42 @@ class PluginScriptableObjectParent : public PPluginScriptableObjectParent {
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerHasMethod(const PluginIdentifier& aId,
|
||||
bool* aHasMethod) override;
|
||||
mozilla::ipc::IPCResult AnswerHasMethod(const PluginIdentifier& aId,
|
||||
bool* aHasMethod);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerInvoke(
|
||||
const PluginIdentifier& aId, InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult, bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerInvoke(const PluginIdentifier& aId,
|
||||
InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult, bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerInvokeDefault(
|
||||
InfallibleTArray<Variant>&& aArgs, Variant* aResult,
|
||||
bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerInvokeDefault(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult, bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerHasProperty(
|
||||
const PluginIdentifier& aId, bool* aHasProperty) override;
|
||||
mozilla::ipc::IPCResult AnswerHasProperty(const PluginIdentifier& aId,
|
||||
bool* aHasProperty);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerGetParentProperty(
|
||||
const PluginIdentifier& aId, Variant* aResult, bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerGetParentProperty(const PluginIdentifier& aId,
|
||||
Variant* aResult,
|
||||
bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerSetProperty(const PluginIdentifier& aId,
|
||||
const Variant& aValue,
|
||||
bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerSetProperty(const PluginIdentifier& aId,
|
||||
const Variant& aValue,
|
||||
bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerRemoveProperty(
|
||||
const PluginIdentifier& aId, bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerRemoveProperty(const PluginIdentifier& aId,
|
||||
bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerEnumerate(
|
||||
InfallibleTArray<PluginIdentifier>* aProperties, bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerEnumerate(
|
||||
InfallibleTArray<PluginIdentifier>* aProperties, bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerConstruct(
|
||||
InfallibleTArray<Variant>&& aArgs, Variant* aResult,
|
||||
bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerConstruct(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult, bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult AnswerNPN_Evaluate(const nsCString& aScript,
|
||||
Variant* aResult,
|
||||
bool* aSuccess) override;
|
||||
mozilla::ipc::IPCResult AnswerNPN_Evaluate(const nsCString& aScript,
|
||||
Variant* aResult, bool* aSuccess);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvProtect() override;
|
||||
mozilla::ipc::IPCResult RecvProtect();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUnprotect() override;
|
||||
mozilla::ipc::IPCResult RecvUnprotect();
|
||||
|
||||
static const NPClass* GetClass() { return &sNPClass; }
|
||||
|
||||
|
@ -34,7 +34,7 @@ class StreamNotifyChild : public PStreamNotifyChild {
|
||||
const NPReason& reason) override;
|
||||
|
||||
mozilla::ipc::IPCResult RecvRedirectNotify(const nsCString& url,
|
||||
const int32_t& status) override;
|
||||
const int32_t& status);
|
||||
|
||||
/**
|
||||
* If a stream is created for this this URLNotify, we associate the objects
|
||||
|
@ -30,8 +30,7 @@ class StreamNotifyParent : public PStreamNotifyParent {
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
private:
|
||||
mozilla::ipc::IPCResult RecvRedirectNotifyResponse(
|
||||
const bool& allow) override;
|
||||
mozilla::ipc::IPCResult RecvRedirectNotifyResponse(const bool& allow);
|
||||
|
||||
bool* mDestructionFlag;
|
||||
};
|
||||
|
@ -26,12 +26,11 @@ class PresentationBuilderChild final
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOnOffer(const nsString& aSDP) override;
|
||||
mozilla::ipc::IPCResult RecvOnOffer(const nsString& aSDP);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOnAnswer(const nsString& aSDP) override;
|
||||
mozilla::ipc::IPCResult RecvOnAnswer(const nsString& aSDP);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOnIceCandidate(
|
||||
const nsString& aCandidate) override;
|
||||
mozilla::ipc::IPCResult RecvOnIceCandidate(const nsString& aCandidate);
|
||||
|
||||
private:
|
||||
virtual ~PresentationBuilderChild() = default;
|
||||
|
@ -24,21 +24,19 @@ class PresentationBuilderParent final
|
||||
|
||||
explicit PresentationBuilderParent(PresentationParent* aParent);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSendOffer(const nsString& aSDP) override;
|
||||
mozilla::ipc::IPCResult RecvSendOffer(const nsString& aSDP);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSendAnswer(const nsString& aSDP) override;
|
||||
mozilla::ipc::IPCResult RecvSendAnswer(const nsString& aSDP);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSendIceCandidate(
|
||||
const nsString& aCandidate) override;
|
||||
mozilla::ipc::IPCResult RecvSendIceCandidate(const nsString& aCandidate);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvClose(const nsresult& aReason) override;
|
||||
mozilla::ipc::IPCResult RecvClose(const nsresult& aReason);
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOnSessionTransport() override;
|
||||
mozilla::ipc::IPCResult RecvOnSessionTransport();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvOnSessionTransportError(
|
||||
const nsresult& aReason) override;
|
||||
mozilla::ipc::IPCResult RecvOnSessionTransportError(const nsresult& aReason);
|
||||
|
||||
private:
|
||||
virtual ~PresentationBuilderParent();
|
||||
|
@ -38,23 +38,23 @@ class PresentationChild final : public PPresentationChild {
|
||||
|
||||
bool DeallocPPresentationBuilderChild(PPresentationBuilderChild* aActor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyAvailableChange(
|
||||
nsTArray<nsString>&& aAvailabilityUrls, const bool& aAvailable) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyAvailableChange(
|
||||
nsTArray<nsString>&& aAvailabilityUrls, const bool& aAvailable);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifySessionStateChange(
|
||||
mozilla::ipc::IPCResult RecvNotifySessionStateChange(
|
||||
const nsString& aSessionId, const uint16_t& aState,
|
||||
const nsresult& aReason) override;
|
||||
const nsresult& aReason);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyMessage(
|
||||
const nsString& aSessionId, const nsCString& aData,
|
||||
const bool& aIsBinary) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyMessage(const nsString& aSessionId,
|
||||
const nsCString& aData,
|
||||
const bool& aIsBinary);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifySessionConnect(
|
||||
const uint64_t& aWindowId, const nsString& aSessionId) override;
|
||||
mozilla::ipc::IPCResult RecvNotifySessionConnect(const uint64_t& aWindowId,
|
||||
const nsString& aSessionId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyCloseSessionTransport(
|
||||
mozilla::ipc::IPCResult RecvNotifyCloseSessionTransport(
|
||||
const nsString& aSessionId, const uint8_t& aRole,
|
||||
const nsresult& aReason) override;
|
||||
const nsresult& aReason);
|
||||
|
||||
private:
|
||||
virtual ~PresentationChild();
|
||||
@ -74,8 +74,7 @@ class PresentationRequestChild final : public PPresentationRequestChild {
|
||||
virtual mozilla::ipc::IPCResult Recv__delete__(
|
||||
const nsresult& aResult) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyRequestUrlSelected(
|
||||
const nsString& aUrl) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyRequestUrlSelected(const nsString& aUrl);
|
||||
|
||||
private:
|
||||
virtual ~PresentationRequestChild();
|
||||
|
@ -53,31 +53,31 @@ class PresentationParent final : public PPresentationParent,
|
||||
|
||||
virtual mozilla::ipc::IPCResult Recv__delete__() override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRegisterAvailabilityHandler(
|
||||
nsTArray<nsString>&& aAvailabilityUrls) override;
|
||||
mozilla::ipc::IPCResult RecvRegisterAvailabilityHandler(
|
||||
nsTArray<nsString>&& aAvailabilityUrls);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUnregisterAvailabilityHandler(
|
||||
nsTArray<nsString>&& aAvailabilityUrls) override;
|
||||
mozilla::ipc::IPCResult RecvUnregisterAvailabilityHandler(
|
||||
nsTArray<nsString>&& aAvailabilityUrls);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRegisterSessionHandler(
|
||||
const nsString& aSessionId, const uint8_t& aRole) override;
|
||||
mozilla::ipc::IPCResult RecvRegisterSessionHandler(const nsString& aSessionId,
|
||||
const uint8_t& aRole);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUnregisterSessionHandler(
|
||||
const nsString& aSessionId, const uint8_t& aRole) override;
|
||||
mozilla::ipc::IPCResult RecvUnregisterSessionHandler(
|
||||
const nsString& aSessionId, const uint8_t& aRole);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRegisterRespondingHandler(
|
||||
const uint64_t& aWindowId) override;
|
||||
mozilla::ipc::IPCResult RecvRegisterRespondingHandler(
|
||||
const uint64_t& aWindowId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUnregisterRespondingHandler(
|
||||
const uint64_t& aWindowId) override;
|
||||
mozilla::ipc::IPCResult RecvUnregisterRespondingHandler(
|
||||
const uint64_t& aWindowId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyReceiverReady(
|
||||
const nsString& aSessionId, const uint64_t& aWindowId,
|
||||
const bool& aIsLoading) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyReceiverReady(const nsString& aSessionId,
|
||||
const uint64_t& aWindowId,
|
||||
const bool& aIsLoading);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyTransportClosed(
|
||||
const nsString& aSessionId, const uint8_t& aRole,
|
||||
const nsresult& aReason) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyTransportClosed(const nsString& aSessionId,
|
||||
const uint8_t& aRole,
|
||||
const nsresult& aReason);
|
||||
|
||||
private:
|
||||
virtual ~PresentationParent();
|
||||
|
@ -28,20 +28,18 @@ class ServiceWorkerManagerChild final : public PServiceWorkerManagerChild {
|
||||
|
||||
void ManagerShuttingDown() { mShuttingDown = true; }
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyRegister(
|
||||
const ServiceWorkerRegistrationData& aData) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyRegister(
|
||||
const ServiceWorkerRegistrationData& aData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifySoftUpdate(
|
||||
const OriginAttributes& aOriginAttributes,
|
||||
const nsString& aScope) override;
|
||||
mozilla::ipc::IPCResult RecvNotifySoftUpdate(
|
||||
const OriginAttributes& aOriginAttributes, const nsString& aScope);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyUnregister(
|
||||
const PrincipalInfo& aPrincipalInfo, const nsString& aScope) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyUnregister(
|
||||
const PrincipalInfo& aPrincipalInfo, const nsString& aScope);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyRemove(
|
||||
const nsCString& aHost) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyRemove(const nsCString& aHost);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyRemoveAll() override;
|
||||
mozilla::ipc::IPCResult RecvNotifyRemoveAll();
|
||||
|
||||
PServiceWorkerUpdaterChild* AllocPServiceWorkerUpdaterChild(
|
||||
const OriginAttributes& originAttributes, const nsCString& scope);
|
||||
|
@ -34,25 +34,23 @@ class ServiceWorkerManagerParent final : public PServiceWorkerManagerParent {
|
||||
ServiceWorkerManagerParent();
|
||||
~ServiceWorkerManagerParent();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRegister(
|
||||
const ServiceWorkerRegistrationData& aData) override;
|
||||
mozilla::ipc::IPCResult RecvRegister(
|
||||
const ServiceWorkerRegistrationData& aData);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUnregister(
|
||||
const PrincipalInfo& aPrincipalInfo, const nsString& aScope) override;
|
||||
mozilla::ipc::IPCResult RecvUnregister(const PrincipalInfo& aPrincipalInfo,
|
||||
const nsString& aScope);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPropagateSoftUpdate(
|
||||
const OriginAttributes& aOriginAttributes,
|
||||
const nsString& aScope) override;
|
||||
mozilla::ipc::IPCResult RecvPropagateSoftUpdate(
|
||||
const OriginAttributes& aOriginAttributes, const nsString& aScope);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPropagateUnregister(
|
||||
const PrincipalInfo& aPrincipalInfo, const nsString& aScope) override;
|
||||
mozilla::ipc::IPCResult RecvPropagateUnregister(
|
||||
const PrincipalInfo& aPrincipalInfo, const nsString& aScope);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPropagateRemove(
|
||||
const nsCString& aHost) override;
|
||||
mozilla::ipc::IPCResult RecvPropagateRemove(const nsCString& aHost);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvPropagateRemoveAll() override;
|
||||
mozilla::ipc::IPCResult RecvPropagateRemoveAll();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvShutdown() override;
|
||||
mozilla::ipc::IPCResult RecvShutdown();
|
||||
|
||||
PServiceWorkerUpdaterParent* AllocPServiceWorkerUpdaterParent(
|
||||
const OriginAttributes& aOriginAttributes, const nsCString& aScope);
|
||||
|
@ -27,14 +27,14 @@ class WebAuthnTransactionChild final : public PWebAuthnTransactionChild {
|
||||
|
||||
mozilla::ipc::IPCResult RecvConfirmRegister(
|
||||
const uint64_t& aTransactionId,
|
||||
const WebAuthnMakeCredentialResult& aResult) override;
|
||||
const WebAuthnMakeCredentialResult& aResult);
|
||||
|
||||
mozilla::ipc::IPCResult RecvConfirmSign(
|
||||
const uint64_t& aTransactionId,
|
||||
const WebAuthnGetAssertionResult& aResult) override;
|
||||
const WebAuthnGetAssertionResult& aResult);
|
||||
|
||||
mozilla::ipc::IPCResult RecvAbort(const uint64_t& aTransactionId,
|
||||
const nsresult& aError) override;
|
||||
const nsresult& aError);
|
||||
|
||||
void ActorDestroy(ActorDestroyReason why) override;
|
||||
|
||||
|
@ -23,18 +23,17 @@ class WebAuthnTransactionParent final : public PWebAuthnTransactionParent {
|
||||
NS_INLINE_DECL_REFCOUNTING(WebAuthnTransactionParent);
|
||||
WebAuthnTransactionParent() = default;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRequestRegister(
|
||||
mozilla::ipc::IPCResult RecvRequestRegister(
|
||||
const uint64_t& aTransactionId,
|
||||
const WebAuthnMakeCredentialInfo& aTransactionInfo) override;
|
||||
const WebAuthnMakeCredentialInfo& aTransactionInfo);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRequestSign(
|
||||
mozilla::ipc::IPCResult RecvRequestSign(
|
||||
const uint64_t& aTransactionId,
|
||||
const WebAuthnGetAssertionInfo& aTransactionInfo) override;
|
||||
const WebAuthnGetAssertionInfo& aTransactionInfo);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRequestCancel(
|
||||
const uint64_t& aTransactionId) override;
|
||||
mozilla::ipc::IPCResult RecvRequestCancel(const uint64_t& aTransactionId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDestroyMe() override;
|
||||
mozilla::ipc::IPCResult RecvDestroyMe();
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -24,8 +24,7 @@ class WebBrowserPersistDocumentChild final
|
||||
void Start(nsIWebBrowserPersistDocument* aDocument);
|
||||
void Start(dom::Document* aDocument);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetPersistFlags(
|
||||
const uint32_t& aNewFlags) override;
|
||||
mozilla::ipc::IPCResult RecvSetPersistFlags(const uint32_t& aNewFlags);
|
||||
|
||||
PWebBrowserPersistResourcesChild* AllocPWebBrowserPersistResourcesChild();
|
||||
virtual mozilla::ipc::IPCResult RecvPWebBrowserPersistResourcesConstructor(
|
||||
|
@ -44,10 +44,9 @@ class WebBrowserPersistDocumentParent final
|
||||
using Attrs = WebBrowserPersistDocumentAttrs;
|
||||
|
||||
// IPDL methods:
|
||||
virtual mozilla::ipc::IPCResult RecvAttributes(
|
||||
const Attrs& aAttrs, const OptionalIPCStream& aPostStream) override;
|
||||
virtual mozilla::ipc::IPCResult RecvInitFailure(
|
||||
const nsresult& aFailure) override;
|
||||
mozilla::ipc::IPCResult RecvAttributes(const Attrs& aAttrs,
|
||||
const OptionalIPCStream& aPostStream);
|
||||
mozilla::ipc::IPCResult RecvInitFailure(const nsresult& aFailure);
|
||||
|
||||
PWebBrowserPersistResourcesParent* AllocPWebBrowserPersistResourcesParent();
|
||||
bool DeallocPWebBrowserPersistResourcesParent(
|
||||
|
@ -53,7 +53,7 @@ class RemoteWorkerChild final : public PRemoteWorkerChild {
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
mozilla::ipc::IPCResult RecvExecOp(const RemoteWorkerOp& aOp) override;
|
||||
mozilla::ipc::IPCResult RecvExecOp(const RemoteWorkerOp& aOp);
|
||||
|
||||
void RecvExecOpOnMainThread(const RemoteWorkerOp& aOp);
|
||||
|
||||
|
@ -31,11 +31,11 @@ class RemoteWorkerParent final : public PRemoteWorkerParent {
|
||||
|
||||
void ActorDestroy(mozilla::ipc::IProtocol::ActorDestroyReason) override;
|
||||
|
||||
mozilla::ipc::IPCResult RecvError(const ErrorValue& aValue) override;
|
||||
mozilla::ipc::IPCResult RecvError(const ErrorValue& aValue);
|
||||
|
||||
mozilla::ipc::IPCResult RecvClose() override;
|
||||
mozilla::ipc::IPCResult RecvClose();
|
||||
|
||||
mozilla::ipc::IPCResult RecvCreated(const bool& aStatus) override;
|
||||
mozilla::ipc::IPCResult RecvCreated(const bool& aStatus);
|
||||
|
||||
RefPtr<RemoteWorkerController> mController;
|
||||
};
|
||||
|
@ -38,9 +38,9 @@ class SharedWorkerChild final : public mozilla::dom::PSharedWorkerChild {
|
||||
private:
|
||||
~SharedWorkerChild();
|
||||
|
||||
mozilla::ipc::IPCResult RecvError(const ErrorValue& aValue) override;
|
||||
mozilla::ipc::IPCResult RecvError(const ErrorValue& aValue);
|
||||
|
||||
mozilla::ipc::IPCResult RecvTerminate() override;
|
||||
mozilla::ipc::IPCResult RecvTerminate();
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -32,15 +32,15 @@ class SharedWorkerParent final : public mozilla::dom::PSharedWorkerParent {
|
||||
|
||||
void ErrorPropagation(nsresult aError);
|
||||
|
||||
mozilla::ipc::IPCResult RecvClose() override;
|
||||
mozilla::ipc::IPCResult RecvClose();
|
||||
|
||||
mozilla::ipc::IPCResult RecvSuspend() override;
|
||||
mozilla::ipc::IPCResult RecvSuspend();
|
||||
|
||||
mozilla::ipc::IPCResult RecvResume() override;
|
||||
mozilla::ipc::IPCResult RecvResume();
|
||||
|
||||
mozilla::ipc::IPCResult RecvFreeze() override;
|
||||
mozilla::ipc::IPCResult RecvFreeze();
|
||||
|
||||
mozilla::ipc::IPCResult RecvThaw() override;
|
||||
mozilla::ipc::IPCResult RecvThaw();
|
||||
|
||||
bool IsSuspended() const { return mSuspended; }
|
||||
|
||||
|
@ -21,21 +21,20 @@ class RemoteSpellcheckEngineParent : public PRemoteSpellcheckEngineParent {
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetDictionary(const nsString& aDictionary,
|
||||
bool* success) override;
|
||||
bool* success);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSetDictionaryFromList(
|
||||
nsTArray<nsString>&& aList,
|
||||
SetDictionaryFromListResolver&& aResolve) override;
|
||||
nsTArray<nsString>&& aList, SetDictionaryFromListResolver&& aResolve);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCheck(const nsString& aWord,
|
||||
bool* aIsMisspelled) override;
|
||||
bool* aIsMisspelled);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCheckAsync(
|
||||
nsTArray<nsString>&& aWord, CheckAsyncResolver&& aResolve) override;
|
||||
virtual mozilla::ipc::IPCResult RecvCheckAsync(nsTArray<nsString>&& aWord,
|
||||
CheckAsyncResolver&& aResolve);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCheckAndSuggest(
|
||||
const nsString& aWord, bool* aIsMisspelled,
|
||||
InfallibleTArray<nsString>* aSuggestions) override;
|
||||
InfallibleTArray<nsString>* aSuggestions);
|
||||
|
||||
private:
|
||||
RefPtr<mozSpellChecker> mSpellChecker;
|
||||
|
@ -42,43 +42,38 @@ class GPUChild final : public PGPUChild, public gfxVarReceiver {
|
||||
void OnVarChanged(const GfxVarUpdate& aVar) override;
|
||||
|
||||
// PGPUChild overrides.
|
||||
mozilla::ipc::IPCResult RecvInitComplete(const GPUDeviceData& aData) override;
|
||||
mozilla::ipc::IPCResult RecvReportCheckerboard(
|
||||
const uint32_t& aSeverity, const nsCString& aLog) override;
|
||||
mozilla::ipc::IPCResult RecvInitComplete(const GPUDeviceData& aData);
|
||||
mozilla::ipc::IPCResult RecvReportCheckerboard(const uint32_t& aSeverity,
|
||||
const nsCString& aLog);
|
||||
mozilla::ipc::IPCResult RecvInitCrashReporter(
|
||||
Shmem&& shmem, const NativeThreadId& aThreadId) override;
|
||||
mozilla::ipc::IPCResult RecvCreateVRProcess() override;
|
||||
mozilla::ipc::IPCResult RecvShutdownVRProcess() override;
|
||||
Shmem&& shmem, const NativeThreadId& aThreadId);
|
||||
mozilla::ipc::IPCResult RecvCreateVRProcess();
|
||||
mozilla::ipc::IPCResult RecvShutdownVRProcess();
|
||||
|
||||
mozilla::ipc::IPCResult RecvAccumulateChildHistograms(
|
||||
InfallibleTArray<HistogramAccumulation>&& aAccumulations) override;
|
||||
InfallibleTArray<HistogramAccumulation>&& aAccumulations);
|
||||
mozilla::ipc::IPCResult RecvAccumulateChildKeyedHistograms(
|
||||
InfallibleTArray<KeyedHistogramAccumulation>&& aAccumulations) override;
|
||||
InfallibleTArray<KeyedHistogramAccumulation>&& aAccumulations);
|
||||
mozilla::ipc::IPCResult RecvUpdateChildScalars(
|
||||
InfallibleTArray<ScalarAction>&& aScalarActions) override;
|
||||
InfallibleTArray<ScalarAction>&& aScalarActions);
|
||||
mozilla::ipc::IPCResult RecvUpdateChildKeyedScalars(
|
||||
InfallibleTArray<KeyedScalarAction>&& aScalarActions) override;
|
||||
InfallibleTArray<KeyedScalarAction>&& aScalarActions);
|
||||
mozilla::ipc::IPCResult RecvRecordChildEvents(
|
||||
nsTArray<ChildEventData>&& events) override;
|
||||
nsTArray<ChildEventData>&& events);
|
||||
mozilla::ipc::IPCResult RecvRecordDiscardedData(
|
||||
const DiscardedData& aDiscardedData) override;
|
||||
const DiscardedData& aDiscardedData);
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
mozilla::ipc::IPCResult RecvGraphicsError(const nsCString& aError) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyUiObservers(
|
||||
const nsCString& aTopic) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyDeviceReset(
|
||||
const GPUDeviceData& aData) override;
|
||||
mozilla::ipc::IPCResult RecvAddMemoryReport(
|
||||
const MemoryReport& aReport) override;
|
||||
mozilla::ipc::IPCResult RecvFinishMemoryReport(
|
||||
const uint32_t& aGeneration) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateFeature(
|
||||
const Feature& aFeature, const FeatureFailure& aChange) override;
|
||||
mozilla::ipc::IPCResult RecvGraphicsError(const nsCString& aError);
|
||||
mozilla::ipc::IPCResult RecvNotifyUiObservers(const nsCString& aTopic);
|
||||
mozilla::ipc::IPCResult RecvNotifyDeviceReset(const GPUDeviceData& aData);
|
||||
mozilla::ipc::IPCResult RecvAddMemoryReport(const MemoryReport& aReport);
|
||||
mozilla::ipc::IPCResult RecvFinishMemoryReport(const uint32_t& aGeneration);
|
||||
mozilla::ipc::IPCResult RecvUpdateFeature(const Feature& aFeature,
|
||||
const FeatureFailure& aChange);
|
||||
mozilla::ipc::IPCResult RecvUsedFallback(const Fallback& aFallback,
|
||||
const nsCString& aMessage) override;
|
||||
mozilla::ipc::IPCResult RecvBHRThreadHang(
|
||||
const HangDetails& aDetails) override;
|
||||
const nsCString& aMessage);
|
||||
mozilla::ipc::IPCResult RecvBHRThreadHang(const HangDetails& aDetails);
|
||||
|
||||
bool SendRequestMemoryReport(const uint32_t& aGeneration,
|
||||
const bool& aAnonymize,
|
||||
|
@ -37,49 +37,45 @@ class GPUParent final : public PGPUParent {
|
||||
PAPZInputBridgeParent* AllocPAPZInputBridgeParent(const LayersId& aLayersId);
|
||||
bool DeallocPAPZInputBridgeParent(PAPZInputBridgeParent* aActor);
|
||||
|
||||
mozilla::ipc::IPCResult RecvInit(
|
||||
nsTArray<GfxPrefSetting>&& prefs, nsTArray<GfxVarUpdate>&& vars,
|
||||
const DevicePrefs& devicePrefs,
|
||||
nsTArray<LayerTreeIdMapping>&& mappings) override;
|
||||
mozilla::ipc::IPCResult RecvInit(nsTArray<GfxPrefSetting>&& prefs,
|
||||
nsTArray<GfxVarUpdate>&& vars,
|
||||
const DevicePrefs& devicePrefs,
|
||||
nsTArray<LayerTreeIdMapping>&& mappings);
|
||||
mozilla::ipc::IPCResult RecvInitCompositorManager(
|
||||
Endpoint<PCompositorManagerParent>&& aEndpoint) override;
|
||||
Endpoint<PCompositorManagerParent>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvInitVsyncBridge(
|
||||
Endpoint<PVsyncBridgeParent>&& aVsyncEndpoint) override;
|
||||
Endpoint<PVsyncBridgeParent>&& aVsyncEndpoint);
|
||||
mozilla::ipc::IPCResult RecvInitImageBridge(
|
||||
Endpoint<PImageBridgeParent>&& aEndpoint) override;
|
||||
Endpoint<PImageBridgeParent>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvInitVRManager(
|
||||
Endpoint<PVRManagerParent>&& aEndpoint) override;
|
||||
mozilla::ipc::IPCResult RecvInitVR(
|
||||
Endpoint<PVRGPUChild>&& aVRGPUChild) override;
|
||||
Endpoint<PVRManagerParent>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvInitVR(Endpoint<PVRGPUChild>&& aVRGPUChild);
|
||||
mozilla::ipc::IPCResult RecvInitUiCompositorController(
|
||||
const LayersId& aRootLayerTreeId,
|
||||
Endpoint<PUiCompositorControllerParent>&& aEndpoint) override;
|
||||
Endpoint<PUiCompositorControllerParent>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvInitProfiler(
|
||||
Endpoint<PProfilerChild>&& aEndpoint) override;
|
||||
mozilla::ipc::IPCResult RecvUpdatePref(const GfxPrefSetting& pref) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateVar(const GfxVarUpdate& pref) override;
|
||||
Endpoint<PProfilerChild>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvUpdatePref(const GfxPrefSetting& pref);
|
||||
mozilla::ipc::IPCResult RecvUpdateVar(const GfxVarUpdate& pref);
|
||||
mozilla::ipc::IPCResult RecvNewContentCompositorManager(
|
||||
Endpoint<PCompositorManagerParent>&& aEndpoint) override;
|
||||
Endpoint<PCompositorManagerParent>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvNewContentImageBridge(
|
||||
Endpoint<PImageBridgeParent>&& aEndpoint) override;
|
||||
Endpoint<PImageBridgeParent>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvNewContentVRManager(
|
||||
Endpoint<PVRManagerParent>&& aEndpoint) override;
|
||||
Endpoint<PVRManagerParent>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvNewContentVideoDecoderManager(
|
||||
Endpoint<PVideoDecoderManagerParent>&& aEndpoint) override;
|
||||
mozilla::ipc::IPCResult RecvGetDeviceStatus(
|
||||
GPUDeviceData* aOutStatus) override;
|
||||
mozilla::ipc::IPCResult RecvSimulateDeviceReset(
|
||||
GPUDeviceData* aOutStatus) override;
|
||||
Endpoint<PVideoDecoderManagerParent>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvGetDeviceStatus(GPUDeviceData* aOutStatus);
|
||||
mozilla::ipc::IPCResult RecvSimulateDeviceReset(GPUDeviceData* aOutStatus);
|
||||
mozilla::ipc::IPCResult RecvAddLayerTreeIdMapping(
|
||||
const LayerTreeIdMapping& aMapping) override;
|
||||
const LayerTreeIdMapping& aMapping);
|
||||
mozilla::ipc::IPCResult RecvRemoveLayerTreeIdMapping(
|
||||
const LayerTreeIdMapping& aMapping) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyGpuObservers(
|
||||
const nsCString& aTopic) override;
|
||||
const LayerTreeIdMapping& aMapping);
|
||||
mozilla::ipc::IPCResult RecvNotifyGpuObservers(const nsCString& aTopic);
|
||||
mozilla::ipc::IPCResult RecvRequestMemoryReport(
|
||||
const uint32_t& generation, const bool& anonymize,
|
||||
const bool& minimizeMemoryUsage, const MaybeFileDesc& DMDFile) override;
|
||||
mozilla::ipc::IPCResult RecvShutdownVR() override;
|
||||
const bool& minimizeMemoryUsage, const MaybeFileDesc& DMDFile);
|
||||
mozilla::ipc::IPCResult RecvShutdownVR();
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -24,7 +24,7 @@ class VsyncBridgeParent final : public PVsyncBridgeParent {
|
||||
Endpoint<PVsyncBridgeParent>&& aEndpoint);
|
||||
|
||||
mozilla::ipc::IPCResult RecvNotifyVsync(const VsyncEvent& aVsync,
|
||||
const LayersId& aLayersId) override;
|
||||
const LayersId& aLayersId);
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
void DeallocPVsyncBridgeParent() override;
|
||||
|
||||
|
@ -70,15 +70,14 @@ class APZCTreeManagerChild : public IAPZCTreeManager,
|
||||
const LayoutDevicePoint& aPoint,
|
||||
const Modifiers& aModifiers,
|
||||
const ScrollableLayerGuid& aGuid,
|
||||
const uint64_t& aInputBlockId) override;
|
||||
const uint64_t& aInputBlockId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvNotifyPinchGesture(
|
||||
const PinchGestureType& aType, const ScrollableLayerGuid& aGuid,
|
||||
const LayoutDeviceCoord& aSpanChange,
|
||||
const Modifiers& aModifiers) override;
|
||||
const LayoutDeviceCoord& aSpanChange, const Modifiers& aModifiers);
|
||||
|
||||
mozilla::ipc::IPCResult RecvCancelAutoscroll(
|
||||
const ScrollableLayerGuid::ViewID& aScrollId) override;
|
||||
const ScrollableLayerGuid::ViewID& aScrollId);
|
||||
|
||||
virtual ~APZCTreeManagerChild();
|
||||
|
||||
|
@ -31,43 +31,36 @@ class APZCTreeManagerParent : public PAPZCTreeManagerParent {
|
||||
void ChildAdopted(RefPtr<APZCTreeManager> aAPZCTreeManager,
|
||||
RefPtr<APZUpdater> aAPZUpdater);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetKeyboardMap(
|
||||
const KeyboardMap& aKeyboardMap) override;
|
||||
mozilla::ipc::IPCResult RecvSetKeyboardMap(const KeyboardMap& aKeyboardMap);
|
||||
|
||||
mozilla::ipc::IPCResult RecvZoomToRect(const ScrollableLayerGuid& aGuid,
|
||||
const CSSRect& aRect,
|
||||
const uint32_t& aFlags) override;
|
||||
const uint32_t& aFlags);
|
||||
|
||||
mozilla::ipc::IPCResult RecvContentReceivedInputBlock(
|
||||
const uint64_t& aInputBlockId, const bool& aPreventDefault) override;
|
||||
const uint64_t& aInputBlockId, const bool& aPreventDefault);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetTargetAPZC(
|
||||
const uint64_t& aInputBlockId,
|
||||
nsTArray<ScrollableLayerGuid>&& aTargets) override;
|
||||
const uint64_t& aInputBlockId, nsTArray<ScrollableLayerGuid>&& aTargets);
|
||||
|
||||
mozilla::ipc::IPCResult RecvUpdateZoomConstraints(
|
||||
const ScrollableLayerGuid& aGuid,
|
||||
const MaybeZoomConstraints& aConstraints) override;
|
||||
const MaybeZoomConstraints& aConstraints);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetDPI(const float& aDpiValue) override;
|
||||
mozilla::ipc::IPCResult RecvSetDPI(const float& aDpiValue);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetAllowedTouchBehavior(
|
||||
const uint64_t& aInputBlockId,
|
||||
nsTArray<TouchBehaviorFlags>&& aValues) override;
|
||||
const uint64_t& aInputBlockId, nsTArray<TouchBehaviorFlags>&& aValues);
|
||||
|
||||
mozilla::ipc::IPCResult RecvStartScrollbarDrag(
|
||||
const ScrollableLayerGuid& aGuid,
|
||||
const AsyncDragMetrics& aDragMetrics) override;
|
||||
const ScrollableLayerGuid& aGuid, const AsyncDragMetrics& aDragMetrics);
|
||||
|
||||
mozilla::ipc::IPCResult RecvStartAutoscroll(
|
||||
const ScrollableLayerGuid& aGuid,
|
||||
const ScreenPoint& aAnchorLocation) override;
|
||||
const ScrollableLayerGuid& aGuid, const ScreenPoint& aAnchorLocation);
|
||||
|
||||
mozilla::ipc::IPCResult RecvStopAutoscroll(
|
||||
const ScrollableLayerGuid& aGuid) override;
|
||||
mozilla::ipc::IPCResult RecvStopAutoscroll(const ScrollableLayerGuid& aGuid);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetLongTapEnabled(
|
||||
const bool& aTapGestureEnabled) override;
|
||||
mozilla::ipc::IPCResult RecvSetLongTapEnabled(const bool& aTapGestureEnabled);
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override {}
|
||||
|
||||
|
@ -25,33 +25,33 @@ class APZChild final : public PAPZChild {
|
||||
~APZChild();
|
||||
|
||||
mozilla::ipc::IPCResult RecvRequestContentRepaint(
|
||||
const RepaintRequest& aRequest) override;
|
||||
const RepaintRequest& aRequest);
|
||||
|
||||
mozilla::ipc::IPCResult RecvUpdateOverscrollVelocity(
|
||||
const float& aX, const float& aY, const bool& aIsRootContent) override;
|
||||
const float& aX, const float& aY, const bool& aIsRootContent);
|
||||
|
||||
mozilla::ipc::IPCResult RecvUpdateOverscrollOffset(
|
||||
const float& aX, const float& aY, const bool& aIsRootContent) override;
|
||||
const float& aX, const float& aY, const bool& aIsRootContent);
|
||||
|
||||
mozilla::ipc::IPCResult RecvNotifyMozMouseScrollEvent(
|
||||
const ViewID& aScrollId, const nsString& aEvent) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyMozMouseScrollEvent(const ViewID& aScrollId,
|
||||
const nsString& aEvent);
|
||||
|
||||
mozilla::ipc::IPCResult RecvNotifyAPZStateChange(
|
||||
const ScrollableLayerGuid& aGuid, const APZStateChange& aChange,
|
||||
const int& aArg) override;
|
||||
const int& aArg);
|
||||
|
||||
mozilla::ipc::IPCResult RecvNotifyFlushComplete() override;
|
||||
mozilla::ipc::IPCResult RecvNotifyFlushComplete();
|
||||
|
||||
mozilla::ipc::IPCResult RecvNotifyAsyncScrollbarDragInitiated(
|
||||
const uint64_t& aDragBlockId, const ViewID& aScrollId,
|
||||
const ScrollDirection& aDirection) override;
|
||||
const ScrollDirection& aDirection);
|
||||
mozilla::ipc::IPCResult RecvNotifyAsyncScrollbarDragRejected(
|
||||
const ViewID& aScrollId) override;
|
||||
const ViewID& aScrollId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvNotifyAsyncAutoscrollRejected(
|
||||
const ViewID& aScrollId) override;
|
||||
const ViewID& aScrollId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvDestroy() override;
|
||||
mozilla::ipc::IPCResult RecvDestroy();
|
||||
|
||||
private:
|
||||
RefPtr<GeckoContentController> mController;
|
||||
|
@ -23,46 +23,44 @@ class APZInputBridgeParent : public PAPZInputBridgeParent {
|
||||
mozilla::ipc::IPCResult RecvReceiveMultiTouchInputEvent(
|
||||
const MultiTouchInput& aEvent, nsEventStatus* aOutStatus,
|
||||
MultiTouchInput* aOutEvent, ScrollableLayerGuid* aOutTargetGuid,
|
||||
uint64_t* aOutInputBlockId) override;
|
||||
uint64_t* aOutInputBlockId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvReceiveMouseInputEvent(
|
||||
const MouseInput& aEvent, nsEventStatus* aOutStatus,
|
||||
MouseInput* aOutEvent, ScrollableLayerGuid* aOutTargetGuid,
|
||||
uint64_t* aOutInputBlockId) override;
|
||||
uint64_t* aOutInputBlockId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvReceivePanGestureInputEvent(
|
||||
const PanGestureInput& aEvent, nsEventStatus* aOutStatus,
|
||||
PanGestureInput* aOutEvent, ScrollableLayerGuid* aOutTargetGuid,
|
||||
uint64_t* aOutInputBlockId) override;
|
||||
uint64_t* aOutInputBlockId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvReceivePinchGestureInputEvent(
|
||||
const PinchGestureInput& aEvent, nsEventStatus* aOutStatus,
|
||||
PinchGestureInput* aOutEvent, ScrollableLayerGuid* aOutTargetGuid,
|
||||
uint64_t* aOutInputBlockId) override;
|
||||
uint64_t* aOutInputBlockId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvReceiveTapGestureInputEvent(
|
||||
const TapGestureInput& aEvent, nsEventStatus* aOutStatus,
|
||||
TapGestureInput* aOutEvent, ScrollableLayerGuid* aOutTargetGuid,
|
||||
uint64_t* aOutInputBlockId) override;
|
||||
uint64_t* aOutInputBlockId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvReceiveScrollWheelInputEvent(
|
||||
const ScrollWheelInput& aEvent, nsEventStatus* aOutStatus,
|
||||
ScrollWheelInput* aOutEvent, ScrollableLayerGuid* aOutTargetGuid,
|
||||
uint64_t* aOutInputBlockId) override;
|
||||
uint64_t* aOutInputBlockId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvReceiveKeyboardInputEvent(
|
||||
const KeyboardInput& aEvent, nsEventStatus* aOutStatus,
|
||||
KeyboardInput* aOutEvent, ScrollableLayerGuid* aOutTargetGuid,
|
||||
uint64_t* aOutInputBlockId) override;
|
||||
uint64_t* aOutInputBlockId);
|
||||
|
||||
mozilla::ipc::IPCResult RecvUpdateWheelTransaction(
|
||||
const LayoutDeviceIntPoint& aRefPoint,
|
||||
const EventMessage& aEventMessage) override;
|
||||
const LayoutDeviceIntPoint& aRefPoint, const EventMessage& aEventMessage);
|
||||
|
||||
mozilla::ipc::IPCResult RecvProcessUnhandledEvent(
|
||||
const LayoutDeviceIntPoint& aRefPoint, LayoutDeviceIntPoint* aOutRefPoint,
|
||||
ScrollableLayerGuid* aOutTargetGuid,
|
||||
uint64_t* aOutFocusSequenceNumber) override;
|
||||
ScrollableLayerGuid* aOutTargetGuid, uint64_t* aOutFocusSequenceNumber);
|
||||
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
|
@ -86,27 +86,24 @@ class CompositorBridgeChild final : public PCompositorBridgeChild,
|
||||
// process). This may only be called on the main thread.
|
||||
static bool CompositorIsInGPUProcess();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDidComposite(
|
||||
const LayersId& aId, const TransactionId& aTransactionId,
|
||||
const TimeStamp& aCompositeStart,
|
||||
const TimeStamp& aCompositeEnd) override;
|
||||
mozilla::ipc::IPCResult RecvDidComposite(const LayersId& aId,
|
||||
const TransactionId& aTransactionId,
|
||||
const TimeStamp& aCompositeStart,
|
||||
const TimeStamp& aCompositeEnd);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyFrameStats(
|
||||
nsTArray<FrameStats>&& aFrameStats) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyFrameStats(
|
||||
nsTArray<FrameStats>&& aFrameStats);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvInvalidateLayers(
|
||||
const LayersId& aLayersId) override;
|
||||
mozilla::ipc::IPCResult RecvInvalidateLayers(const LayersId& aLayersId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUpdatePluginConfigurations(
|
||||
mozilla::ipc::IPCResult RecvUpdatePluginConfigurations(
|
||||
const LayoutDeviceIntPoint& aContentOffset,
|
||||
const LayoutDeviceIntRegion& aVisibleRegion,
|
||||
nsTArray<PluginWindowData>&& aPlugins) override;
|
||||
nsTArray<PluginWindowData>&& aPlugins);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvCaptureAllPlugins(
|
||||
const uintptr_t& aParentWidget) override;
|
||||
mozilla::ipc::IPCResult RecvCaptureAllPlugins(const uintptr_t& aParentWidget);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvHideAllPlugins(
|
||||
const uintptr_t& aParentWidget) override;
|
||||
mozilla::ipc::IPCResult RecvHideAllPlugins(const uintptr_t& aParentWidget);
|
||||
|
||||
PTextureChild* AllocPTextureChild(
|
||||
const SurfaceDescriptor& aSharedData, const ReadLockDescriptor& aReadLock,
|
||||
@ -116,8 +113,8 @@ class CompositorBridgeChild final : public PCompositorBridgeChild,
|
||||
|
||||
bool DeallocPTextureChild(PTextureChild* actor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvParentAsyncMessages(
|
||||
InfallibleTArray<AsyncParentMessageData>&& aMessages) override;
|
||||
mozilla::ipc::IPCResult RecvParentAsyncMessages(
|
||||
InfallibleTArray<AsyncParentMessageData>&& aMessages);
|
||||
virtual PTextureChild* CreateTexture(
|
||||
const SurfaceDescriptor& aSharedData, const ReadLockDescriptor& aReadLock,
|
||||
LayersBackend aLayersBackend, TextureFlags aFlags, uint64_t aSerial,
|
||||
@ -270,22 +267,22 @@ class CompositorBridgeChild final : public PCompositorBridgeChild,
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvSharedCompositorFrameMetrics(
|
||||
mozilla::ipc::IPCResult RecvSharedCompositorFrameMetrics(
|
||||
const mozilla::ipc::SharedMemoryBasic::Handle& metrics,
|
||||
const CrossProcessMutexHandle& handle, const LayersId& aLayersId,
|
||||
const uint32_t& aAPZCId) override;
|
||||
const uint32_t& aAPZCId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvReleaseSharedCompositorFrameMetrics(
|
||||
const ViewID& aId, const uint32_t& aAPZCId) override;
|
||||
mozilla::ipc::IPCResult RecvReleaseSharedCompositorFrameMetrics(
|
||||
const ViewID& aId, const uint32_t& aAPZCId);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRemotePaintIsReady() override;
|
||||
mozilla::ipc::IPCResult RecvRemotePaintIsReady();
|
||||
|
||||
mozilla::ipc::IPCResult RecvObserveLayersUpdate(
|
||||
const LayersId& aLayersId, const LayersObserverEpoch& aEpoch,
|
||||
const bool& aActive) override;
|
||||
const bool& aActive);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyWebRenderError(
|
||||
const WebRenderError& aError) override;
|
||||
mozilla::ipc::IPCResult RecvNotifyWebRenderError(
|
||||
const WebRenderError& aError);
|
||||
|
||||
uint64_t GetNextResourceId();
|
||||
|
||||
|
@ -148,7 +148,7 @@ class CompositorBridgeParentBase : public PCompositorBridgeParent,
|
||||
return this;
|
||||
}
|
||||
|
||||
mozilla::ipc::IPCResult RecvSyncWithCompositor() override { return IPC_OK(); }
|
||||
mozilla::ipc::IPCResult RecvSyncWithCompositor() { return IPC_OK(); }
|
||||
|
||||
mozilla::ipc::IPCResult Recv__delete__() override { return IPC_OK(); }
|
||||
|
||||
@ -230,6 +230,39 @@ class CompositorBridgeParentBase : public PCompositorBridgeParent,
|
||||
virtual bool DeallocPCompositorWidgetParent(
|
||||
PCompositorWidgetParent* aActor) = 0;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRemotePluginsReady() = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvAdoptChild(const LayersId& id) = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvFlushRenderingAsync() = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvForcePresent() = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyRegionInvalidated(
|
||||
const nsIntRegion& region) = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvRequestNotifyAfterRemotePaint() = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvAllPluginsCaptured() = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvInitialize(
|
||||
const LayersId& rootLayerTreeId) = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvGetFrameUniformity(
|
||||
FrameUniformityData* data) = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvWillClose() = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvPause() = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvResume() = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyChildCreated(
|
||||
const LayersId& id, CompositorOptions* compositorOptions) = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvMapAndNotifyChildCreated(
|
||||
const LayersId& id, const ProcessId& owner,
|
||||
CompositorOptions* compositorOptions) = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyChildRecreated(
|
||||
const LayersId& id, CompositorOptions* compositorOptions) = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvMakeSnapshot(
|
||||
const SurfaceDescriptor& inSnapshot, const IntRect& dirtyRect) = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvFlushRendering() = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvWaitOnTransactionProcessed() = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvStartFrameTimeRecording(
|
||||
const int32_t& bufferSize, uint32_t* startIndex) = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvStopFrameTimeRecording(
|
||||
const uint32_t& startIndex, nsTArray<float>* intervals) = 0;
|
||||
virtual mozilla::ipc::IPCResult RecvCheckContentOnlyTDR(
|
||||
const uint32_t& sequenceNum, bool* isContentOnlyTDR) = 0;
|
||||
|
||||
bool mCanSend;
|
||||
|
||||
private:
|
||||
|
@ -40,17 +40,15 @@ class CompositorManagerParent final : public PCompositorManagerParent {
|
||||
const gfx::IntSize& aSurfaceSize);
|
||||
|
||||
mozilla::ipc::IPCResult RecvAddSharedSurface(
|
||||
const wr::ExternalImageId& aId,
|
||||
const SurfaceDescriptorShared& aDesc) override;
|
||||
const wr::ExternalImageId& aId, const SurfaceDescriptorShared& aDesc);
|
||||
mozilla::ipc::IPCResult RecvRemoveSharedSurface(
|
||||
const wr::ExternalImageId& aId) override;
|
||||
const wr::ExternalImageId& aId);
|
||||
mozilla::ipc::IPCResult RecvReportSharedSurfacesMemory(
|
||||
ReportSharedSurfacesMemoryResolver&&) override;
|
||||
ReportSharedSurfacesMemoryResolver&&);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyMemoryPressure() override;
|
||||
mozilla::ipc::IPCResult RecvNotifyMemoryPressure();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvReportMemory(
|
||||
ReportMemoryResolver&&) override;
|
||||
mozilla::ipc::IPCResult RecvReportMemory(ReportMemoryResolver&&);
|
||||
|
||||
void BindComplete();
|
||||
void ActorDestroy(ActorDestroyReason aReason) override;
|
||||
|
@ -191,14 +191,14 @@ class ImageBridgeChild final : public PImageBridgeChild,
|
||||
bool DeallocPMediaSystemResourceManagerChild(
|
||||
PMediaSystemResourceManagerChild* aActor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvParentAsyncMessages(
|
||||
InfallibleTArray<AsyncParentMessageData>&& aMessages) override;
|
||||
mozilla::ipc::IPCResult RecvParentAsyncMessages(
|
||||
InfallibleTArray<AsyncParentMessageData>&& aMessages);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDidComposite(
|
||||
InfallibleTArray<ImageCompositeNotification>&& aNotifications) override;
|
||||
mozilla::ipc::IPCResult RecvDidComposite(
|
||||
InfallibleTArray<ImageCompositeNotification>&& aNotifications);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvReportFramesDropped(
|
||||
const CompositableHandle& aHandle, const uint32_t& aFrames) override;
|
||||
mozilla::ipc::IPCResult RecvReportFramesDropped(
|
||||
const CompositableHandle& aHandle, const uint32_t& aFrames);
|
||||
|
||||
// Create an ImageClient from any thread.
|
||||
RefPtr<ImageClient> CreateImageClient(CompositableType aType,
|
||||
|
@ -74,9 +74,9 @@ class ImageBridgeParent final : public PImageBridgeParent,
|
||||
virtual base::ProcessId GetChildProcessId() override { return OtherPid(); }
|
||||
|
||||
// PImageBridge
|
||||
virtual mozilla::ipc::IPCResult RecvUpdate(
|
||||
EditArray&& aEdits, OpDestroyArray&& aToDestroy,
|
||||
const uint64_t& aFwdTransactionId) override;
|
||||
mozilla::ipc::IPCResult RecvUpdate(EditArray&& aEdits,
|
||||
OpDestroyArray&& aToDestroy,
|
||||
const uint64_t& aFwdTransactionId);
|
||||
|
||||
PTextureParent* AllocPTextureParent(
|
||||
const SurfaceDescriptor& aSharedData, const ReadLockDescriptor& aReadLock,
|
||||
@ -85,18 +85,18 @@ class ImageBridgeParent final : public PImageBridgeParent,
|
||||
const wr::MaybeExternalImageId& aExternalImageId);
|
||||
bool DeallocPTextureParent(PTextureParent* actor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNewCompositable(
|
||||
mozilla::ipc::IPCResult RecvNewCompositable(
|
||||
const CompositableHandle& aHandle, const TextureInfo& aInfo,
|
||||
const LayersBackend& aLayersBackend) override;
|
||||
virtual mozilla::ipc::IPCResult RecvReleaseCompositable(
|
||||
const CompositableHandle& aHandle) override;
|
||||
const LayersBackend& aLayersBackend);
|
||||
mozilla::ipc::IPCResult RecvReleaseCompositable(
|
||||
const CompositableHandle& aHandle);
|
||||
|
||||
PMediaSystemResourceManagerParent* AllocPMediaSystemResourceManagerParent();
|
||||
bool DeallocPMediaSystemResourceManagerParent(
|
||||
PMediaSystemResourceManagerParent* aActor);
|
||||
|
||||
// Shutdown step 1
|
||||
virtual mozilla::ipc::IPCResult RecvWillClose() override;
|
||||
mozilla::ipc::IPCResult RecvWillClose();
|
||||
|
||||
MessageLoop* GetMessageLoop() const { return mMessageLoop; }
|
||||
|
||||
|
@ -97,48 +97,43 @@ class LayerTransactionParent final : public PLayerTransactionParent,
|
||||
base::ProcessId GetChildProcessId() override { return OtherPid(); }
|
||||
|
||||
protected:
|
||||
mozilla::ipc::IPCResult RecvShutdown() override;
|
||||
mozilla::ipc::IPCResult RecvShutdownSync() override;
|
||||
mozilla::ipc::IPCResult RecvShutdown();
|
||||
mozilla::ipc::IPCResult RecvShutdownSync();
|
||||
|
||||
mozilla::ipc::IPCResult RecvPaintTime(
|
||||
const TransactionId& aTransactionId,
|
||||
const TimeDuration& aPaintTime) override;
|
||||
mozilla::ipc::IPCResult RecvPaintTime(const TransactionId& aTransactionId,
|
||||
const TimeDuration& aPaintTime);
|
||||
|
||||
mozilla::ipc::IPCResult RecvUpdate(const TransactionInfo& aInfo) override;
|
||||
mozilla::ipc::IPCResult RecvUpdate(const TransactionInfo& aInfo);
|
||||
|
||||
mozilla::ipc::IPCResult RecvSetLayersObserverEpoch(
|
||||
const LayersObserverEpoch& aChildEpoch) override;
|
||||
mozilla::ipc::IPCResult RecvNewCompositable(
|
||||
const CompositableHandle& aHandle, const TextureInfo& aInfo) override;
|
||||
mozilla::ipc::IPCResult RecvReleaseLayer(const LayerHandle& aHandle) override;
|
||||
const LayersObserverEpoch& aChildEpoch);
|
||||
mozilla::ipc::IPCResult RecvNewCompositable(const CompositableHandle& aHandle,
|
||||
const TextureInfo& aInfo);
|
||||
mozilla::ipc::IPCResult RecvReleaseLayer(const LayerHandle& aHandle);
|
||||
mozilla::ipc::IPCResult RecvReleaseCompositable(
|
||||
const CompositableHandle& aHandle) override;
|
||||
const CompositableHandle& aHandle);
|
||||
|
||||
mozilla::ipc::IPCResult RecvClearCachedResources() override;
|
||||
mozilla::ipc::IPCResult RecvScheduleComposite() override;
|
||||
mozilla::ipc::IPCResult RecvSetTestSampleTime(
|
||||
const TimeStamp& aTime) override;
|
||||
mozilla::ipc::IPCResult RecvLeaveTestMode() override;
|
||||
mozilla::ipc::IPCResult RecvClearCachedResources();
|
||||
mozilla::ipc::IPCResult RecvScheduleComposite();
|
||||
mozilla::ipc::IPCResult RecvSetTestSampleTime(const TimeStamp& aTime);
|
||||
mozilla::ipc::IPCResult RecvLeaveTestMode();
|
||||
mozilla::ipc::IPCResult RecvGetAnimationValue(
|
||||
const uint64_t& aCompositorAnimationsId, OMTAValue* aValue) override;
|
||||
const uint64_t& aCompositorAnimationsId, OMTAValue* aValue);
|
||||
mozilla::ipc::IPCResult RecvGetTransform(const LayerHandle& aHandle,
|
||||
MaybeTransform* aTransform) override;
|
||||
MaybeTransform* aTransform);
|
||||
mozilla::ipc::IPCResult RecvSetAsyncScrollOffset(
|
||||
const ScrollableLayerGuid::ViewID& aId, const float& aX,
|
||||
const float& aY) override;
|
||||
const ScrollableLayerGuid::ViewID& aId, const float& aX, const float& aY);
|
||||
mozilla::ipc::IPCResult RecvSetAsyncZoom(
|
||||
const ScrollableLayerGuid::ViewID& aId, const float& aValue) override;
|
||||
mozilla::ipc::IPCResult RecvFlushApzRepaints() override;
|
||||
mozilla::ipc::IPCResult RecvGetAPZTestData(APZTestData* aOutData) override;
|
||||
const ScrollableLayerGuid::ViewID& aId, const float& aValue);
|
||||
mozilla::ipc::IPCResult RecvFlushApzRepaints();
|
||||
mozilla::ipc::IPCResult RecvGetAPZTestData(APZTestData* aOutData);
|
||||
mozilla::ipc::IPCResult RecvRequestProperty(const nsString& aProperty,
|
||||
float* aValue) override;
|
||||
float* aValue);
|
||||
mozilla::ipc::IPCResult RecvSetConfirmedTargetAPZC(
|
||||
const uint64_t& aBlockId,
|
||||
nsTArray<ScrollableLayerGuid>&& aTargets) override;
|
||||
mozilla::ipc::IPCResult RecvRecordPaintTimes(
|
||||
const PaintTiming& aTiming) override;
|
||||
const uint64_t& aBlockId, nsTArray<ScrollableLayerGuid>&& aTargets);
|
||||
mozilla::ipc::IPCResult RecvRecordPaintTimes(const PaintTiming& aTiming);
|
||||
mozilla::ipc::IPCResult RecvGetTextureFactoryIdentifier(
|
||||
TextureFactoryIdentifier* aIdentifier) override;
|
||||
TextureFactoryIdentifier* aIdentifier);
|
||||
|
||||
bool SetLayerAttributes(const OpSetLayerAttributes& aOp);
|
||||
|
||||
|
@ -58,11 +58,11 @@ class UiCompositorControllerChild final
|
||||
void ProcessingError(Result aCode, const char* aReason) override;
|
||||
virtual void HandleFatalError(const char* aMsg) const override;
|
||||
mozilla::ipc::IPCResult RecvToolbarAnimatorMessageFromCompositor(
|
||||
const int32_t& aMessage) override;
|
||||
mozilla::ipc::IPCResult RecvRootFrameMetrics(
|
||||
const ScreenPoint& aScrollOffset, const CSSToScreenScale& aZoom) override;
|
||||
const int32_t& aMessage);
|
||||
mozilla::ipc::IPCResult RecvRootFrameMetrics(const ScreenPoint& aScrollOffset,
|
||||
const CSSToScreenScale& aZoom);
|
||||
mozilla::ipc::IPCResult RecvScreenPixels(ipc::Shmem&& aMem,
|
||||
const ScreenIntSize& aSize) override;
|
||||
const ScreenIntSize& aSize);
|
||||
|
||||
private:
|
||||
explicit UiCompositorControllerChild(const uint64_t& aProcessToken);
|
||||
|
@ -34,25 +34,24 @@ class UiCompositorControllerParent final
|
||||
Endpoint<PUiCompositorControllerParent>&& aEndpoint);
|
||||
|
||||
// PUiCompositorControllerParent functions
|
||||
mozilla::ipc::IPCResult RecvPause() override;
|
||||
mozilla::ipc::IPCResult RecvResume() override;
|
||||
mozilla::ipc::IPCResult RecvPause();
|
||||
mozilla::ipc::IPCResult RecvResume();
|
||||
mozilla::ipc::IPCResult RecvResumeAndResize(const int32_t& aX,
|
||||
const int32_t& aY,
|
||||
const int32_t& aHeight,
|
||||
const int32_t& aWidth) override;
|
||||
mozilla::ipc::IPCResult RecvInvalidateAndRender() override;
|
||||
mozilla::ipc::IPCResult RecvMaxToolbarHeight(const int32_t& aHeight) override;
|
||||
const int32_t& aWidth);
|
||||
mozilla::ipc::IPCResult RecvInvalidateAndRender();
|
||||
mozilla::ipc::IPCResult RecvMaxToolbarHeight(const int32_t& aHeight);
|
||||
mozilla::ipc::IPCResult RecvPinned(const bool& aPinned,
|
||||
const int32_t& aReason) override;
|
||||
const int32_t& aReason);
|
||||
mozilla::ipc::IPCResult RecvToolbarAnimatorMessageFromUI(
|
||||
const int32_t& aMessage) override;
|
||||
mozilla::ipc::IPCResult RecvDefaultClearColor(
|
||||
const uint32_t& aColor) override;
|
||||
mozilla::ipc::IPCResult RecvRequestScreenPixels() override;
|
||||
const int32_t& aMessage);
|
||||
mozilla::ipc::IPCResult RecvDefaultClearColor(const uint32_t& aColor);
|
||||
mozilla::ipc::IPCResult RecvRequestScreenPixels();
|
||||
mozilla::ipc::IPCResult RecvEnableLayerUpdateNotifications(
|
||||
const bool& aEnable) override;
|
||||
const bool& aEnable);
|
||||
mozilla::ipc::IPCResult RecvToolbarPixelsToCompositor(
|
||||
Shmem&& aMem, const ScreenIntSize& aSize) override;
|
||||
Shmem&& aMem, const ScreenIntSize& aSize);
|
||||
void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
void DeallocPUiCompositorControllerParent() override;
|
||||
|
||||
|
@ -214,9 +214,9 @@ class WebRenderBridgeChild final : public PWebRenderBridgeChild,
|
||||
|
||||
mozilla::ipc::IPCResult RecvWrUpdated(
|
||||
const wr::IdNamespace& aNewIdNamespace,
|
||||
const TextureFactoryIdentifier& textureFactoryIdentifier) override;
|
||||
const TextureFactoryIdentifier& textureFactoryIdentifier);
|
||||
mozilla::ipc::IPCResult RecvWrReleasedImages(
|
||||
nsTArray<wr::ExternalImageKeyPair>&& aPairs) override;
|
||||
nsTArray<wr::ExternalImageKeyPair>&& aPairs);
|
||||
|
||||
void AddIPDLReference() {
|
||||
MOZ_ASSERT(mIPCOpen == false);
|
||||
|
@ -34,12 +34,12 @@ class VRChild final : public PVRChild, public gfxVarReceiver {
|
||||
|
||||
protected:
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
virtual mozilla::ipc::IPCResult RecvOpenVRControllerActionPathToParent(
|
||||
const nsCString& aPath) override;
|
||||
virtual mozilla::ipc::IPCResult RecvOpenVRControllerManifestPathToParent(
|
||||
const OpenVRControllerType& aType, const nsCString& aPath) override;
|
||||
virtual mozilla::ipc::IPCResult RecvInitCrashReporter(
|
||||
Shmem&& shmem, const NativeThreadId& aThreadId) override;
|
||||
mozilla::ipc::IPCResult RecvOpenVRControllerActionPathToParent(
|
||||
const nsCString& aPath);
|
||||
mozilla::ipc::IPCResult RecvOpenVRControllerManifestPathToParent(
|
||||
const OpenVRControllerType& aType, const nsCString& aPath);
|
||||
mozilla::ipc::IPCResult RecvInitCrashReporter(
|
||||
Shmem&& shmem, const NativeThreadId& aThreadId);
|
||||
|
||||
private:
|
||||
VRProcessParent* mHost;
|
||||
|
@ -25,8 +25,8 @@ class VRGPUParent final : public PVRGPUParent {
|
||||
|
||||
protected:
|
||||
void Bind(Endpoint<PVRGPUParent>&& aEndpoint);
|
||||
virtual mozilla::ipc::IPCResult RecvStartVRService() override;
|
||||
virtual mozilla::ipc::IPCResult RecvStopVRService() override;
|
||||
mozilla::ipc::IPCResult RecvStartVRService();
|
||||
mozilla::ipc::IPCResult RecvStopVRService();
|
||||
|
||||
private:
|
||||
explicit VRGPUParent(ProcessId aChildProcessId);
|
||||
|
@ -96,23 +96,22 @@ class VRManagerChild : public PVRManagerChild {
|
||||
const uint32_t& aGroup);
|
||||
bool DeallocPVRLayerChild(PVRLayerChild* actor);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateDisplayInfo(
|
||||
nsTArray<VRDisplayInfo>&& aDisplayUpdates) override;
|
||||
mozilla::ipc::IPCResult RecvUpdateDisplayInfo(
|
||||
nsTArray<VRDisplayInfo>&& aDisplayUpdates);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvDispatchSubmitFrameResult(
|
||||
const uint32_t& aDisplayID,
|
||||
const VRSubmitFrameResultInfo& aResult) override;
|
||||
virtual mozilla::ipc::IPCResult RecvGamepadUpdate(
|
||||
const GamepadChangeEvent& aGamepadEvent) override;
|
||||
virtual mozilla::ipc::IPCResult RecvReplyGamepadVibrateHaptic(
|
||||
const uint32_t& aPromiseID) override;
|
||||
mozilla::ipc::IPCResult RecvDispatchSubmitFrameResult(
|
||||
const uint32_t& aDisplayID, const VRSubmitFrameResultInfo& aResult);
|
||||
mozilla::ipc::IPCResult RecvGamepadUpdate(
|
||||
const GamepadChangeEvent& aGamepadEvent);
|
||||
mozilla::ipc::IPCResult RecvReplyGamepadVibrateHaptic(
|
||||
const uint32_t& aPromiseID);
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvReplyCreateVRServiceTestDisplay(
|
||||
mozilla::ipc::IPCResult RecvReplyCreateVRServiceTestDisplay(
|
||||
const nsCString& aID, const uint32_t& aPromiseID,
|
||||
const uint32_t& aDeviceID) override;
|
||||
virtual mozilla::ipc::IPCResult RecvReplyCreateVRServiceTestController(
|
||||
const uint32_t& aDeviceID);
|
||||
mozilla::ipc::IPCResult RecvReplyCreateVRServiceTestController(
|
||||
const nsCString& aID, const uint32_t& aPromiseID,
|
||||
const uint32_t& aDeviceID) override;
|
||||
const uint32_t& aDeviceID);
|
||||
bool IsSameProcess() const { return OtherPid() == base::GetCurrentProcId(); }
|
||||
|
||||
private:
|
||||
|
@ -55,44 +55,40 @@ class VRManagerParent final : public PVRManagerParent {
|
||||
virtual void ActorDestroy(ActorDestroyReason why) override;
|
||||
void OnChannelConnected(int32_t pid) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvRefreshDisplays() override;
|
||||
virtual mozilla::ipc::IPCResult RecvResetSensor(
|
||||
const uint32_t& aDisplayID) override;
|
||||
virtual mozilla::ipc::IPCResult RecvSetGroupMask(
|
||||
const uint32_t& aDisplayID, const uint32_t& aGroupMask) override;
|
||||
virtual mozilla::ipc::IPCResult RecvSetHaveEventListener(
|
||||
const bool& aHaveEventListener) override;
|
||||
virtual mozilla::ipc::IPCResult RecvControllerListenerAdded() override;
|
||||
virtual mozilla::ipc::IPCResult RecvControllerListenerRemoved() override;
|
||||
virtual mozilla::ipc::IPCResult RecvVibrateHaptic(
|
||||
const uint32_t& aControllerIdx, const uint32_t& aHapticIndex,
|
||||
const double& aIntensity, const double& aDuration,
|
||||
const uint32_t& aPromiseID) override;
|
||||
virtual mozilla::ipc::IPCResult RecvStopVibrateHaptic(
|
||||
const uint32_t& aControllerIdx) override;
|
||||
virtual mozilla::ipc::IPCResult RecvCreateVRTestSystem() override;
|
||||
virtual mozilla::ipc::IPCResult RecvCreateVRServiceTestDisplay(
|
||||
const nsCString& aID, const uint32_t& aPromiseID) override;
|
||||
virtual mozilla::ipc::IPCResult RecvCreateVRServiceTestController(
|
||||
const nsCString& aID, const uint32_t& aPromiseID) override;
|
||||
virtual mozilla::ipc::IPCResult RecvSetDisplayInfoToMockDisplay(
|
||||
const uint32_t& aDeviceID, const VRDisplayInfo& aDisplayInfo) override;
|
||||
virtual mozilla::ipc::IPCResult RecvSetSensorStateToMockDisplay(
|
||||
const uint32_t& aDeviceID, const VRHMDSensorState& aSensorState) override;
|
||||
virtual mozilla::ipc::IPCResult RecvNewButtonEventToMockController(
|
||||
const uint32_t& aDeviceID, const long& aButton,
|
||||
const bool& aPressed) override;
|
||||
virtual mozilla::ipc::IPCResult RecvNewAxisMoveEventToMockController(
|
||||
const uint32_t& aDeviceID, const long& aAxis,
|
||||
const double& aValue) override;
|
||||
virtual mozilla::ipc::IPCResult RecvNewPoseMoveToMockController(
|
||||
const uint32_t& aDeviceID, const GamepadPoseState& pose) override;
|
||||
virtual mozilla::ipc::IPCResult RecvStartVRNavigation(
|
||||
const uint32_t& aDeviceID) override;
|
||||
virtual mozilla::ipc::IPCResult RecvStopVRNavigation(
|
||||
const uint32_t& aDeviceID, const TimeDuration& aTimeout) override;
|
||||
virtual mozilla::ipc::IPCResult RecvStartActivity() override;
|
||||
virtual mozilla::ipc::IPCResult RecvStopActivity() override;
|
||||
mozilla::ipc::IPCResult RecvRefreshDisplays();
|
||||
mozilla::ipc::IPCResult RecvResetSensor(const uint32_t& aDisplayID);
|
||||
mozilla::ipc::IPCResult RecvSetGroupMask(const uint32_t& aDisplayID,
|
||||
const uint32_t& aGroupMask);
|
||||
mozilla::ipc::IPCResult RecvSetHaveEventListener(
|
||||
const bool& aHaveEventListener);
|
||||
mozilla::ipc::IPCResult RecvControllerListenerAdded();
|
||||
mozilla::ipc::IPCResult RecvControllerListenerRemoved();
|
||||
mozilla::ipc::IPCResult RecvVibrateHaptic(const uint32_t& aControllerIdx,
|
||||
const uint32_t& aHapticIndex,
|
||||
const double& aIntensity,
|
||||
const double& aDuration,
|
||||
const uint32_t& aPromiseID);
|
||||
mozilla::ipc::IPCResult RecvStopVibrateHaptic(const uint32_t& aControllerIdx);
|
||||
mozilla::ipc::IPCResult RecvCreateVRTestSystem();
|
||||
mozilla::ipc::IPCResult RecvCreateVRServiceTestDisplay(
|
||||
const nsCString& aID, const uint32_t& aPromiseID);
|
||||
mozilla::ipc::IPCResult RecvCreateVRServiceTestController(
|
||||
const nsCString& aID, const uint32_t& aPromiseID);
|
||||
mozilla::ipc::IPCResult RecvSetDisplayInfoToMockDisplay(
|
||||
const uint32_t& aDeviceID, const VRDisplayInfo& aDisplayInfo);
|
||||
mozilla::ipc::IPCResult RecvSetSensorStateToMockDisplay(
|
||||
const uint32_t& aDeviceID, const VRHMDSensorState& aSensorState);
|
||||
mozilla::ipc::IPCResult RecvNewButtonEventToMockController(
|
||||
const uint32_t& aDeviceID, const long& aButton, const bool& aPressed);
|
||||
mozilla::ipc::IPCResult RecvNewAxisMoveEventToMockController(
|
||||
const uint32_t& aDeviceID, const long& aAxis, const double& aValue);
|
||||
mozilla::ipc::IPCResult RecvNewPoseMoveToMockController(
|
||||
const uint32_t& aDeviceID, const GamepadPoseState& pose);
|
||||
mozilla::ipc::IPCResult RecvStartVRNavigation(const uint32_t& aDeviceID);
|
||||
mozilla::ipc::IPCResult RecvStopVRNavigation(const uint32_t& aDeviceID,
|
||||
const TimeDuration& aTimeout);
|
||||
mozilla::ipc::IPCResult RecvStartActivity();
|
||||
mozilla::ipc::IPCResult RecvStopActivity();
|
||||
|
||||
private:
|
||||
void RegisterWithManager();
|
||||
|
@ -34,21 +34,18 @@ class VRParent final : public PVRParent {
|
||||
protected:
|
||||
~VRParent() = default;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNewGPUVRManager(
|
||||
Endpoint<PVRGPUParent>&& aEndpoint) override;
|
||||
virtual mozilla::ipc::IPCResult RecvInit(
|
||||
nsTArray<GfxPrefSetting>&& prefs, nsTArray<GfxVarUpdate>&& vars,
|
||||
const DevicePrefs& devicePrefs) override;
|
||||
virtual mozilla::ipc::IPCResult RecvNotifyVsync(
|
||||
const TimeStamp& vsyncTimestamp) override;
|
||||
virtual mozilla::ipc::IPCResult RecvUpdatePref(
|
||||
const GfxPrefSetting& setting) override;
|
||||
virtual mozilla::ipc::IPCResult RecvUpdateVar(
|
||||
const GfxVarUpdate& pref) override;
|
||||
virtual mozilla::ipc::IPCResult RecvOpenVRControllerActionPathToVR(
|
||||
const nsCString& aPath) override;
|
||||
virtual mozilla::ipc::IPCResult RecvOpenVRControllerManifestPathToVR(
|
||||
const OpenVRControllerType& aType, const nsCString& aPath) override;
|
||||
mozilla::ipc::IPCResult RecvNewGPUVRManager(
|
||||
Endpoint<PVRGPUParent>&& aEndpoint);
|
||||
mozilla::ipc::IPCResult RecvInit(nsTArray<GfxPrefSetting>&& prefs,
|
||||
nsTArray<GfxVarUpdate>&& vars,
|
||||
const DevicePrefs& devicePrefs);
|
||||
mozilla::ipc::IPCResult RecvNotifyVsync(const TimeStamp& vsyncTimestamp);
|
||||
mozilla::ipc::IPCResult RecvUpdatePref(const GfxPrefSetting& setting);
|
||||
mozilla::ipc::IPCResult RecvUpdateVar(const GfxVarUpdate& pref);
|
||||
mozilla::ipc::IPCResult RecvOpenVRControllerActionPathToVR(
|
||||
const nsCString& aPath);
|
||||
mozilla::ipc::IPCResult RecvOpenVRControllerManifestPathToVR(
|
||||
const OpenVRControllerType& aType, const nsCString& aPath);
|
||||
|
||||
private:
|
||||
nsCString mOpenVRControllerAction;
|
||||
|
@ -39,8 +39,8 @@ class FileDescriptorSetChild final : public PFileDescriptorSetChild {
|
||||
explicit FileDescriptorSetChild(const FileDescriptor& aFileDescriptor);
|
||||
~FileDescriptorSetChild();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAddFileDescriptor(
|
||||
const FileDescriptor& aFileDescriptor) override;
|
||||
mozilla::ipc::IPCResult RecvAddFileDescriptor(
|
||||
const FileDescriptor& aFileDescriptor);
|
||||
};
|
||||
|
||||
} // namespace ipc
|
||||
|
@ -41,8 +41,8 @@ class FileDescriptorSetParent final : public PFileDescriptorSetParent {
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvAddFileDescriptor(
|
||||
const FileDescriptor& aFileDescriptor) override;
|
||||
mozilla::ipc::IPCResult RecvAddFileDescriptor(
|
||||
const FileDescriptor& aFileDescriptor);
|
||||
};
|
||||
|
||||
} // namespace ipc
|
||||
|
@ -3157,7 +3157,9 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
defaultRecv = MethodDefn(recvDecl)
|
||||
defaultRecv.addstmt(StmtReturn(ExprCall(ExprVar('IPC_OK'))))
|
||||
self.cls.addstmt(defaultRecv)
|
||||
else:
|
||||
elif (self.protocol.name, self.side) in VIRTUAL_CALL_CLASSES:
|
||||
# If we're using virtual calls, we need the methods to be
|
||||
# declared on the base class.
|
||||
recvDecl.methodspec = MethodSpec.PURE
|
||||
self.cls.addstmt(StmtDecl(recvDecl))
|
||||
|
||||
|
@ -21,7 +21,7 @@ class TestShellChild : public PTestShellChild {
|
||||
public:
|
||||
TestShellChild();
|
||||
|
||||
mozilla::ipc::IPCResult RecvExecuteCommand(const nsString& aCommand) override;
|
||||
mozilla::ipc::IPCResult RecvExecuteCommand(const nsString& aCommand);
|
||||
|
||||
PTestShellCommandChild* AllocPTestShellCommandChild(const nsString& aCommand);
|
||||
|
||||
|
@ -53,9 +53,8 @@ class VsyncChild final : public PVsyncChild {
|
||||
VsyncChild();
|
||||
virtual ~VsyncChild();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvNotify(const VsyncEvent& aVsync) override;
|
||||
virtual mozilla::ipc::IPCResult RecvVsyncRate(
|
||||
const float& aVsyncRate) override;
|
||||
mozilla::ipc::IPCResult RecvNotify(const VsyncEvent& aVsync);
|
||||
mozilla::ipc::IPCResult RecvVsyncRate(const float& aVsyncRate);
|
||||
virtual void ActorDestroy(ActorDestroyReason aActorDestroyReason) override;
|
||||
|
||||
bool mObservingVsync;
|
||||
|
@ -36,10 +36,10 @@ class VsyncParent final : public PVsyncParent, public VsyncObserver {
|
||||
virtual ~VsyncParent();
|
||||
|
||||
virtual bool NotifyVsync(const VsyncEvent& aVsync) override;
|
||||
virtual mozilla::ipc::IPCResult RecvRequestVsyncRate() override;
|
||||
mozilla::ipc::IPCResult RecvRequestVsyncRate();
|
||||
|
||||
virtual mozilla::ipc::IPCResult RecvObserve() override;
|
||||
virtual mozilla::ipc::IPCResult RecvUnobserve() override;
|
||||
mozilla::ipc::IPCResult RecvObserve();
|
||||
mozilla::ipc::IPCResult RecvUnobserve();
|
||||
virtual void ActorDestroy(ActorDestroyReason aActorDestroyReason) override;
|
||||
|
||||
void DispatchVsyncEvent(const VsyncEvent& aVsync);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user