commit 86f4d8229204009f89c6b9d1d36ef656958aa43f parent 818d00dba473c2b3cf98caefc3b6ef5b873ff265 Author: serge-sans-paille <sguelton@mozilla.com> Date: Tue, 28 Oct 2025 12:29:53 +0000 Bug 1996662 - Remove unused mfbt inclusion in ipc/** r=emilio Differential Revision: https://phabricator.services.mozilla.com/D270223 Diffstat:
21 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/ipc/chromium/src/base/basictypes.h b/ipc/chromium/src/base/basictypes.h @@ -13,7 +13,6 @@ #include "base/port.h" // Types that only need exist on certain systems -#include "mozilla/Assertions.h" #include "mozilla/IntegerPrintfMacros.h" // A type to represent a Unicode code-point value. As of Unicode 4.0, diff --git a/ipc/chromium/src/chrome/common/ipc_channel.h b/ipc/chromium/src/chrome/common/ipc_channel.h @@ -13,11 +13,13 @@ #include "base/basictypes.h" #include "base/process.h" #include "mozilla/EventTargetAndLockCapability.h" +#include "mozilla/Mutex.h" #include "mozilla/UniquePtr.h" #include "mozilla/UniquePtrExtensions.h" -#include "mozilla/WeakPtr.h" #include "chrome/common/ipc_message.h" +#include "nsISerialEventTarget.h" + #ifdef XP_WIN # include <string> #endif diff --git a/ipc/chromium/src/chrome/common/ipc_message.h b/ipc/chromium/src/chrome/common/ipc_message.h @@ -13,7 +13,6 @@ #include "base/pickle.h" #include "mojo/core/ports/user_message.h" #include "mojo/core/ports/port_ref.h" -#include "mozilla/RefPtr.h" #include "mozilla/TimeStamp.h" #include "mozilla/UniquePtrExtensions.h" #include "mozilla/ipc/ScopedPort.h" diff --git a/ipc/chromium/src/chrome/common/mach_ipc_mac.h b/ipc/chromium/src/chrome/common/mach_ipc_mac.h @@ -13,7 +13,6 @@ #include "mozilla/Maybe.h" #include "mozilla/MozPromise.h" -#include "mozilla/Result.h" #include "mozilla/UniquePtrExtensions.h" #include "mozilla/ipc/LaunchError.h" diff --git a/ipc/glue/CrashReporterClient.h b/ipc/glue/CrashReporterClient.h @@ -8,7 +8,6 @@ #define mozilla_ipc_CrashReporterClient_h #include "CrashReporter/CrashReporterInitArgs.h" -#include "mozilla/Assertions.h" #include "mozilla/StaticMutex.h" #include "mozilla/StaticPtr.h" #include "nsExceptionHandler.h" diff --git a/ipc/glue/FileDescriptor.cpp b/ipc/glue/FileDescriptor.cpp @@ -6,7 +6,6 @@ #include "FileDescriptor.h" -#include "mozilla/Assertions.h" #include "mozilla/ipc/IPDLParamTraits.h" #include "mozilla/ipc/ProtocolMessageUtils.h" #include "nsDebug.h" diff --git a/ipc/glue/IPDLParamTraits.h b/ipc/glue/IPDLParamTraits.h @@ -9,7 +9,6 @@ #include "chrome/common/ipc_message_utils.h" #include "ipc/IPCMessageUtilsSpecializations.h" -#include "mozilla/Variant.h" #include "nsTArray.h" diff --git a/ipc/glue/IdleSchedulerChild.h b/ipc/glue/IdleSchedulerChild.h @@ -7,7 +7,6 @@ #ifndef mozilla_ipc_IdleSchedulerChild_h__ #define mozilla_ipc_IdleSchedulerChild_h__ -#include "mozilla/Assertions.h" #include "mozilla/RefPtr.h" #include "mozilla/ipc/PIdleSchedulerChild.h" #include "mozilla/ipc/SharedMemoryMapping.h" diff --git a/ipc/glue/IdleSchedulerParent.h b/ipc/glue/IdleSchedulerParent.h @@ -9,7 +9,6 @@ #include "mozilla/Assertions.h" #include "mozilla/LinkedList.h" -#include "mozilla/RefPtr.h" #include "mozilla/ipc/PIdleSchedulerParent.h" #include "mozilla/ipc/SharedMemoryMapping.h" #include <bitset> diff --git a/ipc/glue/MessageChannel.cpp b/ipc/glue/MessageChannel.cpp @@ -22,7 +22,6 @@ #include "mozilla/Monitor.h" #include "mozilla/Mutex.h" #include "mozilla/ProfilerMarkers.h" -#include "mozilla/ScopeExit.h" #include "mozilla/Sprintf.h" #include "mozilla/StaticMutex.h" #include "mozilla/glean/IpcMetrics.h" diff --git a/ipc/glue/MessageChannel.h b/ipc/glue/MessageChannel.h @@ -13,7 +13,6 @@ #include "mozilla/LinkedList.h" #include "mozilla/Monitor.h" #include "mozilla/MoveOnlyFunction.h" -#include "mozilla/Vector.h" #if defined(XP_WIN) # include "mozilla/ipc/Neutering.h" #endif // defined(XP_WIN) diff --git a/ipc/glue/MessageLink.h b/ipc/glue/MessageLink.h @@ -12,7 +12,6 @@ #include "base/message_loop.h" #include "mojo/core/ports/node.h" #include "mojo/core/ports/port_ref.h" -#include "mozilla/Assertions.h" #include "mozilla/UniquePtr.h" #include "mozilla/ipc/ScopedPort.h" diff --git a/ipc/glue/MiniTransceiver.h b/ipc/glue/MiniTransceiver.h @@ -7,7 +7,6 @@ #define __MINITRANSCEIVER_H_ #include "chrome/common/ipc_message.h" -#include "mozilla/Assertions.h" struct msghdr; diff --git a/ipc/glue/NodeChannel.h b/ipc/glue/NodeChannel.h @@ -18,6 +18,7 @@ #include "mozilla/Queue.h" #include "mozilla/DataMutex.h" #include "mozilla/UniquePtr.h" +#include "mozilla/WeakPtr.h" #ifdef FUZZING_SNAPSHOT # include "mozilla/fuzzing/IPCFuzzController.h" diff --git a/ipc/glue/ProcessUtils.h b/ipc/glue/ProcessUtils.h @@ -16,7 +16,6 @@ #include "mozilla/ipc/SharedMemoryMapping.h" #include "mozilla/Maybe.h" #include "mozilla/Preferences.h" -#include "mozilla/RefPtr.h" #include "nsXULAppAPI.h" namespace mozilla { diff --git a/ipc/glue/ProcessUtils_common.cpp b/ipc/glue/ProcessUtils_common.cpp @@ -8,7 +8,6 @@ #include "mozilla/Preferences.h" #include "mozilla/GeckoArgs.h" -#include "mozilla/RefPtr.h" #include "mozilla/dom/RemoteType.h" #include "mozilla/ipc/GeckoChildProcessHost.h" #include "nsPrintfCString.h" diff --git a/ipc/glue/ProtocolMessageUtils.h b/ipc/glue/ProtocolMessageUtils.h @@ -13,7 +13,6 @@ #include "chrome/common/ipc_channel.h" #include "chrome/common/ipc_message_utils.h" #include "ipc/EnumSerializer.h" -#include "mozilla/Assertions.h" #include "mozilla/ipc/Endpoint.h" #include "mozilla/ipc/ProtocolUtils.h" diff --git a/ipc/glue/ProtocolUtils.h b/ipc/glue/ProtocolUtils.h @@ -19,7 +19,6 @@ #include "mozilla/Assertions.h" #include "mozilla/Attributes.h" #include "mozilla/FunctionRef.h" -#include "mozilla/Maybe.h" #include "mozilla/MoveOnlyFunction.h" #include "mozilla/Mutex.h" #include "mozilla/RefPtr.h" diff --git a/ipc/glue/SerializedStructuredCloneBuffer.h b/ipc/glue/SerializedStructuredCloneBuffer.h @@ -18,7 +18,6 @@ #include "js/StructuredClone.h" #include "mozilla/Assertions.h" #include "mozilla/BufferList.h" -#include "mozilla/Vector.h" #include "mozilla/mozalloc.h" class PickleIterator; diff --git a/ipc/glue/nsIIPCSerializableInputStream.h b/ipc/glue/nsIIPCSerializableInputStream.h @@ -7,7 +7,6 @@ #ifndef mozilla_ipc_nsIIPCSerializableInputStream_h #define mozilla_ipc_nsIIPCSerializableInputStream_h -#include "mozilla/Maybe.h" #include "nsISupports.h" #include "nsTArrayForwardDeclare.h" diff --git a/ipc/mscom/EnsureMTA.h b/ipc/mscom/EnsureMTA.h @@ -13,7 +13,6 @@ #include "mozilla/MozPromise.h" #include "mozilla/mscom/AgileReference.h" #include "mozilla/mscom/Utils.h" -#include "mozilla/RefPtr.h" #include "nsCOMPtr.h" #include "nsIThread.h" #include "nsThreadUtils.h"