Made accessGranted be of type nsCacheAccessMode. This is not part of the mozilla build.

This commit is contained in:
darin%netscape.com 2001-02-24 01:36:11 +00:00
Родитель a19e03ee92
Коммит d22de88f0f
2 изменённых файлов: 8 добавлений и 8 удалений

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

@ -28,7 +28,7 @@
NS_IMPL_ISUPPORTS1(nsCacheEntryDescriptor, nsICacheEntryDescriptor)
nsCacheEntryDescriptor::nsCacheEntryDescriptor(nsCacheEntry * entry,
PRUint32 accessGranted)
nsCacheAccessMode accessGranted)
: mCacheEntry(entry), mAccessGranted(accessGranted)
{
NS_INIT_ISUPPORTS();
@ -42,7 +42,7 @@ nsCacheEntryDescriptor::~nsCacheEntryDescriptor()
NS_METHOD
nsCacheEntryDescriptor::Create(nsCacheEntry * entry, PRUint32 accessGranted,
nsCacheEntryDescriptor::Create(nsCacheEntry * entry, nsCacheAccessMode accessGranted,
nsICacheEntryDescriptor ** result)
{
nsresult rv = nsnull;
@ -157,7 +157,7 @@ nsCacheEntryDescriptor::SetCacheElement(nsISupports * cacheElement)
/* readonly attribute unsigned long accessGranted; */
NS_IMETHODIMP
nsCacheEntryDescriptor::GetAccessGranted(PRUint32 *accessGranted)
nsCacheEntryDescriptor::GetAccessGranted(nsCacheAccessMode *accessGranted)
{
*accessGranted = mAccessGranted;
return NS_OK;

10
netwerk/cache/src/nsCacheEntryDescriptor.h поставляемый
Просмотреть файл

@ -35,10 +35,10 @@ public:
NS_DECL_NSITRANSPORT
NS_DECL_NSICACHEENTRYDESCRIPTOR
nsCacheEntryDescriptor(nsCacheEntry * entry, PRUint32 flags);
nsCacheEntryDescriptor(nsCacheEntry * entry, nsCacheAccessMode mode);
virtual ~nsCacheEntryDescriptor();
static nsresult Create(nsCacheEntry * entry, PRUint32 accessGranted,
static nsresult Create(nsCacheEntry * entry, nsCacheAccessMode accessGranted,
nsICacheEntryDescriptor ** result);
/**
@ -54,9 +54,9 @@ public:
protected:
PRCList mListLink;
nsCacheEntry * mCacheEntry; // we are a child of the entry
PRUint32 mAccessGranted;
PRCList mListLink;
nsCacheEntry * mCacheEntry; // we are a child of the entry
nsCacheAccessMode mAccessGranted;
};