mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-06 19:29:24 +02:00
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
13 lines
393 B
Text
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,
|
|
},
|
|
]
|