mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #2301 - Make Gecko Media Plugins optional when not building EME or WebRTC
Co-authored-by: Moonchild <moonchild@palemoon.org>
This commit is contained in:
parent
57020c1f59
commit
9e7d1492e6
54 changed files with 314 additions and 30 deletions
|
|
@ -59,7 +59,9 @@
|
|||
#include "mozilla/BasePrincipal.h"
|
||||
#include "mozilla/WebBrowserPersistDocumentChild.h"
|
||||
#include "imgLoader.h"
|
||||
#ifdef MOZ_GMP
|
||||
#include "GMPServiceChild.h"
|
||||
#endif
|
||||
|
||||
#include "mozilla/Unused.h"
|
||||
|
||||
|
|
@ -161,7 +163,9 @@
|
|||
#include "mozilla/net/NeckoMessageUtils.h"
|
||||
#include "mozilla/widget/PuppetBidiKeyboard.h"
|
||||
#include "mozilla/mozSpellChecker.h"
|
||||
#ifdef MOZ_GMP
|
||||
#include "GMPServiceChild.h"
|
||||
#endif
|
||||
#include "gfxPlatform.h"
|
||||
#include "nscore.h" // for NS_FREE_PERMANENT_DATA
|
||||
|
||||
|
|
@ -171,7 +175,9 @@ using namespace mozilla::dom::ipc;
|
|||
using namespace mozilla::dom::workers;
|
||||
using namespace mozilla::media;
|
||||
using namespace mozilla::embedding;
|
||||
#ifdef MOZ_GMP
|
||||
using namespace mozilla::gmp;
|
||||
#endif
|
||||
using namespace mozilla::hal_sandbox;
|
||||
using namespace mozilla::ipc;
|
||||
using namespace mozilla::layers;
|
||||
|
|
@ -1123,6 +1129,7 @@ ContentChild::AllocPContentBridgeParent(mozilla::ipc::Transport* aTransport,
|
|||
return mLastBridge;
|
||||
}
|
||||
|
||||
#ifdef MOZ_GMP
|
||||
PGMPServiceChild*
|
||||
ContentChild::AllocPGMPServiceChild(mozilla::ipc::Transport* aTransport,
|
||||
base::ProcessId aOtherProcess)
|
||||
|
|
@ -1136,6 +1143,7 @@ ContentChild::RecvGMPsChanged(nsTArray<GMPCapabilityData>&& capabilities)
|
|||
GeckoMediaPluginServiceChild::UpdateGMPCapabilities(Move(capabilities));
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool
|
||||
ContentChild::RecvInitRendering(Endpoint<PCompositorBridgeChild>&& aCompositor,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue