mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
Raptor only change. Providing method definitions for IsURLInCache when NU_CACHE is defined.
This commit is contained in:
parent
2c6f9dc1d9
commit
cee140ae96
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user