Bumping manifests a=b2g-bump
[gecko.git] / ipc / glue / ProcessUtils.h
blob99d0f532dd8b621f64cdf0706ca854e6c60f3b7a
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set sw=2 ts=2 autoindent cindent expandtab: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_ipc_ProcessUtils_h
8 #define mozilla_ipc_ProcessUtils_h
10 #ifdef MOZ_B2G_LOADER
11 #include "base/process_util.h"
12 #endif
14 namespace mozilla {
15 namespace ipc {
17 // You probably should call ContentChild::SetProcessName instead of calling
18 // this directly.
19 void SetThisProcessName(const char *aName);
21 #ifdef MOZ_B2G_LOADER
22 // see ProcessUtils_linux.cpp for explaination.
23 void ProcLoaderClientGeckoInit();
25 bool ProcLoaderLoad(const char *aArgv[],
26 const char *aEnvp[],
27 const base::file_handle_mapping_vector &aFdsRemap,
28 const base::ChildPrivileges aPrivs,
29 base::ProcessHandle *aProcessHandle);
30 #endif /* MOZ_B2G_LOADER */
32 } // namespace ipc
33 } // namespace mozilla
35 #endif // ifndef mozilla_ipc_ProcessUtils_h