2019-01-10 18:52:51 +03: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: */
|
|
|
|
/* 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/. */
|
|
|
|
|
2019-04-09 00:45:24 +03:00
|
|
|
// GECKO_PROCESS_TYPE(enum-name, string-name, XRE_Is${NAME}Process,
|
2019-01-10 18:52:51 +03:00
|
|
|
// process-bin-type) Note that string-name is exposed to various things like
|
|
|
|
// telemetry and the crash reporter, so it should not be changed casually.
|
|
|
|
//
|
2019-04-09 00:45:24 +03:00
|
|
|
// process-bin-type should be either Self or PluginContainer, and determines
|
|
|
|
// whether the child process may be started using the same binary as the parent
|
|
|
|
// process, or whether to use plugin-container (Note that whether or not this
|
|
|
|
// value is actually obeyed depends on platform and build configuration. Do not
|
|
|
|
// use this value directly, but rather use XRE_GetChildProcBinPathType to
|
|
|
|
// resolve this).
|
|
|
|
//
|
2019-01-10 18:52:51 +03:00
|
|
|
// The values generated for the GeckoProcessType enum are dependent on
|
|
|
|
// the ordering of the GECKO_PROCESS_TYPE invocations in this file, and
|
|
|
|
// said values are exposed to things like telemetry as well, so please
|
|
|
|
// do not reorder lines in this file.
|
|
|
|
//
|
|
|
|
// Please add new process types at the end of this list.
|
2019-04-09 00:45:24 +03:00
|
|
|
GECKO_PROCESS_TYPE(Default, "default", Parent, Self)
|
|
|
|
GECKO_PROCESS_TYPE(Plugin, "plugin", Plugin, PluginContainer)
|
|
|
|
GECKO_PROCESS_TYPE(Content, "tab", Content, Self)
|
|
|
|
GECKO_PROCESS_TYPE(IPDLUnitTest, "ipdlunittest", IPDLUnitTest, PluginContainer)
|
2019-01-10 18:52:51 +03:00
|
|
|
// Gecko Media Plugin process.
|
2019-04-09 00:45:24 +03:00
|
|
|
GECKO_PROCESS_TYPE(GMPlugin, "gmplugin", GMPlugin, PluginContainer)
|
2019-01-10 18:52:51 +03:00
|
|
|
// GPU and compositor process.
|
2019-04-09 00:45:24 +03:00
|
|
|
GECKO_PROCESS_TYPE(GPU, "gpu", GPU, Self)
|
2019-01-10 18:52:51 +03:00
|
|
|
// VR process.
|
2019-04-09 00:45:24 +03:00
|
|
|
GECKO_PROCESS_TYPE(VR, "vr", VR, Self)
|
2019-01-10 18:52:51 +03:00
|
|
|
// Remote Data Decoder process.
|
2019-04-09 00:45:24 +03:00
|
|
|
GECKO_PROCESS_TYPE(RDD, "rdd", RDD, Self)
|
2019-01-11 21:57:23 +03:00
|
|
|
// Socket process
|
2019-04-09 00:45:24 +03:00
|
|
|
GECKO_PROCESS_TYPE(Socket, "socket", Socket, Self)
|
|
|
|
GECKO_PROCESS_TYPE(RemoteSandboxBroker, "sandbox", RemoteSandboxBroker,
|
|
|
|
PluginContainer)
|