Bug 1660470 - Include C++ header files only from cpp file. r=nika

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

Depends on D87865
This commit is contained in:
Simon Giesecke 2020-11-23 16:03:32 +00:00
parent 971b645fe3
commit 93dd261db8
7 changed files with 10 additions and 1 deletions

View File

@ -69,6 +69,8 @@ include LookAndFeelTypes;
include protocol PSandboxTesting;
#endif
include "mozilla/AntiTrackingIPCUtils.h";
using refcounted class nsIDOMGeoPosition from "nsGeoPositionIPCSerialiser.h";
using refcounted class nsIAlertNotification from "mozilla/AlertNotificationIPCSerializer.h";

View File

@ -7,6 +7,7 @@ include protocol PTexture;
include protocol PRemoteDecoder;
include LayersSurfaces;
include "mozilla/dom/MediaIPCUtils.h";
include "mozilla/layers/LayersMessageUtils.h";
using VideoInfo from "MediaInfo.h";
using AudioInfo from "MediaInfo.h";

View File

@ -22,6 +22,8 @@ include protocol PRemoteDecoderManager;
include protocol PSandboxTesting;
#endif
include "mozilla/layers/LayersMessageUtils.h";
using base::ProcessId from "base/process.h";
using mozilla::dom::NativeThreadId from "mozilla/dom/NativeThreadId.h";
using mozilla::Telemetry::HistogramAccumulation from "mozilla/TelemetryComms.h";

View File

@ -4,6 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
include "mozilla/layers/LayersMessageUtils.h";
using mozilla::CrossProcessSemaphoreHandle from "mozilla/ipc/CrossProcessSemaphore.h";
using mozilla::layers::TextureType from "mozilla/layers/LayersTypes.h";
using mozilla::ipc::SharedMemoryBasic::Handle from "mozilla/ipc/SharedMemoryBasic.h";

View File

@ -5,6 +5,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
include "mozilla/layers/LayersMessageUtils.h";
include "mozilla/layers/WebRenderMessageUtils.h";
include LayersSurfaces;

View File

@ -65,6 +65,7 @@ include RemoteWorkerTypes;
include MIDITypes;
include "mozilla/dom/cache/IPCUtils.h";
include "mozilla/dom/quota/SerializationHelpers.h";
include "mozilla/layers/LayersMessageUtils.h";
using mozilla::dom::cache::Namespace

View File

@ -3591,7 +3591,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
self.nonForwardDeclaredHeaders.add(using.header)
def visitCxxInclude(self, inc):
self.nonForwardDeclaredHeaders.add(inc.file)
self.externalIncludes.add(inc.file)
def visitInclude(self, inc):
ip = inc.tu.protocol