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
Родитель 971b645fe3
Коммит 93dd261db8
7 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -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;

Просмотреть файл

@ -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

Просмотреть файл

@ -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