Bug 1671641 - Make dom/ipc buildable outside of unified-build environment. r=sg

Differential Revision: https://phabricator.services.mozilla.com/D94964
This commit is contained in:
Andi-Bogdan Postelnicu 2020-10-28 12:31:35 +00:00
parent ff39a7b9a1
commit f01b2a6215
17 changed files with 42 additions and 3 deletions

View File

@ -29,6 +29,7 @@ dom/html/
dom/imptests/
dom/indexedDB/
dom/interfaces/
dom/ipc/
dom/localstorage/
dom/quota/
dom/simpledb/

View File

@ -7,6 +7,7 @@
#include "mozilla/dom/BrowserBridgeHost.h"
#include "mozilla/Unused.h"
#include "nsFrameLoader.h"
namespace mozilla {
namespace dom {

View File

@ -8,6 +8,7 @@
#include "mozilla/Unused.h"
#include "mozilla/dom/CancelContentJSOptionsBinding.h"
#include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/WindowGlobalParent.h"
#include "nsIObserverService.h"

View File

@ -79,6 +79,7 @@
#include "nsIXPConnect.h"
#include "nsIXULBrowserWindow.h"
#include "nsIAppWindow.h"
#include "nsLayoutUtils.h"
#include "nsQueryActor.h"
#include "nsSHistory.h"
#include "nsViewManager.h"

View File

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/CSPMessageUtils.h"
#include "mozilla/ipc/PBackgroundSharedTypes.h"
#include "nsSerializationHelper.h"
#include "BackgroundUtils.h"
@ -21,7 +22,7 @@ void ParamTraits<nsIContentSecurityPolicy*>::Write(
}
CSPInfo csp;
Unused << NS_WARN_IF(NS_FAILED(CSPToCSPInfo(aParam, &csp)));
mozilla::Unused << NS_WARN_IF(NS_FAILED(CSPToCSPInfo(aParam, &csp)));
IPDLParamTraits<CSPInfo>::Write(aMsg, nullptr, csp);
}

View File

@ -22,6 +22,9 @@
# include "nsDirectoryServiceDefs.h"
#endif
#include "nsAppRunner.h"
#include "ProcessUtils.h"
using mozilla::ipc::IOThreadChild;
namespace mozilla {
@ -169,7 +172,7 @@ bool ContentProcess::Init(int aArgc, char* aArgv[]) {
return false;
}
SharedPreferenceDeserializer deserializer;
::mozilla::ipc::SharedPreferenceDeserializer deserializer;
if (!deserializer.DeserializeFromSharedMemory(prefsHandle, prefMapHandle,
prefsLen, prefMapSize)) {
return false;

View File

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/DocShellMessageUtils.h"
#include "mozilla/dom/DOMTypes.h"
#include "nsSerializationHelper.h"
namespace mozilla {
@ -20,7 +21,7 @@ void IPDLParamTraits<nsDocShellLoadState*>::Write(IPC::Message* aMsg,
bool IPDLParamTraits<nsDocShellLoadState*>::Read(
const IPC::Message* aMsg, PickleIterator* aIter, IProtocol* aActor,
RefPtr<nsDocShellLoadState>* aResult) {
DocShellLoadStateInit loadState;
dom::DocShellLoadStateInit loadState;
if (!ReadIPDLParam(aMsg, aIter, aActor, &loadState)) {
return false;
}

View File

@ -8,6 +8,7 @@
#include "mozilla/AutoMemMap.h"
#include "mozilla/ResultExtensions.h"
#include "mozilla/ipc/FileDescriptor.h"
namespace mozilla {

View File

@ -12,6 +12,7 @@
#include "mozilla/dom/BrowsingContext.h"
#include "mozilla/ErrorResult.h"
#include "nsIURI.h"
#include "nsRefPtrHashtable.h"
#include "nsString.h"
#include "mozilla/dom/JSActor.h"
#include "mozilla/dom/JSActorManager.h"

View File

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "RefMessageBodyService.h"
#include "mozilla/dom/ipc/StructuredCloneData.h"
#include "nsContentUtils.h"
namespace mozilla {

View File

@ -17,6 +17,10 @@
#include "mozilla/dom/JSWindowActorProtocol.h"
#include "mozilla/dom/PopupBlocker.h"
#include "mozilla/net/CookieJarSettings.h"
#include "mozilla/dom/WindowGlobalChild.h"
#include "mozilla/dom/WindowGlobalParent.h"
#include "nsGlobalWindowInner.h"
namespace mozilla {
namespace dom {

View File

@ -6,8 +6,11 @@
#include "mozilla/dom/JSActorManager.h"
#include "mozilla/dom/JSActorService.h"
#include "mozilla/dom/PWindowGlobal.h"
#include "mozilla/ipc/ProtocolUtils.h"
#include "mozJSComponentLoader.h"
#include "jsapi.h"
#include "nsContentUtils.h"
namespace mozilla {
namespace dom {

View File

@ -10,6 +10,7 @@
#include "js/TypeDecls.h"
#include "mozilla/dom/JSActor.h"
#include "mozilla/ErrorResult.h"
#include "nsRefPtrHashtable.h"
#include "nsString.h"
namespace mozilla {

View File

@ -4,6 +4,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/dom/ContentChild.h"
#include "mozilla/dom/JSProcessActorBinding.h"
#include "mozilla/dom/JSProcessActorChild.h"
#include "mozilla/dom/InProcessChild.h"

View File

@ -6,6 +6,13 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/JSProcessActorProtocol.h"
#include "mozilla/dom/InProcessChild.h"
#include "mozilla/dom/JSProcessActorBinding.h"
#include "mozilla/dom/ContentChild.h"
#include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/JSActorBinding.h"
#include "mozilla/dom/PContent.h"
#include "nsContentUtils.h"
namespace mozilla {
namespace dom {

View File

@ -8,6 +8,7 @@
#include "mozilla/dom/JSWindowActorParent.h"
#include "mozilla/dom/BrowserParent.h"
#include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/WindowGlobalChild.h"
#include "mozilla/dom/WindowGlobalParent.h"
#include "mozilla/dom/MessageManagerBinding.h"

View File

@ -5,7 +5,17 @@
* 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/dom/ContentParent.h"
#include "mozilla/dom/Event.h"
#include "mozilla/dom/JSActorBinding.h"
#include "mozilla/dom/JSActorService.h"
#include "mozilla/dom/JSWindowActorBinding.h"
#include "mozilla/dom/JSWindowActorChild.h"
#include "mozilla/dom/JSWindowActorProtocol.h"
#include "mozilla/dom/PContent.h"
#include "mozilla/dom/WindowGlobalChild.h"
#include "nsContentUtils.h"
namespace mozilla {
namespace dom {