gecko-dev/xpcom/components
Nick Alexander 3d0d39d82c Bug 1675848 - Part 2: Add "BackgroundTasksSelector" to static component category registration. r=mhentges,nika
For simplicity, this implements just on in `NO_TASKS` (the default) or
on in `ALL_TASKS` (opt-in).  This disables all category registrations
when in background task mode; we'll selectively re-enable things as
appropriate.

The flag constants were chosen to smoothly extend to a (16-)bit set in
the future, should we want to add a `JUST_TASKS("task", "other-task")`
option in the future.

This also adds ython tests for gen_static_components.py exercising
categories, simply 'cuz it's easiest to see what this adds in such
tests.  Functional tests will follow in patches that actually
implement the new background tasks functionality.

Differential Revision: https://phabricator.services.mozilla.com/D96654
2021-01-25 23:44:49 +00:00
..
test Bug 1675848 - Part 2: Add "BackgroundTasksSelector" to static component category registration. r=mhentges,nika 2021-01-25 23:44:49 +00:00
GenericFactory.cpp
GenericFactory.h
ManifestParser.cpp Bug 1675848 - Part 1: Add "backgroundtask" filter to chrome manifest parsing. r=mossop,kmag 2021-01-25 23:44:46 +00:00
ManifestParser.h
Module.h Bug 1675848 - Part 2: Add "BackgroundTasksSelector" to static component category registration. r=mhentges,nika 2021-01-25 23:44:49 +00:00
ModuleUtils.h
StaticComponents.cpp.in Bug 1675848 - Part 2: Add "BackgroundTasksSelector" to static component category registration. r=mhentges,nika 2021-01-25 23:44:49 +00:00
StaticComponents.h Bug 1675848 - Part 2: Add "BackgroundTasksSelector" to static component category registration. r=mhentges,nika 2021-01-25 23:44:49 +00:00
components.conf
gen_static_components.py Bug 1675848 - Part 2: Add "BackgroundTasksSelector" to static component category registration. r=mhentges,nika 2021-01-25 23:44:49 +00:00
moz.build Bug 1675848 - Part 2: Add "BackgroundTasksSelector" to static component category registration. r=mhentges,nika 2021-01-25 23:44:49 +00:00
nsCategoryCache.cpp
nsCategoryCache.h
nsCategoryManager.cpp
nsCategoryManager.h
nsCategoryManagerUtils.h
nsComponentManager.cpp
nsComponentManager.h
nsComponentManagerUtils.cpp
nsComponentManagerUtils.h
nsICategoryManager.idl
nsIClassInfo.idl
nsIComponentManager.idl
nsIComponentRegistrar.idl
nsIFactory.idl
nsIModule.idl
nsIServiceManager.idl
nsServiceManagerUtils.h