gecko-dev/xpcom/threads
Ray Kraesig e2ee2f11df Bug 1891541 - [2/2] enforce that MozPromise only accepts static strings r=xpcom-reviewers,media-playback-reviewers,padenot,emilio
All present uses of the call-site arguments to MozPromise's methods
supply static strings. However, this is nowhere enforced. Do so.

Additionally, since this is the third or fourth time the present author
alone has personally implemented such an enforcement mechanism, create a
helper class to simplify doing so.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D207462
2024-04-24 17:02:49 +00:00
..
AbstractThread.cpp
AbstractThread.h Bug 1877522 - [1/3] Drive-by cleanup: standardize header-inclusion dance r=xpcom-reviewers,barret 2024-03-20 01:30:13 +00:00
BlockingResourceBase.cpp
BlockingResourceBase.h
components.conf
CondVar.h
CPUUsageWatcher.cpp Bug 1855134 - Move existing MOZ_TRY macros to a dedicated header file; r=glandium 2023-09-28 20:46:07 +00:00
CPUUsageWatcher.h
DataMutex.h
DeadlockDetector.h
DelayedRunnable.cpp
DelayedRunnable.h
EventQueue.cpp
EventQueue.h Bug 1858080 - Add a missing include in EventQueue.h. CLOSED TREE 2023-10-10 20:57:35 +03:00
EventTargetCapability.h
IdlePeriodState.cpp Bug 1861848 - Let foreground content processes run idle tasks without consulting the parent process, r=farre,pbone 2023-11-20 12:46:33 +00:00
IdlePeriodState.h Bug 1861848 - Let foreground content processes run idle tasks without consulting the parent process, r=farre,pbone 2023-11-20 12:46:33 +00:00
IdleTaskRunner.cpp Bug 1868744 - If JS engine triggered a GC slice, don't trigger another too soon from CCGCScheduler, r=jonco 2023-12-07 12:34:33 +00:00
IdleTaskRunner.h Bug 1868744 - If JS engine triggered a GC slice, don't trigger another too soon from CCGCScheduler, r=jonco 2023-12-07 12:34:33 +00:00
InputTaskManager.cpp
InputTaskManager.h
LazyIdleThread.cpp
LazyIdleThread.h
LeakRefPtr.h
MainThreadIdlePeriod.cpp Bug 1870008 - make high rate mode handling dynamic, r=farre 2023-12-18 15:40:09 +00:00
MainThreadIdlePeriod.h
MainThreadUtils.h
Monitor.h
moz.build Bug 1891541 - [2/2] enforce that MozPromise only accepts static strings r=xpcom-reviewers,media-playback-reviewers,padenot,emilio 2024-04-24 17:02:49 +00:00
MozPromise.h Bug 1891541 - [2/2] enforce that MozPromise only accepts static strings r=xpcom-reviewers,media-playback-reviewers,padenot,emilio 2024-04-24 17:02:49 +00:00
Mutex.h Bug 1879692: typo: s/aquires/acquires/ in Mutex.h r=webgpu-reviewers,nical 2024-03-07 22:07:32 +00:00
nsEnvironment.cpp
nsEnvironment.h
nsICancelableRunnable.h
nsIDirectTaskDispatcher.idl Bug 1881863 - Part 1: Standardize on boolean over bool in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,extension-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,anti-tracking-reviewers,places-reviewers,nalexander,emilio,zombie,sgalich,karlt,lina,Standard8 2024-04-04 18:45:21 +00:00
nsIDiscardableRunnable.h
nsIEnvironment.idl
nsIEventTarget.idl Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
nsIIdlePeriod.idl
nsIIdleRunnable.h
nsINamed.idl
nsIProcess.idl
nsIRunnable.idl
nsISerialEventTarget.idl Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
nsISupportsPriority.idl
nsITargetShutdownTask.h
nsIThread.idl Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
nsIThreadInternal.idl Bug 1873386 - Interfaces referenced from scriptable members need to be [scriptable] r=necko-reviewers,jschanck,mccr8,valentin 2024-04-09 11:29:22 +00:00
nsIThreadManager.idl Bug 1892481 - More consistently enforce noscript and builtinclass in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,media-playback-reviewers,mccr8,padenot 2024-04-22 18:19:58 +00:00
nsIThreadPool.idl Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
nsIThreadShutdown.idl
nsITimer.idl
nsMemoryPressure.cpp
nsMemoryPressure.h
nsProcess.h
nsProcessCommon.cpp Bug 1858279 - Prelude: change Unix LaunchApp to take LaunchOptions by move. r=nika 2023-12-02 01:49:58 +00:00
nsProxyRelease.cpp
nsProxyRelease.h Bug 1858842 - Fix nsMainThreadPtrHolder's destructor during shutdown. r=xpcom-reviewers,mccr8 2023-10-17 11:23:13 +00:00
nsThread.cpp Bug 1862556: Allow LongTask markers to be generated for any nsThread r=nika 2023-12-07 04:15:44 +00:00
nsThread.h Bug 1862556: Allow LongTask markers to be generated for any nsThread r=nika 2023-12-07 04:15:44 +00:00
nsThreadManager.cpp Bug 1887068: Add perfetto event traces for taskcontroller tasks and dom performance measurement markers. r=smaug 2024-04-15 15:34:04 +00:00
nsThreadManager.h Bug 1862556: Allow LongTask markers to be generated for any nsThread r=nika 2023-12-07 04:15:44 +00:00
nsThreadPool.cpp Bug 1872327 - Don't leak runnables on shutdown in nsThreadPool. r=aosmond 2023-12-29 06:37:44 +00:00
nsThreadPool.h
nsThreadSyncDispatch.h
nsThreadUtils.cpp Bug 1840313 return full TaskQueue class from CreateBackgroundTaskQueue() r=xpcom-reviewers,nika 2023-06-26 21:52:50 +00:00
nsThreadUtils.h Bug 1880192 - [4/5] Remove IsRefcountedSmartPointer r=xpcom-reviewers,nika 2024-03-05 17:22:22 +00:00
nsTimerImpl.cpp Bug 1855134 - Move existing MOZ_TRY macros to a dedicated header file; r=glandium 2023-09-28 20:46:07 +00:00
nsTimerImpl.h
Queue.h
RecursiveMutex.cpp
RecursiveMutex.h
ReentrantMonitor.h
RWLock.cpp
RWLock.h
SchedulerGroup.cpp Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu 2023-10-10 08:51:12 +00:00
SchedulerGroup.h Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu 2023-10-10 08:51:12 +00:00
SharedThreadPool.cpp
SharedThreadPool.h Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
SpinEventLoopUntil.h
StateMirroring.h Bug 1877522 - [1/3] Drive-by cleanup: standardize header-inclusion dance r=xpcom-reviewers,barret 2024-03-20 01:30:13 +00:00
StateWatching.h Bug 1877522 - [1/3] Drive-by cleanup: standardize header-inclusion dance r=xpcom-reviewers,barret 2024-03-20 01:30:13 +00:00
StaticString.h Bug 1891541 - [2/2] enforce that MozPromise only accepts static strings r=xpcom-reviewers,media-playback-reviewers,padenot,emilio 2024-04-24 17:02:49 +00:00
SynchronizedEventQueue.cpp
SynchronizedEventQueue.h
SyncRunnable.h
TaskController.cpp Bug 1887068: Add perfetto event traces for taskcontroller tasks and dom performance measurement markers. r=smaug 2024-04-15 15:34:04 +00:00
TaskController.h Bug 1846407 - Use enum class for Task::Run return value. r=bas,win-reviewers,rkraesig 2023-10-18 15:23:29 +00:00
TaskDispatcher.h Bug 1877522 - [1/3] Drive-by cleanup: standardize header-inclusion dance r=xpcom-reviewers,barret 2024-03-20 01:30:13 +00:00
TaskQueue.cpp Bug 1840313 fetch and remove the first element of queue in one operation r=emilio 2023-06-26 21:52:50 +00:00
TaskQueue.h Bug 1840313 remove declaration of non-existent TaskQueue::CancelDelayedRunnables() r=emilio 2023-06-26 21:52:50 +00:00
ThreadBound.h
ThreadDelay.cpp
ThreadDelay.h
ThreadEventQueue.cpp
ThreadEventQueue.h
ThreadEventTarget.cpp Bug 1856087 - Bypass assertion if NS_DISPATCH_IGNORE_BLOCK_DISPATCH is set, r=xpcom-reviewers,jstutte 2023-10-06 20:57:58 +00:00
ThreadEventTarget.h
ThreadLocalVariables.cpp
ThrottledEventQueue.cpp
ThrottledEventQueue.h
TimerThread.cpp Bug 1826224: Enable high-precision timers on Windows for foreground processes when not on battery power r=smaug 2023-10-31 14:34:39 +00:00
TimerThread.h Bug 1826224: Enable high-precision timers on Windows for foreground processes when not on battery power r=smaug 2023-10-31 14:34:39 +00:00
VsyncTaskManager.cpp
VsyncTaskManager.h
WinHandleWatcher.cpp Bug 1837079 - [8/10] Implement file-dialog utility-process-crash tests r=handyman,ipc-reviewers,mstange,gerard-majax,nika,profiler-reviewers,julienw 2023-10-26 18:21:30 +00:00
WinHandleWatcher.h Bug 1837079 - [8/10] Implement file-dialog utility-process-crash tests r=handyman,ipc-reviewers,mstange,gerard-majax,nika,profiler-reviewers,julienw 2023-10-26 18:21:30 +00:00