gecko-dev/ipc/glue
Gabriele Svelto 69790bc62e Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

Differential Revision: https://phabricator.services.mozilla.com/D55443

--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +00:00
..
BackgroundChild.h
BackgroundChildImpl.cpp Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
BackgroundChildImpl.h Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
BackgroundImpl.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
BackgroundParent.h
BackgroundParentImpl.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
BackgroundParentImpl.h Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
BackgroundUtils.cpp Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
BackgroundUtils.h
BrowserProcessSubThread.cpp
BrowserProcessSubThread.h
ByteBuf.h
components.conf Bug 1470591 - Part 6: Create a fork server process. r=gsvelto 2019-12-05 00:02:40 +00:00
CrashReporterClient.cpp
CrashReporterClient.h
CrashReporterHelper.h
CrashReporterHost.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
CrashReporterHost.h Backed out 4 changesets (bug 1589493) for linting failure at builds/worker/checkouts/gecko/dom/ipc/tests/test_process_error_oom.xhtml:12:11. On a CLOSED TREE 2019-11-29 19:48:41 +02:00
CrashReporterMetadataShmem.cpp
CrashReporterMetadataShmem.h
CrossProcessMutex_posix.cpp Bug 1533918 - Disallow CrossProcessMutex when sandboxing is enabled. r=botond 2019-10-30 17:59:15 +00:00
CrossProcessMutex_unimplemented.cpp
CrossProcessMutex_windows.cpp
CrossProcessMutex.h
CrossProcessSemaphore_posix.cpp
CrossProcessSemaphore_unimplemented.cpp
CrossProcessSemaphore_windows.cpp
CrossProcessSemaphore.h
EnvironmentMap.h
FileDescriptor.cpp Bug 1470591 - Part 5: ForkServer to create new processes. r=gsvelto 2019-12-05 00:05:21 +00:00
FileDescriptor.h
FileDescriptorSetChild.cpp
FileDescriptorSetChild.h Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
FileDescriptorSetParent.cpp
FileDescriptorSetParent.h Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
FileDescriptorShuffle.cpp
FileDescriptorShuffle.h Bug 1470591 - Part 3: AppForkBuilder to ceate a new content process. r=gsvelto 2019-12-05 00:04:19 +00:00
FileDescriptorUtils.cpp
FileDescriptorUtils.h
ForkServer.cpp Bug 1601794- Fix building errors with clang. r=gsvelto 2019-12-06 04:59:26 +00:00
ForkServer.h Bug 1470591 - Part 5: ForkServer to create new processes. r=gsvelto 2019-12-05 00:05:21 +00:00
ForkServiceChild.cpp Bug 1470591 - Part 5: ForkServer to create new processes. r=gsvelto 2019-12-05 00:05:21 +00:00
ForkServiceChild.h Bug 1470591 - Part 5: ForkServer to create new processes. r=gsvelto 2019-12-05 00:05:21 +00:00
GeckoChildProcessHost.cpp Bug 1470591 - Part 5: ForkServer to create new processes. r=gsvelto 2019-12-05 00:05:21 +00:00
GeckoChildProcessHost.h Bug 1589809 - [macOS] Use OS_ACTIVITY_MODE=disable for child processes r=spohl 2019-11-09 00:27:48 +00:00
IdleSchedulerChild.cpp
IdleSchedulerChild.h
IdleSchedulerParent.cpp
IdleSchedulerParent.h
InProcessChild.h
InProcessImpl.cpp
InProcessParent.h
InputStreamParams.ipdlh
InputStreamUtils.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
InputStreamUtils.h Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
IOThreadChild.h
IPCMessageUtils.cpp Bug 1591438 - Move DEFINE_IPC_SERIALIZER_WITH_FIELDS into IPCMessageUtils header r=bwc 2019-11-04 15:00:04 +00:00
IPCMessageUtils.h Bug 1596562: Add ParamTraits specializations for mozilla::Vector and std::vector; r=froydnj,bwc 2019-11-18 19:45:41 +00:00
IPCStream.ipdlh
IPCStreamAlloc.h
IPCStreamChild.cpp Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
IPCStreamDestination.cpp Bug 1601742 - Fix unified build with the forkserver. r=froydnj 2019-12-06 04:58:27 +00:00
IPCStreamDestination.h Bug 1601742 - Fix unified build with the forkserver. r=froydnj 2019-12-06 04:58:27 +00:00
IPCStreamParent.cpp Bug 1601742 - Fix unified build with the forkserver. r=froydnj 2019-12-06 04:58:27 +00:00
IPCStreamSource.cpp
IPCStreamSource.h Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
IPCStreamUtils.cpp Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
IPCStreamUtils.h Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
IPDLParamTraits.h Bug 1470591 - Part 5: ForkServer to create new processes. r=gsvelto 2019-12-05 00:05:21 +00:00
MessageChannel.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
MessageChannel.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
MessageLink.cpp Bug 1597211 - Do not cast IPC message size to signed int. r=jld 2019-11-21 01:26:08 +00:00
MessageLink.h
MessagePump.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
MessagePump.h
MiniTransceiver.cpp Bug 1601794- Fix building errors with clang. r=gsvelto 2019-12-06 04:59:26 +00:00
MiniTransceiver.h Bug 1470591 - Part 4: MiniTransceiver to do single-tasking IPC. r=gsvelto 2019-12-05 00:04:53 +00:00
moz.build Bug 1470591 - Part 5: ForkServer to create new processes. r=gsvelto 2019-12-05 00:05:21 +00:00
Neutering.h
nsIIPCSerializableInputStream.h Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
PBackground.ipdl
PBackgroundSharedTypes.ipdlh
PBackgroundTest.ipdl
PChildToParentStream.ipdl Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
PFileDescriptorSet.ipdl Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
PIdleScheduler.ipdl
PInProcess.ipdl
PParentToChildStream.ipdl Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
ProcessChild.cpp
ProcessChild.h
ProcessUtils_bsd.cpp
ProcessUtils_common.cpp
ProcessUtils_linux.cpp
ProcessUtils_mac.mm
ProcessUtils_none.cpp
ProcessUtils.h
ProtocolTypes.ipdlh
ProtocolUtils.cpp
ProtocolUtils.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
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
Shmem.cpp
Shmem.h
StringUtil.cpp
TaskFactory.h
Transport_posix.cpp
Transport_posix.h
Transport_win.cpp
Transport_win.h
Transport.h
TransportSecurityInfoUtils.cpp
TransportSecurityInfoUtils.h
URIParams.ipdlh
URIUtils.cpp
URIUtils.h
WindowsMessageLoop.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
WindowsMessageLoop.h