Move the Class definition for CacheInfo from the CPP file to the header.

While this is valid C++, the AIX 3.6 compiler doesn't like it.

r= warren
This commit is contained in:
jdunn%netscape.com 2000-01-06 20:50:59 +00:00
parent 619d700ee4
commit 33b9771398
2 changed files with 8 additions and 10 deletions

View File

@ -36,15 +36,6 @@
// Constant used to estimate frequency of access to a document based on size
#define CACHE_CONST_B 1.35
// A cache whose space is managed by this replacement policy
class nsReplacementPolicy::CacheInfo {
public:
CacheInfo(nsINetDataCache* aCache):mCache(aCache),mNext(0) {}
nsINetDataCache* mCache;
CacheInfo* mNext;
};
nsReplacementPolicy::nsReplacementPolicy()
: mRankedEntries(0), mCaches(0), mRecordsRemovedSinceLastRanking(0),
mNumEntries(0), mCapacityRankedEntriesArray(0), mLastRankTime(0) {}

View File

@ -86,7 +86,14 @@ private:
nsresult CheckForTooManyCacheEntries();
nsresult LoadAllRecordsInAllCacheDatabases();
class CacheInfo;
// A cache whose space is managed by this replacement policy
class CacheInfo {
public:
CacheInfo(nsINetDataCache* aCache):mCache(aCache),mNext(0) {}
nsINetDataCache* mCache;
CacheInfo* mNext;
};
private: