security/sandbox/linux/SandboxInternal.h
author Patrick Brosset <pbrosset@mozilla.com>
Mon, 22 Feb 2016 10:33:04 +0100
changeset 334119 bab3de413d374fbaf58f53117709ef34a3922c7b
parent 229535 d06d1a469bb1962807e29e036666e06c4f5670e5
child 430048 8b07f481251c7c1aa8911e5f53f26d0c71f14dfc
permissions -rw-r--r--
Bug 1246677 - 5 - Get rid of 'content' in ruleview test files; r=jdescottes MozReview-Commit-ID: Af07cexjJOv

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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 mozilla_SandboxInternal_h
#define mozilla_SandboxInternal_h

#include <signal.h>

#include "mozilla/Types.h"

namespace mozilla {

// SandboxCrash() has to be in libxul to use internal interfaces, but
// its caller in the sandbox code is elsewhere:
// * Desktop: defined in libxul; referenced in plugin-container.
// * Mobile: defined in libmozsandbox; referenced in libxul.
// See also bug 1101170.

typedef void (*SandboxCrashFunc)(int, siginfo_t*, void*);
extern MOZ_EXPORT SandboxCrashFunc gSandboxCrashFunc;

} // namespace mozilla

#endif // mozilla_SandboxInternal_h