tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

UtilityProcessSandboxing.h (1133B)


      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_
      8 
      9 #include <stdint.h>
     10 
     11 namespace mozilla {
     12 
     13 namespace ipc {
     14 
     15 // When adding a new value, the checks within UtilityProcessImpl::Init() needs
     16 // to be updated as well.
     17 enum SandboxingKind : uint64_t {
     18 
     19  GENERIC_UTILITY,
     20 
     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
     34 
     35  COUNT,
     36 
     37 };
     38 
     39 bool IsUtilitySandboxEnabled(const char* envVar, SandboxingKind aKind);
     40 bool IsUtilitySandboxEnabled(SandboxingKind aKind);
     41 
     42 }  // namespace ipc
     43 
     44 }  // namespace mozilla
     45 
     46 #endif  // _include_ipc_glue_UtilityProcessSandboxing_h_