nsIEProfileMigrator.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include "nsAppDirectoryServiceDefs.h"
#include "nsBrowserProfileMigratorUtils.h"
#include "nsCOMPtr.h"
#include "nsCRTGlue.h"
#include "nsNetCID.h"
#include "nsDocShellCID.h"
#include "nsDebug.h"
#include "nsDirectoryServiceDefs.h"
#include "nsDirectoryServiceUtils.h"
#include "nsStringAPI.h"
#include "plstr.h"
#include "prio.h"
#include "prmem.h"
#include "prlong.h"
#include "nsICookieManager2.h"
#include "nsIEProfileMigrator.h"
#include "nsIFile.h"
#include "nsILocalFile.h"
#include "nsIPrefService.h"
#include "nsIPrefBranch.h"
#include "nsISimpleEnumerator.h"
#include "nsISupportsArray.h"
#include "nsIProfileMigrator.h"
#include "nsIBrowserProfileMigrator.h"
#include "nsIObserverService.h"
#include "nsILocalFileWin.h"
#include "nsAutoPtr.h"
#include <objbase.h>
#include <shlguid.h>
#include <urlhist.h>
#include <comdef.h>
#include <shlobj.h>
#include <intshcut.h>
#include "nsIBrowserHistory.h"
#include "nsIGlobalHistory.h"
#include "nsIRDFRemoteDataSource.h"
#include "nsIURI.h"
#include "nsILoginManagerIEMigrationHelper.h"
#include "nsILoginInfo.h"
#include "nsIFormHistory.h"
#include "nsIRDFService.h"
#include "nsIRDFContainer.h"
#include "nsIURL.h"
#include "nsINavBookmarksService.h"
#include "nsBrowserCompsCID.h"
#include "nsIStringBundle.h"
#include "nsNetUtil.h"
#include "nsToolkitCompsCID.h"
#include "nsUnicharUtils.h"
#include "nsIWindowsRegKey.h"
#include "nsISupportsPrimitives.h"

Go to the source code of this file.

Classes

struct  regEntry
 
struct  ProxyData
 

Macros

#define TRIDENTPROFILE_BUNDLE   "chrome://browser/locale/migration/migration.properties"
 
#define REGISTRY_IE_MAIN_KEY   NS_LITERAL_STRING("Software\\Microsoft\\Internet Explorer\\Main")
 
#define REGISTRY_IE_TYPEDURL_KEY   NS_LITERAL_STRING("Software\\Microsoft\\Internet Explorer\\TypedURLs")
 
#define REGISTRY_IE_TOOLBAR_KEY   NS_LITERAL_STRING("Software\\Microsoft\\Internet Explorer\\Toolbar")
 
#define REGISTRY_IE_SEARCHURL_KEY   NS_LITERAL_STRING("Software\\Microsoft\\Internet Explorer\\SearchUrl")
 

Typedefs

typedef void(* regEntryHandler )(nsIWindowsRegKey *, const nsString &, nsIPrefBranch *, char *)
 
typedef HRESULT(WINAPI * PStoreCreateInstancePtr )(IPStore **, DWORD, DWORD, DWORD)
 

Functions

void __stdcall _com_issue_error (HRESULT hr)
 
void TranslateYNtoTF (nsIWindowsRegKey *aRegKey, const nsString &aRegValueName, nsIPrefBranch *aPrefs, char *aPrefKeyName)
 
void TranslateYNtoFT (nsIWindowsRegKey *aRegKey, const nsString &aRegValueName, nsIPrefBranch *aPrefs, char *aPrefKeyName)
 
void TranslateYNtoImageBehavior (nsIWindowsRegKey *aRegKey, const nsString &aRegValueName, nsIPrefBranch *aPrefs, char *aPrefKeyName)
 
void TranslateDWORDtoHTTPVersion (nsIWindowsRegKey *aRegKey, const nsString &aRegValueName, nsIPrefBranch *aPrefs, char *aPrefKeyName)
 
void TranslateDRGBtoHRGB (nsIWindowsRegKey *aRegKey, const nsString &aRegValueName, nsIPrefBranch *aPrefs, char *aPrefKeyName)
 
void TranslateDWORDtoPRInt32 (nsIWindowsRegKey *aRegKey, const nsString &aRegValueName, nsIPrefBranch *aPrefs, char *aPrefKeyName)
 
void TranslateString (nsIWindowsRegKey *aRegKey, const nsString &aRegValueName, nsIPrefBranch *aPrefs, char *aPrefKeyName)
 
void TranslateLanglist (nsIWindowsRegKey *aRegKey, const nsString &aRegValueName, nsIPrefBranch *aPrefs, char *aPrefKeyName)
 
static int CALLBACK fontEnumProc (const LOGFONTW *aLogFont, const TEXTMETRICW *aMetric, DWORD aFontType, LPARAM aClosure)
 
void TranslatePropFont (nsIWindowsRegKey *aRegKey, const nsString &aRegValueName, nsIPrefBranch *aPrefs, char *aPrefKeyName)
 
 NS_IMPL_ISUPPORTS2 (nsIEProfileMigrator, nsIBrowserProfileMigrator, nsINavHistoryBatchCallback)
 

Variables

const int sInitialCookieBufferSize = 1024
 
const int sUsernameLengthLimit = 80
 
const int sHostnameLengthLimit = 255
 
const regEntry gRegEntries []
 
static GUID IEPStoreAutocompGUID = { 0xe161255a, 0x37c3, 0x11d2, { 0xbc, 0xaa, 0x00, 0xc0, 0x4f, 0xd9, 0x29, 0xdb } }
 
static GUID IEPStoreSiteAuthGUID = { 0x5e7e8100, 0x9138, 0x11d1, { 0x94, 0x5a, 0x00, 0xc0, 0x4f, 0xc3, 0x08, 0xff } }
 

