Bug 1858509 add thread-safety annotations around MediaSourceDemuxer::mMonitor r=alwu
[gecko.git] / ipc / glue / UtilityProcessSandboxing.h
blob461bbec7c4d7ff1cf14a4041f84cf49af8b186e1
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef _include_ipc_glue_UtilityProcessSandboxing_h_
7 #define _include_ipc_glue_UtilityProcessSandboxing_h_
9 #include <stdint.h>
11 namespace mozilla {
13 namespace ipc {
15 // When adding a new value, the checks within UtilityProcessImpl::Init() needs
16 // to be updated as well.
17 enum SandboxingKind : uint64_t {
19 GENERIC_UTILITY,
21 #ifdef MOZ_APPLEMEDIA
22 UTILITY_AUDIO_DECODING_APPLE_MEDIA,
23 #endif
24 #ifdef XP_WIN
25 UTILITY_AUDIO_DECODING_WMF,
26 #endif
27 #ifdef MOZ_WMF_MEDIA_ENGINE
28 MF_MEDIA_ENGINE_CDM,
29 #endif
30 #ifdef XP_WIN
31 WINDOWS_UTILS,
32 WINDOWS_FILE_DIALOG,
33 #endif
35 COUNT,
39 bool IsUtilitySandboxEnabled(const char* envVar, SandboxingKind aKind);
40 bool IsUtilitySandboxEnabled(SandboxingKind aKind);
42 } // namespace ipc
44 } // namespace mozilla
46 #endif // _include_ipc_glue_UtilityProcessSandboxing_h_