Bug 237745 (app-startup) - split off the pieces of appshellservice that have to do with the startup sequence into a new (forked, temporarily) app-startup service r+sr=darin+biesi+Neil

git-svn-id: svn://10.0.0.236/trunk@164618 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bsmedberg%covad.net
2004-10-29 19:28:38 +00:00
parent d4510dd4f4
commit 13d4d56d80
127 changed files with 5920 additions and 2186 deletions

View File

@@ -34,45 +34,31 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsIFactory.h"
#include "nsIComponentManager.h"
#include "nscore.h"
#include "nsIComponentManager.h"
#include "nsAppShellCIDs.h"
#include "nsICmdLineService.h"
#include "nsIWindowMediator.h"
#include "nsAbout.h"
#include "nsIGenericFactory.h"
#include "nsIAppShellService.h"
#include "nsCommandLineService.h"
#include "nsAppShellService.h"
#include "nsWindowMediator.h"
#include "nsChromeTreeOwner.h"
#include "nsAppShellCID.h"
#include "nsUserInfo.h"
/* extern the factory entry points for each component... */
nsresult NS_NewAppShellServiceFactory(nsIFactory** aFactory);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCmdLineService)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAppShellService)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsWindowMediator)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUserInfo)
static const nsModuleComponentInfo gAppShellModuleInfo[] =
{
{ "AppShell Service",
NS_APPSHELL_SERVICE_CID,
"@mozilla.org/appshell/appShellService;1",
NS_APPSHELLSERVICE_CID,
NS_APPSHELLSERVICE_CONTRACTID,
nsAppShellServiceConstructor,
},
{ "CommandLine Service",
NS_COMMANDLINE_SERVICE_CID,
"@mozilla.org/appshell/commandLineService;1",
nsCmdLineServiceConstructor,
},
{ "Window Mediator",
NS_WINDOWMEDIATOR_CID,
NS_WINDOWMEDIATOR_CONTRACTID,
@@ -82,12 +68,7 @@ static const nsModuleComponentInfo gAppShellModuleInfo[] =
NS_ABOUT_CID,
NS_ABOUT_MODULE_CONTRACTID_PREFIX,
nsAbout::Create,
},
{ "User Info Service",
NS_USERINFO_CID,
NS_USERINFO_CONTRACTID,
nsUserInfoConstructor,
},
}
};
PR_STATIC_CALLBACK(nsresult)