gecko-dev/toolkit/components/backgroundtasks/components.conf
Nick Alexander 7360317f0c Bug 1675850 - Add MOZ_BACKGROUNDTASKS flag, {nsI}BackgroundTasks IDL and class. r=mossop,firefox-build-system-reviewers,mhentges
This adds a build flag (defaulting to on in Nightly builds) and an
`AppConstants.jsm` definition.

It lays the foundation for managing an active background task.  A
singleton, exposed as an XPCOM service, owns the task name and lives
for the life of the application.

This will be wired into the application startup path in future
commits.  It's separated to allow the changes to category registration
to come early in the commit sequence.

Differential Revision: https://phabricator.services.mozilla.com/D96481
2021-01-25 23:44:39 +00:00

13 lines
393 B
Text

Classes = [
{
'cid': '{cdc33a1f-e8ae-4a4f-85d0-6ec633fe872c}',
'contract_ids': [
'@mozilla.org/backgroundtasks;1',
],
'type': 'BackgroundTasks',
'singleton': True,
'constructor': 'BackgroundTasks::GetSingletonAddRefed',
'headers': ['mozilla/BackgroundTasks.h'],
'processes': ProcessSelector.ANY_PROCESS,
},
]