Bug 707436 - nsSetSmartSizeEvent can cause a lot of IO on the main thread

This commit is contained in:
Michal Novotny
2011-12-24 02:51:25 +01:00
parent c590707e3c
commit 95af2bb6a4
4 changed files with 57 additions and 7 deletions

View File

@@ -182,7 +182,7 @@ public:
static void OnEnterExitPrivateBrowsing();
// Starts smart cache size computation if disk device is available
static nsresult SetDiskSmartSize();
static nsresult SetDiskSmartSize(bool checkPref);
nsresult Init();
void Shutdown();
@@ -196,6 +196,7 @@ private:
friend class nsProcessRequestEvent;
friend class nsSetSmartSizeEvent;
friend class nsBlockOnCacheThreadEvent;
friend class nsSetDiskSmartSizeCallback;
/**
* Internal Methods