mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 469528: add comments specifying units used for various cache capacities, r+sr=biesi
This commit is contained in:
parent
45ed9ca6a1
commit
9746c70909
6
netwerk/cache/src/nsCacheService.cpp
vendored
6
netwerk/cache/src/nsCacheService.cpp
vendored
@ -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;
|
||||
};
|
||||
|
2
netwerk/cache/src/nsCacheService.h
vendored
2
netwerk/cache/src/nsCacheService.h
vendored
@ -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();
|
||||
|
2
netwerk/cache/src/nsDiskCacheDeviceSQL.h
vendored
2
netwerk/cache/src/nsDiskCacheDeviceSQL.h
vendored
@ -266,7 +266,7 @@ private:
|
||||
nsCOMPtr<mozIStorageStatement> mStatement_FindClientByNamespace;
|
||||
|
||||
nsCOMPtr<nsILocalFile> mCacheDirectory;
|
||||
PRUint32 mCacheCapacity;
|
||||
PRUint32 mCacheCapacity; // in bytes
|
||||
PRInt32 mDeltaCounter;
|
||||
|
||||
nsInterfaceHashtable<nsCStringHashKey, nsIWeakReference> mCaches;
|
||||
|
Loading…
Reference in New Issue
Block a user