Bug 469528: add comments specifying units used for various cache capacities, r+sr=biesi

This commit is contained in:
Gavin Sharp 2008-12-14 21:57:24 -08:00
parent 45ed9ca6a1
commit 9746c70909
3 changed files with 6 additions and 4 deletions

View File

@ -155,15 +155,15 @@ private:
PRBool mHaveProfile;
PRBool mDiskCacheEnabled;
PRInt32 mDiskCacheCapacity;
PRInt32 mDiskCacheCapacity; // in kilobytes
nsCOMPtr<nsILocalFile> mDiskCacheParentDirectory;
PRBool mOfflineCacheEnabled;
PRInt32 mOfflineCacheCapacity;
PRInt32 mOfflineCacheCapacity; // in kilobytes
nsCOMPtr<nsILocalFile> mOfflineCacheParentDirectory;
PRBool mMemoryCacheEnabled;
PRInt32 mMemoryCacheCapacity;
PRInt32 mMemoryCacheCapacity; // in kilobytes
PRBool mInPrivateBrowsing;
};

View File

@ -150,9 +150,11 @@ public:
static void OnProfileChanged();
static void SetDiskCacheEnabled(PRBool enabled);
// Sets the disk cache capacity (in kilobytes)
static void SetDiskCacheCapacity(PRInt32 capacity);
static void SetOfflineCacheEnabled(PRBool enabled);
// Sets the offline cache capacity (in kilobytes)
static void SetOfflineCacheCapacity(PRInt32 capacity);
static void SetMemoryCache();

View File

@ -266,7 +266,7 @@ private:
nsCOMPtr<mozIStorageStatement> mStatement_FindClientByNamespace;
nsCOMPtr<nsILocalFile> mCacheDirectory;
PRUint32 mCacheCapacity;
PRUint32 mCacheCapacity; // in bytes
PRInt32 mDeltaCounter;
nsInterfaceHashtable<nsCStringHashKey, nsIWeakReference> mCaches;