Bug 1626555 - Add dom/workers to the list of non-unified-build-compatible directories. r=sg

Differential Revision: https://phabricator.services.mozilla.com/D97170
This commit is contained in:
Andi-Bogdan Postelnicu 2020-11-16 19:57:14 +00:00
parent 522be9da14
commit 65e3d61d13
17 changed files with 36 additions and 11 deletions

View File

@ -67,4 +67,5 @@ dom/webbrowserpersist/
dom/webgpu/
dom/webidl/
dom/webshare/
dom/websocket/
dom/websocket/
dom/workers/

View File

@ -9,6 +9,7 @@
#include "jsapi.h"
#include "mozilla/Assertions.h"
#include "mozilla/dom/StructuredCloneTags.h"
#include "mozilla/dom/workerinternals/JSSettings.h"
namespace mozilla {
namespace dom {

View File

@ -72,6 +72,7 @@
#include "mozilla/dom/Response.h"
#include "mozilla/dom/ScriptLoader.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/dom/SerializedStackHolder.h"
#include "mozilla/dom/SRILogHelper.h"
#include "mozilla/dom/ServiceWorkerBinding.h"
#include "mozilla/dom/ServiceWorkerManager.h"

View File

@ -9,6 +9,7 @@
#include "WorkerRef.h"
#include "mozilla/dom/SecurityPolicyViolationEvent.h"
#include "mozilla/dom/SecurityPolicyViolationEventBinding.h"
#include "mozilla/dom/WorkerRunnable.h"
using namespace mozilla::dom;

View File

@ -7,6 +7,7 @@
#ifndef mozilla_dom_WorkerCSPEventListener_h
#define mozilla_dom_WorkerCSPEventListener_h
#include "mozilla/dom/WorkerRef.h"
#include "mozilla/Mutex.h"
#include "nsIContentSecurityPolicy.h"

View File

@ -5,6 +5,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "WorkerEventTarget.h"
#include "WorkerPrivate.h"
#include "WorkerRunnable.h"
namespace mozilla {
namespace dom {

View File

@ -12,6 +12,7 @@
#include "Principal.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "js/CompilationAndEvaluation.h"
#include "mozilla/CycleCollectedJSContext.h"
#include "mozilla/MozPromise.h"
#include "mozilla/StorageAccess.h"
@ -25,16 +26,19 @@
#include "mozilla/dom/Fetch.h"
#include "mozilla/dom/IDBFactory.h"
#include "mozilla/dom/ImageBitmap.h"
#include "mozilla/dom/MessagePortBinding.h"
#include "mozilla/dom/Performance.h"
#include "mozilla/dom/Promise.h"
#include "mozilla/dom/PromiseWorkerProxy.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/dom/SerializedStackHolder.h"
#include "mozilla/dom/ServiceWorkerGlobalScopeBinding.h"
#include "mozilla/dom/ServiceWorkerManager.h"
#include "mozilla/dom/ServiceWorkerRegistration.h"
#include "mozilla/dom/ServiceWorkerUtils.h"
#include "mozilla/dom/SharedWorkerGlobalScopeBinding.h"
#include "mozilla/dom/SimpleGlobalObject.h"
#include "mozilla/dom/TimeoutHandler.h"
#include "mozilla/dom/WorkerCommon.h"
#include "mozilla/dom/WorkerDebuggerGlobalScopeBinding.h"
#include "mozilla/dom/WorkerGlobalScopeBinding.h"
@ -46,6 +50,8 @@
#include "nsDebug.h"
#include "nsISerialEventTarget.h"
#include "nsJSUtils.h"
#include "nsQueryObject.h"
#include "ScriptLoader.h"
#include "xpcpublic.h"
#ifdef ANDROID

View File

@ -16,6 +16,7 @@
#include "mozilla/RemoteLazyInputStreamUtils.h"
#include "mozilla/RemoteLazyInputStreamStorage.h"
#include "mozilla/ScopeExit.h"
#include "mozilla/dom/FetchEventOpParent.h"
#include "mozilla/dom/FetchEventOpProxyParent.h"
#include "mozilla/dom/MessagePortParent.h"
#include "mozilla/dom/RemoteWorkerTypes.h"

View File

@ -16,6 +16,7 @@
#include "mozilla/Assertions.h"
#include "mozilla/Unused.h"
#include "mozilla/dom/FetchEventOpParent.h"
#include "mozilla/dom/RemoteWorkerParent.h"
#include "mozilla/dom/ServiceWorkerOpPromise.h"
#include "mozilla/ipc/BackgroundParent.h"

View File

@ -11,6 +11,7 @@
#include "mozilla/SchedulerGroup.h"
#include "mozilla/ScopeExit.h"
#include "mozilla/dom/ContentChild.h" // ContentChild::GetSingleton
#include "mozilla/dom/RemoteWorkerController.h"
#include "mozilla/dom/RemoteWorkerParent.h"
#include "mozilla/ipc/BackgroundParent.h"
#include "mozilla/ipc/BackgroundUtils.h"

View File

@ -9,6 +9,7 @@
#include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/PFetchEventOpProxyParent.h"
#include "mozilla/ipc/BackgroundParent.h"
#include "mozilla/SchedulerGroup.h"
#include "mozilla/Unused.h"
#include "nsProxyRelease.h"

View File

@ -11,6 +11,7 @@
#include "mozilla/ipc/BackgroundParent.h"
#include "mozilla/ipc/PBackgroundChild.h"
#include "mozilla/ipc/PBackgroundParent.h"
#include "mozilla/SchedulerGroup.h"
#include "mozilla/Services.h"
#include "mozilla/StaticMutex.h"
#include "mozilla/StaticPtr.h"

View File

@ -6,6 +6,7 @@
#include "RemoteWorkerServiceParent.h"
#include "RemoteWorkerManager.h"
#include "mozilla/ipc/BackgroundParent.h"
namespace mozilla {

View File

@ -8,6 +8,7 @@
#include "mozilla/dom/ErrorEvent.h"
#include "mozilla/dom/ErrorEventBinding.h"
#include "mozilla/dom/Exceptions.h"
#include "mozilla/dom/SharedWorker.h"
#include "mozilla/dom/WorkerError.h"
namespace mozilla {

View File

@ -7,6 +7,7 @@
#include "SharedWorkerManager.h"
#include "SharedWorkerParent.h"
#include "SharedWorkerService.h"
#include "mozilla/dom/MessagePort.h"
#include "mozilla/dom/PSharedWorker.h"
#include "mozilla/ipc/BackgroundParent.h"
#include "mozilla/ipc/URIUtils.h"
@ -61,7 +62,7 @@ SharedWorkerManager::~SharedWorkerManager() {
bool SharedWorkerManager::MaybeCreateRemoteWorker(
const RemoteWorkerData& aData, uint64_t aWindowID,
UniqueMessagePortId& aPortIdentifier, base::ProcessId aProcessId) {
AssertIsOnBackgroundThread();
::mozilla::ipc::AssertIsOnBackgroundThread();
if (!mRemoteWorkerController) {
mRemoteWorkerController =
@ -108,7 +109,7 @@ SharedWorkerManager::MatchOnMainThread(
}
void SharedWorkerManager::AddActor(SharedWorkerParent* aParent) {
AssertIsOnBackgroundThread();
::mozilla::ipc::AssertIsOnBackgroundThread();
MOZ_ASSERT(aParent);
MOZ_ASSERT(!mActors.Contains(aParent));
@ -121,7 +122,7 @@ void SharedWorkerManager::AddActor(SharedWorkerParent* aParent) {
}
void SharedWorkerManager::RemoveActor(SharedWorkerParent* aParent) {
AssertIsOnBackgroundThread();
::mozilla::ipc::AssertIsOnBackgroundThread();
MOZ_ASSERT(aParent);
MOZ_ASSERT(mActors.Contains(aParent));
@ -141,7 +142,7 @@ void SharedWorkerManager::RemoveActor(SharedWorkerParent* aParent) {
}
void SharedWorkerManager::Terminate() {
AssertIsOnBackgroundThread();
::mozilla::ipc::AssertIsOnBackgroundThread();
MOZ_ASSERT(mActors.IsEmpty());
MOZ_ASSERT(mHolders.IsEmpty());
@ -150,7 +151,7 @@ void SharedWorkerManager::Terminate() {
}
void SharedWorkerManager::UpdateSuspend() {
AssertIsOnBackgroundThread();
::mozilla::ipc::AssertIsOnBackgroundThread();
MOZ_ASSERT(mRemoteWorkerController);
uint32_t suspended = 0;
@ -178,7 +179,7 @@ void SharedWorkerManager::UpdateSuspend() {
}
void SharedWorkerManager::UpdateFrozen() {
AssertIsOnBackgroundThread();
::mozilla::ipc::AssertIsOnBackgroundThread();
MOZ_ASSERT(mRemoteWorkerController);
uint32_t frozen = 0;
@ -208,7 +209,7 @@ void SharedWorkerManager::UpdateFrozen() {
bool SharedWorkerManager::IsSecureContext() const { return mIsSecureContext; }
void SharedWorkerManager::CreationFailed() {
AssertIsOnBackgroundThread();
::mozilla::ipc::AssertIsOnBackgroundThread();
for (SharedWorkerParent* actor : mActors) {
Unused << actor->SendError(NS_ERROR_FAILURE);
@ -216,12 +217,12 @@ void SharedWorkerManager::CreationFailed() {
}
void SharedWorkerManager::CreationSucceeded() {
AssertIsOnBackgroundThread();
::mozilla::ipc::AssertIsOnBackgroundThread();
// Nothing to do here.
}
void SharedWorkerManager::ErrorReceived(const ErrorValue& aValue) {
AssertIsOnBackgroundThread();
::mozilla::ipc::AssertIsOnBackgroundThread();
for (SharedWorkerParent* actor : mActors) {
Unused << actor->SendError(aValue);
@ -229,7 +230,7 @@ void SharedWorkerManager::ErrorReceived(const ErrorValue& aValue) {
}
void SharedWorkerManager::Terminated() {
AssertIsOnBackgroundThread();
::mozilla::ipc::AssertIsOnBackgroundThread();
for (SharedWorkerParent* actor : mActors) {
Unused << actor->SendTerminate();

View File

@ -5,7 +5,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "SharedWorkerService.h"
#include "mozilla/dom/MessagePort.h"
#include "mozilla/dom/RemoteWorkerTypes.h"
#include "mozilla/dom/SharedWorkerManager.h"
#include "mozilla/ipc/BackgroundParent.h"
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/SchedulerGroup.h"

View File

@ -11,6 +11,8 @@
#include "nsISupportsImpl.h"
#include "nsTArray.h"
class nsIEventTarget;
namespace mozilla {
namespace ipc {