зеркало из https://github.com/mozilla/gecko-dev.git
32 строки
1.1 KiB
C++
32 строки
1.1 KiB
C++
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef THEBES_RLBOX_TYPES
|
|
#define THEBES_RLBOX_TYPES
|
|
|
|
#include "mozilla/rlbox/rlbox_types.hpp"
|
|
|
|
#ifdef MOZ_WASM_SANDBOXING_GRAPHITE
|
|
namespace rlbox {
|
|
class rlbox_wasm2c_sandbox;
|
|
}
|
|
using rlbox_gr_sandbox_type = rlbox::rlbox_wasm2c_sandbox;
|
|
#else
|
|
using rlbox_gr_sandbox_type = rlbox::rlbox_noop_sandbox;
|
|
#endif
|
|
|
|
using rlbox_sandbox_gr = rlbox::rlbox_sandbox<rlbox_gr_sandbox_type>;
|
|
template <typename T>
|
|
using sandbox_callback_gr = rlbox::sandbox_callback<T, rlbox_gr_sandbox_type>;
|
|
template <typename T>
|
|
using tainted_gr = rlbox::tainted<T, rlbox_gr_sandbox_type>;
|
|
template <typename T>
|
|
using tainted_opaque_gr = rlbox::tainted_opaque<T, rlbox_gr_sandbox_type>;
|
|
template <typename T>
|
|
using tainted_volatile_gr = rlbox::tainted_volatile<T, rlbox_gr_sandbox_type>;
|
|
using rlbox::tainted_boolean_hint;
|
|
|
|
#endif
|