39 #ifndef safariprofilemigrator___h___
40 #define safariprofilemigrator___h___
42 #include "nsIBrowserProfileMigrator.h"
43 #include "nsIObserverService.h"
44 #include "nsISupportsArray.h"
45 #include "nsStringAPI.h"
46 #include "nsINavHistoryService.h"
48 #include <CoreFoundation/CoreFoundation.h>
50 class nsIRDFDataSource;
53 public nsINavHistoryBatchCallback
56 NS_DECL_NSIBROWSERPROFILEMIGRATOR
57 NS_DECL_NSINAVHISTORYBATCHCALLBACK
91 static void CleanResource(nsIRDFDataSource* aDataSource, nsIRDFResource* aResource);
118 PRInt64 aParentFolder,
119 nsINavBookmarksService * aBookmarksService,
120 PRBool aIsAtRootLevel);
128 PRBool HasFormDataToImport();
129 nsCOMPtr<nsIObserverService> mObserverService;
static void CleanResource(nsIRDFDataSource *aDataSource, nsIRDFResource *aResource)
static nsresult SetDownloadFolder(void *aTransform, nsIPrefBranch *aBranch)
nsresult CopyBookmarksBatched(PRBool aReplace)
nsresult(* prefConverter)(void *, nsIPrefBranch *)
static nsresult SetInt(void *aTransform, nsIPrefBranch *aBranch)
virtual ~nsSafariProfileMigrator()
static nsresult SetString(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetDownloadRetention(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetDisplayImages(void *aTransform, nsIPrefBranch *aBranch)
nsresult CopyBookmarks(PRBool aReplace)
nsresult CopyFormData(PRBool aReplace)
nsresult CopyPreferences(PRBool aReplace)
static nsresult SetFontName(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetDefaultEncoding(void *aTransform, nsIPrefBranch *aBranch)
nsresult CopyHistoryBatched(PRBool aReplace)
static nsresult SetFontSize(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetDownloadHandlers(void *aTransform, nsIPrefBranch *aBranch)
nsresult CopyCookies(PRBool aReplace)
NS_DECL_NSIBROWSERPROFILEMIGRATOR NS_DECL_NSINAVHISTORYBATCHCALLBACK NS_DECL_ISUPPORTS nsSafariProfileMigrator()
nsresult GetSafariUserStyleSheet(nsILocalFile **aResult)
nsresult ProfileHasContentStyleSheet(PRBool *outExists)
static nsresult SetBoolInverted(void *aTransform, nsIPrefBranch *aBranch)
nsresult CopyHistory(PRBool aReplace)
static nsresult SetBool(void *aTransform, nsIPrefBranch *aBranch)
nsresult ParseBookmarksFolder(CFArrayRef aChildren, PRInt64 aParentFolder, nsINavBookmarksService *aBookmarksService, PRBool aIsAtRootLevel)
nsresult CopyOtherData(PRBool aReplace)