Macro Definition Documentation

#define REGISTRY_IE_MAIN_KEY   NS_LITERAL_STRING("Software\\Microsoft\\Internet Explorer\\Main")

Definition at line 101 of file nsIEProfileMigrator.cpp.

#define REGISTRY_IE_SEARCHURL_KEY   NS_LITERAL_STRING("Software\\Microsoft\\Internet Explorer\\SearchUrl")

Definition at line 107 of file nsIEProfileMigrator.cpp.

#define REGISTRY_IE_TOOLBAR_KEY   NS_LITERAL_STRING("Software\\Microsoft\\Internet Explorer\\Toolbar")

Definition at line 105 of file nsIEProfileMigrator.cpp.

#define REGISTRY_IE_TYPEDURL_KEY   NS_LITERAL_STRING("Software\\Microsoft\\Internet Explorer\\TypedURLs")

Definition at line 103 of file nsIEProfileMigrator.cpp.

#define TRIDENTPROFILE_BUNDLE   "chrome://browser/locale/migration/migration.properties"

Definition at line 99 of file nsIEProfileMigrator.cpp.

Typedef Documentation

typedef HRESULT(WINAPI * PStoreCreateInstancePtr)(IPStore **, DWORD, DWORD, DWORD)

Definition at line 875 of file nsIEProfileMigrator.cpp.

typedef void(* regEntryHandler)(nsIWindowsRegKey *, const nsString &, nsIPrefBranch *, char *)

Definition at line 126 of file nsIEProfileMigrator.cpp.

Function Documentation

void __stdcall _com_issue_error ( HRESULT  hr)

Definition at line 117 of file nsIEProfileMigrator.cpp.

static int CALLBACK fontEnumProc ( const LOGFONTW *  aLogFont,
const TEXTMETRICW *  aMetric,
DWORD  aFontType,
LPARAM  aClosure 
)
static

Definition at line 263 of file nsIEProfileMigrator.cpp.

Here is the caller graph for this function:

NS_IMPL_ISUPPORTS2 ( nsIEProfileMigrator  ,
nsIBrowserProfileMigrator  ,
nsINavHistoryBatchCallback   
)
void TranslateDRGBtoHRGB ( nsIWindowsRegKey *  aRegKey,
const nsString &  aRegValueName,
nsIPrefBranch aPrefs,
char *  aPrefKeyName 
)

Definition at line 181 of file nsIEProfileMigrator.cpp.

void TranslateDWORDtoHTTPVersion ( nsIWindowsRegKey *  aRegKey,
const nsString &  aRegValueName,
nsIPrefBranch aPrefs,
char *  aPrefKeyName 
)

Definition at line 167 of file nsIEProfileMigrator.cpp.

Here is the call graph for this function:

void TranslateDWORDtoPRInt32 ( nsIWindowsRegKey *  aRegKey,
const nsString &  aRegValueName,
nsIPrefBranch aPrefs,
char *  aPrefKeyName 
)

Definition at line 199 of file nsIEProfileMigrator.cpp.

void TranslateLanglist ( nsIWindowsRegKey *  aRegKey,
const nsString &  aRegValueName,
nsIPrefBranch aPrefs,
char *  aPrefKeyName 
)

Definition at line 225 of file nsIEProfileMigrator.cpp.

Here is the call graph for this function:

void TranslatePropFont ( nsIWindowsRegKey *  aRegKey,
const nsString &  aRegValueName,
nsIPrefBranch aPrefs,
char *  aPrefKeyName 
)

Definition at line 269 of file nsIEProfileMigrator.cpp.

Here is the call graph for this function:

void TranslateString ( nsIWindowsRegKey *  aRegKey,
const nsString &  aRegValueName,
nsIPrefBranch aPrefs,
char *  aPrefKeyName 
)

Definition at line 213 of file nsIEProfileMigrator.cpp.

void TranslateYNtoFT ( nsIWindowsRegKey *  aRegKey,
const nsString &  aRegValueName,
nsIPrefBranch aPrefs,
char *  aPrefKeyName 
)

Definition at line 142 of file nsIEProfileMigrator.cpp.

void TranslateYNtoImageBehavior ( nsIWindowsRegKey *  aRegKey,
const nsString &  aRegValueName,
nsIPrefBranch aPrefs,
char *  aPrefKeyName 
)

Definition at line 152 of file nsIEProfileMigrator.cpp.

void TranslateYNtoTF ( nsIWindowsRegKey *  aRegKey,
const nsString &  aRegValueName,
nsIPrefBranch aPrefs,
char *  aPrefKeyName 
)

Definition at line 131 of file nsIEProfileMigrator.cpp.

Variable Documentation

const regEntry gRegEntries[]

Definition at line 309 of file nsIEProfileMigrator.cpp.

GUID IEPStoreAutocompGUID = { 0xe161255a, 0x37c3, 0x11d2, { 0xbc, 0xaa, 0x00, 0xc0, 0x4f, 0xd9, 0x29, 0xdb } }
static

Definition at line 882 of file nsIEProfileMigrator.cpp.

GUID IEPStoreSiteAuthGUID = { 0x5e7e8100, 0x9138, 0x11d1, { 0x94, 0x5a, 0x00, 0xc0, 0x4f, 0xc3, 0x08, 0xff } }
static

Definition at line 883 of file nsIEProfileMigrator.cpp.

const int sHostnameLengthLimit = 255

Definition at line 112 of file nsIEProfileMigrator.cpp.

const int sInitialCookieBufferSize = 1024

Definition at line 110 of file nsIEProfileMigrator.cpp.

const int sUsernameLengthLimit = 80

Definition at line 111 of file nsIEProfileMigrator.cpp.