Raptor only change. Providing method definitions for IsURLInCache when NU_CACHE is defined.

This commit is contained in:
valeski%netscape.com 1998-10-14 22:39:16 +00:00
parent 2c6f9dc1d9
commit cee140ae96
2 changed files with 24 additions and 2 deletions

View File

@ -62,10 +62,13 @@ public:
NET_ReloadMethod aReloadMethod);
virtual PRBool IsLocalFileURL(char *aAddress);
#ifdef NU_CACHE
virtual PRBool IsURLInCache(ilIURL *aUrl);
#else /* NU_CACHE */
virtual PRBool IsURLInMemCache(ilIURL *aUrl);
virtual PRBool IsURLInDiskCache(ilIURL *aUrl);
#endif
virtual int GetURL (ilIURL * aUrl, NET_ReloadMethod aLoadMethod,
ilINetReader *aReader);
@ -426,6 +429,13 @@ ImageNetContextImpl::IsLocalFileURL(char *aAddress)
}
}
#ifdef NU_CACHE
PRBool
ImageNetContextImpl::IsURLInCache(ilIURL *aUrl)
{
return PR_TRUE;
}
#else /* NU_CACHE */
PRBool
ImageNetContextImpl::IsURLInMemCache(ilIURL *aUrl)
{
@ -437,6 +447,7 @@ ImageNetContextImpl::IsURLInDiskCache(ilIURL *aUrl)
{
return PR_TRUE;
}
#endif /* NU_CACHE */
int
ImageNetContextImpl::GetURL (ilIURL * aURL,

View File

@ -53,10 +53,13 @@ public:
NET_ReloadMethod aReloadMethod);
virtual PRBool IsLocalFileURL(char* aAddress);
#ifdef NU_CACHE
virtual PRBool IsURLInCache(ilIURL* aUrl);
#else /* NU_CACHE */
virtual PRBool IsURLInMemCache(ilIURL* aUrl);
virtual PRBool IsURLInDiskCache(ilIURL* aUrl);
#endif /* NU_CACHE */
virtual int GetURL(ilIURL* aUrl,
NET_ReloadMethod aLoadMethod,
@ -128,6 +131,13 @@ ImageNetContextSyncImpl::IsLocalFileURL(char *aAddress)
}
}
#ifdef NU_CACHE
PRBool
ImageNetContextSyncImpl::IsURLInCache(ilIURL *aUrl)
{
return PR_TRUE;
}
#else /* NU_CACHE */
PRBool
ImageNetContextSyncImpl::IsURLInMemCache(ilIURL *aUrl)
{
@ -139,6 +149,7 @@ ImageNetContextSyncImpl::IsURLInDiskCache(ilIURL *aUrl)
{
return PR_FALSE;
}
#endif /* NU_CACHE */
int
ImageNetContextSyncImpl::GetURL(ilIURL* aURL,