зеркало из https://github.com/mozilla/gecko-dev.git
42 строки
2.0 KiB
C
42 строки
2.0 KiB
C
/* -*- 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/. */
|
|
|
|
// GECKO_PROCESS_TYPE(enum-name, string-name, XRE_Is${NAME}Process,
|
|
// 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.
|
|
//
|
|
// 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).
|
|
//
|
|
// 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
|
|
// and update widget/ProcInfo.h
|
|
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)
|
|
// Gecko Media Plugin process.
|
|
GECKO_PROCESS_TYPE(GMPlugin, "gmplugin", GMPlugin, PluginContainer)
|
|
// GPU and compositor process.
|
|
GECKO_PROCESS_TYPE(GPU, "gpu", GPU, Self)
|
|
// VR process.
|
|
GECKO_PROCESS_TYPE(VR, "vr", VR, Self)
|
|
// Remote Data Decoder process.
|
|
GECKO_PROCESS_TYPE(RDD, "rdd", RDD, Self)
|
|
// Socket process
|
|
GECKO_PROCESS_TYPE(Socket, "socket", Socket, Self)
|
|
GECKO_PROCESS_TYPE(RemoteSandboxBroker, "sandboxbroker", RemoteSandboxBroker,
|
|
PluginContainer)
|
|
GECKO_PROCESS_TYPE(ForkServer, "forkserver", ForkServer, Self)
|