38 #ifndef dogbertprofilemigrator___h___
39 #define dogbertprofilemigrator___h___
41 #include "nsIBrowserProfileMigrator.h"
42 #include "nsILocalFile.h"
43 #include "nsIObserverService.h"
44 #include "nsISupportsArray.h"
46 #include "nsStringAPI.h"
49 #define NEED_TO_FIX_4X_COOKIES 1
50 #define SECONDS_BETWEEN_1900_AND_1970 2208988800UL
59 NS_DECL_NSIBROWSERPROFILEMIGRATOR
72 const nsAString& aTargetPrefFileName);
75 #ifdef NEED_TO_FIX_4X_COOKIES
76 nsresult FixDogbertCookies();
85 nsCOMPtr<nsISupportsArray> mProfiles;
86 nsCOMPtr<nsIObserverService> mObserverService;
nsresult CopyBookmarks(PRBool aReplace)
static nsresult GetImagePref(void *aTransform, nsIPrefBranch *aBranch)
void GetSourceProfile(const PRUnichar *aProfile)
nsresult CopyPreferences(PRBool aReplace)
nsresult MigrateDogbertBookmarks()
nsresult CopyCookies(PRBool aReplace)
NS_DECL_NSIBROWSERPROFILEMIGRATOR NS_DECL_ISUPPORTS nsDogbertProfileMigrator()
nsresult TransformPreferences(const nsAString &aSourcePrefFileName, const nsAString &aTargetPrefFileName)
static nsresult GetHomepage(void *aTransform, nsIPrefBranch *aBranch)
virtual ~nsDogbertProfileMigrator()