mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
dcfc4cc6da
A lot of existing code has variations on: if (ManagedPFooChild().Length()) { ...(ManagedPFooChild()[0])... } // Do something with nullptr, or some other action. It's pretty reasonable to repeat this code when the managed protocols are stored in an array; the code gets much less nice when managed protocols are stored in a hashtable. Let's write a small utility function to handle those details for us. Then when we change the underlying storage, we only need to update this function, rather than a bunch of callsites. ProtocolUtils.h is included by all the generated IPDL headers, so LoneManagedOrNull should be available everywhere the above pattern would be encountered. |
||
---|---|---|
.. | ||
BackgroundChild.h | ||
BackgroundChildImpl.cpp | ||
BackgroundChildImpl.h | ||
BackgroundImpl.cpp | ||
BackgroundParent.h | ||
BackgroundParentImpl.cpp | ||
BackgroundParentImpl.h | ||
BackgroundUtils.cpp | ||
BackgroundUtils.h | ||
BrowserProcessSubThread.cpp | ||
BrowserProcessSubThread.h | ||
CrossProcessMutex_posix.cpp | ||
CrossProcessMutex_unimplemented.cpp | ||
CrossProcessMutex_windows.cpp | ||
CrossProcessMutex.h | ||
FileDescriptor.cpp | ||
FileDescriptor.h | ||
FileDescriptorSetChild.cpp | ||
FileDescriptorSetChild.h | ||
FileDescriptorSetParent.cpp | ||
FileDescriptorSetParent.h | ||
FileDescriptorUtils.cpp | ||
FileDescriptorUtils.h | ||
GeckoChildProcessHost.cpp | ||
GeckoChildProcessHost.h | ||
InputStreamParams.ipdlh | ||
InputStreamUtils.cpp | ||
InputStreamUtils.h | ||
IOThreadChild.h | ||
IPCMessageUtils.h | ||
Makefile.in | ||
MessageChannel.cpp | ||
MessageChannel.h | ||
MessageLink.cpp | ||
MessageLink.h | ||
MessagePump.cpp | ||
MessagePump.h | ||
moz.build | ||
Neutering.h | ||
nsIIPCBackgroundChildCreateCallback.h | ||
nsIIPCSerializableInputStream.h | ||
nsIIPCSerializableURI.h | ||
PBackground.ipdl | ||
PBackgroundSharedTypes.ipdlh | ||
PBackgroundTest.ipdl | ||
PFileDescriptorSet.ipdl | ||
PProcLoader.ipdl | ||
ProcessChild.cpp | ||
ProcessChild.h | ||
ProcessUtils_bsd.cpp | ||
ProcessUtils_linux.cpp | ||
ProcessUtils_mac.mm | ||
ProcessUtils_none.cpp | ||
ProcessUtils.h | ||
ProtocolTypes.ipdlh | ||
ProtocolUtils.cpp | ||
ProtocolUtils.h | ||
ScopedXREEmbed.cpp | ||
ScopedXREEmbed.h | ||
SharedMemory_posix.cpp | ||
SharedMemory_windows.cpp | ||
SharedMemory.cpp | ||
SharedMemory.h | ||
SharedMemoryBasic_android.cpp | ||
SharedMemoryBasic_android.h | ||
SharedMemoryBasic_chromium.h | ||
SharedMemoryBasic_mach.h | ||
SharedMemoryBasic_mach.mm | ||
SharedMemoryBasic.h | ||
SharedMemorySysV.h | ||
Shmem.cpp | ||
Shmem.h | ||
StringUtil.cpp | ||
Transport_posix.cpp | ||
Transport_posix.h | ||
Transport_win.cpp | ||
Transport_win.h | ||
Transport.h | ||
URIParams.ipdlh | ||
URIUtils.cpp | ||
URIUtils.h | ||
WindowsMessageLoop.cpp | ||
WindowsMessageLoop.h |