FileSystemParams GetDirectoryListingTaskChild::GetRequestParams(const nsString& aSerializedDOMPath, ErrorResult& aRv) const { mFileSystem->AssertIsOnOwningThread(); nsAutoString path; aRv = mTargetPath->GetPath(path); if (NS_WARN_IF(aRv.Failed())) { return FileSystemGetDirectoryListingParams(); } return FileSystemGetDirectoryListingParams(aSerializedDOMPath, path, mFilters); }
FileSystemParams GetDirectoryListingTask::GetRequestParams(const nsString& aFileSystem) const { MOZ_ASSERT(NS_IsMainThread(), "Only call on main thread!"); return FileSystemGetDirectoryListingParams(aFileSystem, mTargetRealPath); }