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

Depends on D94559

Differential Revision: https://phabricator.services.mozilla.com/D94569
This commit is contained in:
Andi-Bogdan Postelnicu
2020-10-27 10:01:12 +00:00
parent 47b79f62f6
commit f97aaa6afb
17 changed files with 49 additions and 22 deletions

View File

@@ -193,7 +193,7 @@ FileSystemTaskParentBase::FileSystemTaskParentBase(
MOZ_ASSERT(aFileSystem, "aFileSystem should not be null.");
MOZ_ASSERT(aParent);
MOZ_ASSERT(mBackgroundEventTarget);
AssertIsOnBackgroundThread();
mozilla::ipc::AssertIsOnBackgroundThread();
}
FileSystemTaskParentBase::~FileSystemTaskParentBase() {
@@ -206,7 +206,7 @@ FileSystemTaskParentBase::~FileSystemTaskParentBase() {
}
void FileSystemTaskParentBase::Start() {
AssertIsOnBackgroundThread();
mozilla::ipc::AssertIsOnBackgroundThread();
mFileSystem->AssertIsOnOwningThread();
DebugOnly<nsresult> rv = DispatchToIOThread(this);
@@ -214,7 +214,7 @@ void FileSystemTaskParentBase::Start() {
}
void FileSystemTaskParentBase::HandleResult() {
AssertIsOnBackgroundThread();
mozilla::ipc::AssertIsOnBackgroundThread();
mFileSystem->AssertIsOnOwningThread();
if (mFileSystem->IsShutdown()) {
@@ -226,7 +226,7 @@ void FileSystemTaskParentBase::HandleResult() {
}
FileSystemResponseValue FileSystemTaskParentBase::GetRequestResult() const {
AssertIsOnBackgroundThread();
mozilla::ipc::AssertIsOnBackgroundThread();
mFileSystem->AssertIsOnOwningThread();
if (HasError()) {
@@ -253,7 +253,7 @@ FileSystemTaskParentBase::Run() {
// 2. After step 1, it returns back to the PBackground thread.
// Run I/O thread tasks
if (!IsOnBackgroundThread()) {
if (!mozilla::ipc::IsOnBackgroundThread()) {
nsresult rv = IOWork();
if (NS_WARN_IF(NS_FAILED(rv))) {
SetError(rv);
@@ -270,7 +270,7 @@ FileSystemTaskParentBase::Run() {
// If we are here, it's because the I/O work has been done and we have to
// handle the result back via IPC.
AssertIsOnBackgroundThread();
mozilla::ipc::AssertIsOnBackgroundThread();
HandleResult();
return NS_OK;
}