2017-05-13 00:04:42 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; 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 mozilla_SandboxSettings_h
|
|
|
|
#define mozilla_SandboxSettings_h
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
// Return the current sandbox level. This is the
|
|
|
|
// "security.sandbox.content.level" preference, but rounded up to the current
|
|
|
|
// minimum allowed level.
|
|
|
|
int GetEffectiveContentSandboxLevel();
|
|
|
|
|
2017-07-03 21:17:04 +03:00
|
|
|
// Returns whether or not the currently running build is a development build -
|
|
|
|
// where development build means "the files in the .app are symlinks to the src
|
|
|
|
// directory". This check is implemented by looking for omni.ja in
|
|
|
|
// .app/Contents/Resources/.
|
|
|
|
bool IsDevelopmentBuild();
|
|
|
|
|
2017-07-19 19:16:09 +03:00
|
|
|
// Return the repo directory and the repo object directory respectively. These
|
|
|
|
// should only be used on developer builds to determine the path to the repo
|
|
|
|
// or object directory.
|
|
|
|
nsresult GetRepoDir(nsIFile **aRepoDir);
|
|
|
|
nsresult GetObjDir(nsIFile **aObjDir);
|
2017-05-13 00:04:42 +03:00
|
|
|
}
|
|
|
|
#endif // mozilla_SandboxPolicies_h
|