FileSystemResponseValue FileSystemTaskBase::GetRequestResult() const { MOZ_ASSERT(FileSystemUtils::IsParentProcess(), "Only call from parent process!"); MOZ_ASSERT(NS_IsMainThread(), "Only call on main thread!"); if (HasError()) { return FileSystemErrorResponse(mErrorValue); } else { return GetSuccessRequestResult(); } }
FileSystemResponseValue FileSystemTaskParentBase::GetRequestResult() const { AssertIsOnBackgroundThread(); mFileSystem->AssertIsOnOwningThread(); if (HasError()) { return FileSystemErrorResponse(mErrorValue); } ErrorResult rv; FileSystemResponseValue value = GetSuccessRequestResult(rv); if (NS_WARN_IF(rv.Failed())) { return FileSystemErrorResponse(rv.StealNSResult()); } return value; }