gecko-dev/ipc/glue
Nika Layzell 4d227d94ae Bug 1725335 - Streamline ownership and locking in MessageTask, r=ipc-reviewers,mccr8
This simplifies the logic around MessageTask's lifecycle to make
ownership as clear as possible and reduce the number of redundant
checks.

This new change no longer clears the mChannel member when the
MessageTask is disconnected, instead relying on isInList() to check
whether the MessageTask is still in the channel's mPending list. This is
already being automatically managed as the mPending list is modified,
and should avoid potential usage mistakes.

Differential Revision: https://phabricator.services.mozilla.com/D123140
2021-09-01 15:26:54 +00:00
..
AutoTransportDescriptor.cpp Bug 1706374 - Part 7: Add owning helpers for working with transport descriptors, r=handyman 2021-06-22 18:17:20 +00:00
AutoTransportDescriptor.h Bug 1706374 - Part 7: Add owning helpers for working with transport descriptors, r=handyman 2021-06-22 18:17:20 +00:00
BackgroundChild.h
BackgroundChildImpl.cpp Bug 1645528 - Connect nsRefreshDrivers in content processes with a widget-local vsync source r=mattwoodrow,emilio 2020-12-02 09:47:53 +00:00
BackgroundChildImpl.h
BackgroundImpl.cpp Bug 1519636 - Reformat recent changes to the Google coding style. r=emilio 2021-08-23 09:30:23 +00:00
BackgroundParent.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
BackgroundParentImpl.cpp Bug 1723954: Return NS_OK if PrincipalInfoToPrincipal fails. r=ckerschb 2021-08-05 13:58:41 +00:00
BackgroundParentImpl.h Bug 1496997 - Remove a chunk of child intercept code from dom/serviceworkers r=asuth,dom-workers-and-storage-reviewers,sg 2021-06-08 21:02:54 +00:00
BackgroundUtils.cpp Bug 1673889 - Remove topLevelStorageAreaPrincipal. r=timhuang,necko-reviewers,valentin 2021-08-11 18:51:20 +00:00
BackgroundUtils.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
BrowserProcessSubThread.cpp Bug 1706374 - Part 12a: Initialize NodeController when creating IO thread, r=handyman 2021-06-22 18:17:22 +00:00
BrowserProcessSubThread.h
ByteBuf.h
ByteBufUtils.h Bug 1693661 - Use mozalloc_handle_oom instead of failing gracefully if we fail to allocate. r=jld 2021-02-25 18:53:25 +00:00
CrashReporterClient.cpp
CrashReporterClient.h Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
CrashReporterHelper.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
CrashReporterHost.cpp Bug 1723934 - Remove old and useless crash annotations r=KrisWright 2021-08-09 20:08:17 +00:00
CrashReporterHost.h Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
CrossProcessMutex.h Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
CrossProcessMutex_posix.cpp
CrossProcessMutex_unimplemented.cpp
CrossProcessMutex_windows.cpp
CrossProcessSemaphore.h Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
CrossProcessSemaphore_posix.cpp
CrossProcessSemaphore_unimplemented.cpp
CrossProcessSemaphore_windows.cpp
Endpoint.h Bug 1713148 - Part 3: Use ports for Endpoint-created actors, r=handyman 2021-06-22 18:17:25 +00:00
EnumSerializer.h Bug 1689415 - Avoid UB when validating enum values in EnumSerializer. r=mccr8 2021-02-02 18:04:05 +00:00
EnvironmentMap.h
FileDescriptor.cpp Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
FileDescriptor.h Bug 1660470 - Move IPDLParamTraits for FileDescriptor out of FileDescriptor.h. r=nika 2020-11-23 16:04:55 +00:00
FileDescriptorSetChild.cpp
FileDescriptorSetChild.h
FileDescriptorSetParent.cpp
FileDescriptorSetParent.h
FileDescriptorShuffle.cpp
FileDescriptorShuffle.h
FileDescriptorUtils.cpp
FileDescriptorUtils.h
ForkServer.cpp Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
ForkServer.h
ForkServiceChild.cpp Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
ForkServiceChild.h Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
GeckoChildProcessHost.cpp Bug 1440103 - Fix handle leak in IPC process launching. r=handyman 2021-07-15 22:20:34 +00:00
GeckoChildProcessHost.h Bug 1440103 - Fix handle leak in IPC process launching. r=handyman 2021-07-15 22:20:34 +00:00
IOThreadChild.h Bug 1706374 - Part 12a: Initialize NodeController when creating IO thread, r=handyman 2021-06-22 18:17:22 +00:00
IPCCore.h Bug 1660470 - Move void_t/null_t to a new IPCCore.h header. r=nika 2020-11-23 16:05:20 +00:00
IPCMessageUtils.cpp Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
IPCMessageUtils.h Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
IPCMessageUtilsSpecializations.cpp Bug 1704658: Implement ParamTraits for RefPtr<nsAtom> r=nika 2021-04-27 08:20:18 +00:00
IPCMessageUtilsSpecializations.h Bug 1666222: Rip fuzzyfox out of the timestamp classes 2/5 r=smaug 2021-07-14 18:18:16 +00:00
IPCStream.ipdlh
IPCStreamAlloc.h
IPCStreamChild.cpp Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
IPCStreamDestination.cpp Bug 1681529 - Part 3: Apply InputStreamLengthWrapper after DelayedStartInputStream, r=baku 2021-02-04 18:12:57 +00:00
IPCStreamDestination.h Bug 1681529 - Part 3: Apply InputStreamLengthWrapper after DelayedStartInputStream, r=baku 2021-02-04 18:12:57 +00:00
IPCStreamParent.cpp
IPCStreamSource.cpp Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
IPCStreamSource.h Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
IPCStreamUtils.cpp Bug 1681529 - Part 5: Serialize `nsIInputStream` over IPC with aDelayedStart by default, r=baku 2021-02-04 18:13:07 +00:00
IPCStreamUtils.h Bug 1681529 - Part 5: Serialize `nsIInputStream` over IPC with aDelayedStart by default, r=baku 2021-02-04 18:13:07 +00:00
IPCTypes.h Bug 1660470 - Avoid including IPCMessageUtils.h from header files. r=nika 2020-11-23 16:03:47 +00:00
IPDLParamTraits.h
IdleSchedulerChild.cpp Bug 1710552 - pt 2. Inform the idle scheduler when we initiate a GC r=smaug 2021-08-13 04:06:26 +00:00
IdleSchedulerChild.h Bug 1710552 - pt 2. Inform the idle scheduler when we initiate a GC r=smaug 2021-08-13 04:06:26 +00:00
IdleSchedulerParent.cpp Bug 1710552 - pt 2. Inform the idle scheduler when we initiate a GC r=smaug 2021-08-13 04:06:26 +00:00
IdleSchedulerParent.h Bug 1710552 - pt 2. Inform the idle scheduler when we initiate a GC r=smaug 2021-08-13 04:06:26 +00:00
InputStreamParams.ipdlh Bug 1660470 - Move void_t/null_t to a new IPCCore.h header. r=nika 2020-11-23 16:05:20 +00:00
InputStreamUtils.cpp Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
InputStreamUtils.h
LibrarySandboxPreload.cpp Bug 1726474 - Preload rlbox library on Windows. r=nika 2021-08-25 07:39:00 +00:00
LibrarySandboxPreload.h Bug 1726476 - Adjust GetSandboxedRLBoxPath for the changes in rlbox_wasm2c_sandbox. r=nika 2021-08-20 23:33:05 +00:00
MessageChannel.cpp Bug 1725335 - Streamline ownership and locking in MessageTask, r=ipc-reviewers,mccr8 2021-09-01 15:26:54 +00:00
MessageChannel.h Bug 1725335 - Streamline ownership and locking in MessageTask, r=ipc-reviewers,mccr8 2021-09-01 15:26:54 +00:00
MessageLink.cpp Bug 1719577 - Part 7: Remove outdated comment, r=handyman 2021-07-23 19:14:58 +00:00
MessageLink.h Bug 1719577 - Part 6: More consistently use the monitor during MessageChannel shutdown, r=handyman 2021-07-23 19:14:58 +00:00
MessagePump.cpp Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
MessagePump.h
MiniTransceiver.cpp Bug 1706375 - Support building ipc/glue in non-unified mode, r=ipc-reviewers,mccr8 2021-04-22 14:32:03 +00:00
MiniTransceiver.h
Neutering.h
NodeChannel.cpp Bug 1706374 - Part 13: Remove the event footer from an IPC::Message when deserializing, r=handyman,glandium 2021-06-22 18:17:23 +00:00
NodeChannel.h Bug 1717993 - Hold a WeakPtr to mExistingListener in NodeChannel, r=handyman 2021-06-25 21:30:49 +00:00
NodeController.cpp Bug 1713148 - Part 2: Support port attachments on IPC messages, r=handyman 2021-06-22 18:17:24 +00:00
NodeController.h Bug 1706374 - Part 11: Add NodeController component bridging IPC and Ports, r=handyman 2021-06-22 18:17:22 +00:00
PBackground.ipdl Bug 1720688 - Support extended attribute syntax in protocol declarations, r=mccr8 2021-07-22 02:24:43 +00:00
PBackgroundSharedTypes.ipdlh Bug 1689147 - Part 5: Change comparable to an extended attribute, r=mccr8 2021-02-09 16:50:23 +00:00
PBackgroundTest.ipdl
PChildToParentStream.ipdl
PFileDescriptorSet.ipdl
PIdleScheduler.ipdl Bug 1710552 - pt 2. Inform the idle scheduler when we initiate a GC r=smaug 2021-08-13 04:06:26 +00:00
PParentToChildStream.ipdl
ProcessChild.cpp
ProcessChild.h
ProcessUtils.h Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
ProcessUtils_bsd.cpp
ProcessUtils_common.cpp Bug 1698045 part 1 - Add xpc::SelfHostedShmem to hold shared memory for JS initialization. r=smaug,tcampbell,ipc-reviewers,jld 2021-05-12 13:57:55 +00:00
ProcessUtils_linux.cpp
ProcessUtils_mac.mm Bug 1682030 - Remove some dead NPAPI code from dom/plugins and related spots. r=jmathies,mconley,ipc-reviewers,mccr8 2021-04-06 19:28:12 +00:00
ProcessUtils_none.cpp
ProtocolMessageUtils.h Bug 1713148 - Part 3: Use ports for Endpoint-created actors, r=handyman 2021-06-22 18:17:25 +00:00
ProtocolTypes.ipdlh
ProtocolUtils.cpp Bug 1713148 - Part 4: Remove ProcessLink, r=handyman 2021-06-22 18:17:25 +00:00
ProtocolUtils.h Bug 1727422 - Support arbitrary integer keys in nsTHashMap, r=xpcom-reviewers,mccr8 2021-08-25 16:31:08 +00:00
ProtocolUtilsFwd.h Bug 1660470 - Avoid including ProtocolUtils.h from header files. r=nika 2020-11-23 16:05:07 +00:00
ScopedPort.cpp Bug 1713148 - Part 2: Support port attachments on IPC messages, r=handyman 2021-06-22 18:17:24 +00:00
ScopedPort.h Bug 1713148 - Part 2: Support port attachments on IPC messages, r=handyman 2021-06-22 18:17:24 +00:00
ScopedXREEmbed.cpp
ScopedXREEmbed.h
SerializedStructuredCloneBuffer.h Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
SharedMemory.cpp
SharedMemory.h Bug 1699224 - Part 2. Expose SharedMemoryBasic::Unmap for use by callers. r=jld 2021-03-29 22:43:27 +00:00
SharedMemoryBasic.h
SharedMemoryBasic_android.cpp
SharedMemoryBasic_android.h Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
SharedMemoryBasic_chromium.h Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
SharedMemoryBasic_mach.h Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
SharedMemoryBasic_mach.mm
SharedMemory_posix.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
SharedMemory_windows.cpp
Shmem.cpp Backed out 2 changesets (bug 1720965) for causing bustages on nsContentUtils.cpp. CLOSED TREE 2021-08-04 03:14:29 +03:00
Shmem.h Backed out 2 changesets (bug 1720965) for causing bustages on nsContentUtils.cpp. CLOSED TREE 2021-08-04 03:14:29 +03:00
ShmemMessageUtils.h Backed out 2 changesets (bug 1720965) for causing bustages on nsContentUtils.cpp. CLOSED TREE 2021-08-04 03:14:29 +03:00
StringUtil.cpp
TaintingIPCUtils.h
TaskFactory.h
Transport.h
TransportSecurityInfoUtils.cpp
TransportSecurityInfoUtils.h Bug 1679148 - declare template for ParamTraits, so that Thunderbird builds succeed. r=sg 2020-11-24 14:44:29 +00:00
Transport_posix.cpp Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
Transport_posix.h
Transport_win.cpp
Transport_win.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
URIParams.ipdlh Bug 1714645: Remove NullPrincipalURI. r=ckerschb,nika 2021-07-06 08:23:12 +00:00
URIUtils.cpp Bug 1714645: Remove NullPrincipalURI. r=ckerschb,nika 2021-07-06 08:23:12 +00:00
URIUtils.h
WindowsMessageLoop.cpp Bug 1722515 - Fix WindowsMessageLoop no-a11y breakage r=Jamie 2021-08-04 12:56:14 +00:00
WindowsMessageLoop.h
components.conf
moz.build Bug 1706374 - Part 11: Add NodeController component bridging IPC and Ports, r=handyman 2021-06-22 18:17:22 +00:00
nsIIPCSerializableInputStream.h