tor-browser

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

RLBoxSoundTouchTypes.h (1217B)


      1 /* -*- Mode: C++; tab-width: 20; 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/. */
      5 
      6 #ifndef RLBOXSOUNDTOUCHTYPES_H_
      7 #define RLBOXSOUNDTOUCHTYPES_H_
      8 
      9 #include "mozilla/rlbox/rlbox_types.hpp"
     10 
     11 #ifdef MOZ_WASM_SANDBOXING_SOUNDTOUCH
     12 namespace rlbox {
     13 class rlbox_wasm2c_sandbox;
     14 }
     15 using rlbox_soundtouch_sandbox_type = rlbox::rlbox_wasm2c_sandbox;
     16 #else
     17 using rlbox_soundtouch_sandbox_type = rlbox::rlbox_noop_sandbox;
     18 #endif
     19 
     20 using rlbox_sandbox_soundtouch =
     21    rlbox::rlbox_sandbox<rlbox_soundtouch_sandbox_type>;
     22 template <typename T>
     23 using sandbox_callback_soundtouch =
     24    rlbox::sandbox_callback<T, rlbox_soundtouch_sandbox_type>;
     25 template <typename T>
     26 using tainted_soundtouch = rlbox::tainted<T, rlbox_soundtouch_sandbox_type>;
     27 template <typename T>
     28 using tainted_opaque_soundtouch =
     29    rlbox::tainted_opaque<T, rlbox_soundtouch_sandbox_type>;
     30 template <typename T>
     31 using tainted_volatile_soundtouch =
     32    rlbox::tainted_volatile<T, rlbox_soundtouch_sandbox_type>;
     33 using rlbox::tainted_boolean_hint;
     34 
     35 #endif