41 #ifndef ieprofilemigrator___h___
42 #define ieprofilemigrator___h___
46 #include "nsIBrowserProfileMigrator.h"
47 #include "nsIObserverService.h"
49 #include "nsINavHistoryService.h"
52 class nsICookieManager2;
54 class nsINavBookmarksService;
63 #import PSTOREC_DLL raw_interfaces_only
64 using namespace PSTORECLib;
67 public nsINavHistoryBatchCallback {
69 NS_DECL_NSIBROWSERPROFILEMIGRATOR
70 NS_DECL_NSINAVHISTORYBATCHCALLBACK
74 virtual ~nsIEProfileMigrator();
77 nsresult CopyPreferences(PRBool aReplace);
78 nsresult CopyStyleSheet(PRBool aReplace);
79 nsresult CopyCookies(PRBool aReplace);
90 nsresult CopyHistory(PRBool aReplace);
91 nsresult CopyHistoryBatched(PRBool aReplace);
93 PRBool KeyIsURI(
const nsAString& aKey,
char** aRealm);
95 nsresult CopyPasswords(PRBool aReplace);
96 nsresult MigrateSiteAuthSignons(IPStore* aPStore);
97 nsresult GetSignonsListFromPStore(IPStore* aPStore, nsTArray<SignonData>* aSignonsFound);
98 nsresult ResolveAndMigrateSignons(IPStore* aPStore, nsTArray<SignonData>* aSignonsFound);
99 void EnumerateUsernames(
const nsAString& aKey, PRUnichar*
aData,
unsigned long aCount, nsTArray<SignonData>* aSignonsFound);
100 void GetUserNameAndPass(
unsigned char*
data,
unsigned long len,
unsigned char** username,
unsigned char** pass);
102 nsresult CopyFormData(PRBool aReplace);
103 nsresult AddDataToFormHistory(
const nsAString& aKey, PRUnichar* data,
unsigned long len);
113 nsresult CopyFavorites(PRBool aReplace);
114 nsresult CopyFavoritesBatched(PRBool aReplace);
115 void ResolveShortcut(
const nsString &aFileName,
char** aOutURL);
116 nsresult ParseFavoritesFolder(nsIFile* aDirectory,
117 PRInt64 aParentFolder,
118 nsINavBookmarksService* aBookmarksService,
119 const nsAString& aPersonalToolbarFolderName,
120 PRBool aIsAtRootLevel);
121 nsresult CopySmartKeywords(nsINavBookmarksService* aBMS,
122 PRInt64 aParentFolder);
124 nsresult CopyCookiesFromBuffer(
char *aBuffer, PRUint32 aBufferLength,
125 nsICookieManager2 *aCookieManager);
126 void DelimitField(
char **aBuffer,
const char *aBufferEnd,
char **aField);
127 time_t FileTimeToTimeT(
const char *aLowDateIntString,
128 const char *aHighDateIntString);
129 void GetUserStyleSheetFile(nsIFile **aUserFile);
133 nsCOMPtr<nsIObserverService> mObserverService;
restoreHistoryPrecursor aCount
_updateTextAndScrollDataForFrame aData