summaryrefslogtreecommitdiff
path: root/dom/media/MediaDecoderOwner.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-12-13 12:07:12 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-24 10:20:45 +0100
commit30787feb2edca68e1a065b06f0f1da93e1c51c39 (patch)
treebdb1316d0388f03c6b7e4171f56f5bac46c41d87 /dom/media/MediaDecoderOwner.h
parent3e489e3cae8b9da71445ace045760d7bf7da27c0 (diff)
downloadaura-central-30787feb2edca68e1a065b06f0f1da93e1c51c39.tar.gz
Don't build EME-specific subroutines without EME.
- Checks for restricted or encrypted content - Dispatching 'encrypted' events - Dispatching 'key needed' events - HTML Media Element media keys system - EME telemetry - HTML Media Element EME API This is the main bulk for %26, isolating EME-specific code.
Diffstat (limited to 'dom/media/MediaDecoderOwner.h')
-rw-r--r--dom/media/MediaDecoderOwner.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/media/MediaDecoderOwner.h b/dom/media/MediaDecoderOwner.h
index f884686fb..f993b4324 100644
--- a/dom/media/MediaDecoderOwner.h
+++ b/dom/media/MediaDecoderOwner.h
@@ -143,11 +143,13 @@ public:
// reference to the decoder to prevent further calls into the decoder.
virtual void NotifyXPCOMShutdown() = 0;
+#ifdef MOZ_EME
// Dispatches a "encrypted" event to the HTMLMediaElement, with the
// provided init data. Actual dispatch may be delayed until HAVE_METADATA.
// Main thread only.
virtual void DispatchEncrypted(const nsTArray<uint8_t>& aInitData,
const nsAString& aInitDataType) = 0;
+#endif
};
} // namespace mozilla