mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
619d700ee4
commit
33b9771398
9
netwerk/cache/mgr/nsReplacementPolicy.cpp
vendored
9
netwerk/cache/mgr/nsReplacementPolicy.cpp
vendored
@ -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) {}
|
||||
|
9
netwerk/cache/mgr/nsReplacementPolicy.h
vendored
9
netwerk/cache/mgr/nsReplacementPolicy.h
vendored
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user