Bug 1858509 add thread-safety annotations around MediaSourceDemuxer::mMonitor r=alwu
[gecko.git] / ipc / glue / PUtilityAudioDecoder.ipdl
blob31e05f509ece88e4a37f3ee6783bfce13e37754b
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 include GraphicsMessages;
7 include protocol PRemoteDecoderManager;
8 include protocol PVideoBridge;
10 using mozilla::media::MediaCodecsSupported from "MediaCodecsSupport.h";
11 using mozilla::RemoteDecodeIn from "mozilla/RemoteDecoderManagerChild.h";
13 namespace mozilla {
15 namespace ipc {
17 // This protocol allows to run media audio decoding infrastructure on top
18 // of the Utility process
19 protocol PUtilityAudioDecoder
21 parent:
22   async NewContentRemoteDecoderManager(
23             Endpoint<PRemoteDecoderManagerParent> endpoint);
25 #ifdef MOZ_WMF_MEDIA_ENGINE
26   async InitVideoBridge(Endpoint<PVideoBridgeChild> endpoint,
27                         GfxVarUpdate[] updates,
28                         ContentDeviceData contentDeviceData);
30   async UpdateVar(GfxVarUpdate var);
31 #endif
33 child:
34   async UpdateMediaCodecsSupported(RemoteDecodeIn aLocation,
35                                    MediaCodecsSupported aSupported);
37 #ifdef MOZ_WMF_MEDIA_ENGINE
38   async CompleteCreatedVideoBridge();
39 #endif
43 } // namespace ipc
45 } // namespace mozilla