Bug 692255 - Get rid of prefetch files on Windows for faster startup. r=rstrong

This commit is contained in:
Brian R. Bondy
2012-05-27 22:40:48 -04:00
parent 3560f2c802
commit a3bcca99ed
13 changed files with 488 additions and 15 deletions

View File

@@ -9,6 +9,7 @@
#include "nscore.h"
#include "nsStringAPI.h"
#include "nsIWindowsShellService.h"
#include "nsITimer.h"
#include <windows.h>
#include <ole2.h>
@@ -16,8 +17,8 @@
class nsWindowsShellService : public nsIWindowsShellService
{
public:
nsWindowsShellService() : mCheckedThisSession(false) {};
virtual ~nsWindowsShellService() {};
nsWindowsShellService();
virtual ~nsWindowsShellService();
NS_DECL_ISUPPORTS
NS_DECL_NSISHELLSERVICE
@@ -27,6 +28,10 @@ protected:
bool IsDefaultBrowserVista(bool* aIsDefaultBrowser);
private:
#if defined(MOZ_MAINTENANCE_SERVICE)
static void LaunchPrefetchClearCommand(nsITimer *aTimer, void*);
nsCOMPtr<nsITimer> mTimer;
#endif
bool mCheckedThisSession;
};