2014-07-30 11:24:00 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set sw=2 ts=2 autoindent cindent expandtab: */
|
2012-09-11 08:30:33 +04:00
|
|
|
/* 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_ipc_ProcessUtils_h
|
|
|
|
#define mozilla_ipc_ProcessUtils_h
|
|
|
|
|
2014-07-30 11:24:00 +04:00
|
|
|
#ifdef MOZ_B2G_LOADER
|
|
|
|
#include "base/process_util.h"
|
|
|
|
#endif
|
|
|
|
|
2012-09-11 08:30:33 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace ipc {
|
|
|
|
|
2012-10-06 01:54:54 +04:00
|
|
|
// You probably should call ContentChild::SetProcessName instead of calling
|
|
|
|
// this directly.
|
2012-09-11 08:30:33 +04:00
|
|
|
void SetThisProcessName(const char *aName);
|
|
|
|
|
2014-07-30 11:24:00 +04:00
|
|
|
#ifdef MOZ_B2G_LOADER
|
|
|
|
// see ProcessUtils_linux.cpp for explaination.
|
|
|
|
void ProcLoaderClientGeckoInit();
|
2014-11-03 20:46:43 +03:00
|
|
|
|
2014-07-30 11:24:00 +04:00
|
|
|
bool ProcLoaderLoad(const char *aArgv[],
|
|
|
|
const char *aEnvp[],
|
|
|
|
const base::file_handle_mapping_vector &aFdsRemap,
|
|
|
|
const base::ChildPrivileges aPrivs,
|
|
|
|
base::ProcessHandle *aProcessHandle);
|
|
|
|
#endif /* MOZ_B2G_LOADER */
|
|
|
|
|
2012-09-11 08:30:33 +04:00
|
|
|
} // namespace ipc
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // ifndef mozilla_ipc_ProcessUtils_h
|
|
|
|
|