This commit is contained in:
blakeross%telocity.com 2002-11-09 15:04:41 +00:00
Родитель 884084ecad
Коммит 3079b8dc1e
2 изменённых файлов: 0 добавлений и 27 удалений

Просмотреть файл

@ -275,32 +275,6 @@ nsDownloadManager::GetDataSource(nsIRDFDataSource** aDataSource)
return NS_OK;
}
nsresult
nsDownloadManager::AssertProgressInfo()
{
nsCOMPtr<nsISupports> supports;
nsCOMPtr<nsIRDFResource> res;
const char* uri;
nsCOMPtr<nsIRDFInt> intLiteral;
gRDFService->GetIntLiteral(DOWNLOADING, getter_AddRefs(intLiteral));
nsCOMPtr<nsISimpleEnumerator> downloads;
nsresult rv = mDataSource->GetSources(gNC_DownloadState, intLiteral, PR_TRUE, getter_AddRefs(downloads));
if (NS_FAILED(rv)) return rv;
PRBool hasMoreElements;
downloads->HasMoreElements(&hasMoreElements);
while (hasMoreElements) {
downloads->GetNext(getter_AddRefs(supports));
res = do_QueryInterface(supports);
res->GetValueConst(&uri);
AssertProgressInfoFor(uri);
downloads->HasMoreElements(&hasMoreElements);
}
return rv;
}
nsresult
nsDownloadManager::AssertProgressInfoFor(const char* aPath)
{

Просмотреть файл

@ -82,7 +82,6 @@ protected:
nsresult GetDownloadsContainer(nsIRDFContainer** aResult);
nsresult GetProfileDownloadsFileURL(nsCString& aDownloadsFileURL);
nsresult GetDataSource(nsIRDFDataSource** aDataSource);
nsresult AssertProgressInfo();
nsresult DownloadStarted(const char* aPersistentDescriptor);
nsresult AssertProgressInfoFor(const char* aPersistentDescriptor);