Bug 1703443 - pt 6. Move RunNextCollectorTimer() into CCGCScheduler r=smaug
[gecko.git] / gfx / thebes / ThebesRLBoxTypes.h
blob9ef287b3fa6871c215f88ac289c0a4d36e3e9630
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/. */
6 #ifndef THEBES_RLBOX_TYPES
7 #define THEBES_RLBOX_TYPES
9 #include "mozilla/rlbox/rlbox_types.hpp"
11 #ifdef MOZ_WASM_SANDBOXING_GRAPHITE
12 namespace rlbox {
13 class rlbox_lucet_sandbox;
15 using rlbox_gr_sandbox_type = rlbox::rlbox_lucet_sandbox;
16 #else
17 using rlbox_gr_sandbox_type = rlbox::rlbox_noop_sandbox;
18 #endif
20 using rlbox_sandbox_gr = rlbox::rlbox_sandbox<rlbox_gr_sandbox_type>;
21 template <typename T>
22 using sandbox_callback_gr = rlbox::sandbox_callback<T, rlbox_gr_sandbox_type>;
23 template <typename T>
24 using tainted_gr = rlbox::tainted<T, rlbox_gr_sandbox_type>;
25 template <typename T>
26 using tainted_opaque_gr = rlbox::tainted_opaque<T, rlbox_gr_sandbox_type>;
27 template <typename T>
28 using tainted_volatile_gr = rlbox::tainted_volatile<T, rlbox_gr_sandbox_type>;
29 using rlbox::tainted_boolean_hint;
31 #endif