tor-browser

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

rlbox_expat.h (977B)


      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 PARSER_HTML_RLBOX_EXPAT_H_
      7 #define PARSER_HTML_RLBOX_EXPAT_H_
      8 
      9 #include "rlbox_expat_types.h"
     10 
     11 // Load general firefox configuration of RLBox
     12 #include "mozilla/rlbox/rlbox_config.h"
     13 
     14 #ifdef MOZ_WASM_SANDBOXING_EXPAT
     15 // Include the generated header file so that we are able to resolve the symbols
     16 // in the wasm binary
     17 #  include "rlbox.wasm.h"
     18 #  define RLBOX_USE_STATIC_CALLS() rlbox_wasm2c_sandbox_lookup_symbol
     19 #  include "mozilla/rlbox/rlbox_wasm2c_sandbox.hpp"
     20 #else
     21 // Extra configuration for no-op sandbox
     22 #  define RLBOX_USE_STATIC_CALLS() rlbox_noop_sandbox_lookup_symbol
     23 #  include "mozilla/rlbox/rlbox_noop_sandbox.hpp"
     24 #endif
     25 
     26 #include "mozilla/rlbox/rlbox.hpp"
     27 
     28 #endif