RemoteDecodeUtils.h (1117B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef DOM_MEDIA_IPC_REMOTEDECODEUTILS_H_ 6 #define DOM_MEDIA_IPC_REMOTEDECODEUTILS_H_ 7 8 #include "mozilla/Logging.h" 9 #include "mozilla/RemoteMediaManagerChild.h" 10 #include "mozilla/ipc/UtilityProcessSandboxing.h" 11 12 namespace mozilla { 13 14 inline LazyLogModule gRemoteDecodeLog{"RemoteDecode"}; 15 16 // Return the sandboxing kind of the current utility process. Should only be 17 // called on the utility process. 18 ipc::SandboxingKind GetCurrentSandboxingKind(); 19 20 ipc::SandboxingKind GetSandboxingKindFromLocation(RemoteMediaIn aLocation); 21 22 RemoteMediaIn GetRemoteMediaInFromKind(ipc::SandboxingKind aKind); 23 24 RemoteMediaIn GetRemoteMediaInFromVideoBridgeSource( 25 layers::VideoBridgeSource aSource); 26 27 layers::VideoBridgeSource GetVideoBridgeSourceFromRemoteMediaIn( 28 RemoteMediaIn aSource); 29 30 const char* RemoteMediaInToStr(RemoteMediaIn aLocation); 31 32 } // namespace mozilla 33 34 #endif // DOM_MEDIA_IPC_REMOTEDECODEUTILS_H_