2016-05-27 21:54:31 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-09-11 04:30:33 +00: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 07:24:00 +00:00
|
|
|
#ifdef MOZ_B2G_LOADER
|
|
|
|
#include "base/process_util.h"
|
|
|
|
#endif
|
|
|
|
|
2012-09-11 04:30:33 +00:00
|
|
|
namespace mozilla {
|
|
|
|
namespace ipc {
|
|
|
|
|
2012-10-05 21:54:54 +00:00
|
|
|
// You probably should call ContentChild::SetProcessName instead of calling
|
|
|
|
// this directly.
|
2012-09-11 04:30:33 +00:00
|
|
|
void SetThisProcessName(const char *aName);
|
|
|
|
|
2014-07-30 07:24:00 +00:00
|
|
|
#ifdef MOZ_B2G_LOADER
|
|
|
|
// see ProcessUtils_linux.cpp for explaination.
|
|
|
|
void ProcLoaderClientGeckoInit();
|
2014-11-01 05:28:33 +00:00
|
|
|
bool ProcLoaderIsInitialized();
|
2014-07-30 07:24:00 +00: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 04:30:33 +00:00
|
|
|
} // namespace ipc
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // ifndef mozilla_ipc_ProcessUtils_h
|
|
|
|
|