1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
23 * Joe Hewitt <hewitt@netscape.com> (Original Author)
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 #include "nsIGenericFactory.h"
41 #include "nsBrowserCompsCID.h"
42 #include "nsPlacesImportExportService.h"
44 #include "nsWindowsShellService.h"
45 #elif defined(XP_MACOSX)
46 #include "nsMacShellService.h"
47 #elif defined(MOZ_WIDGET_GTK2)
48 #include "nsGNOMEShellService.h"
50 #include "nsProfileMigrator.h"
52 #include "nsDogbertProfileMigrator.h"
55 #include "nsOperaProfileMigrator.h"
57 #include "nsPhoenixProfileMigrator.h"
58 #include "nsSeamonkeyProfileMigrator.h"
59 #if defined(XP_WIN) && !defined(__MINGW32__)
60 #include "nsIEProfileMigrator.h"
61 #elif defined(XP_MACOSX)
62 #include "nsSafariProfileMigrator.h"
63 #include "nsOmniWebProfileMigrator.h"
64 #include "nsMacIEProfileMigrator.h"
65 #include "nsCaminoProfileMigrator.h"
66 #include "nsICabProfileMigrator.h"
69 #include "nsFeedSniffer.h"
70 #include "nsAboutFeeds.h"
71 #include "nsIAboutModule.h"
73 /////////////////////////////////////////////////////////////////////////////
75 NS_GENERIC_FACTORY_CONSTRUCTOR(nsPlacesImportExportService
)
77 NS_GENERIC_FACTORY_CONSTRUCTOR(nsWindowsShellService
)
78 #elif defined(XP_MACOSX)
79 NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacShellService
)
80 #elif defined(MOZ_WIDGET_GTK2)
81 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGNOMEShellService
, Init
)
84 NS_GENERIC_FACTORY_CONSTRUCTOR(nsDogbertProfileMigrator
)
87 NS_GENERIC_FACTORY_CONSTRUCTOR(nsOperaProfileMigrator
)
89 NS_GENERIC_FACTORY_CONSTRUCTOR(nsPhoenixProfileMigrator
)
90 NS_GENERIC_FACTORY_CONSTRUCTOR(nsProfileMigrator
)
91 NS_GENERIC_FACTORY_CONSTRUCTOR(nsSeamonkeyProfileMigrator
)
92 #if defined(XP_WIN) && !defined(__MINGW32__)
93 NS_GENERIC_FACTORY_CONSTRUCTOR(nsIEProfileMigrator
)
94 #elif defined(XP_MACOSX)
95 NS_GENERIC_FACTORY_CONSTRUCTOR(nsSafariProfileMigrator
)
96 NS_GENERIC_FACTORY_CONSTRUCTOR(nsOmniWebProfileMigrator
)
97 NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacIEProfileMigrator
)
98 NS_GENERIC_FACTORY_CONSTRUCTOR(nsCaminoProfileMigrator
)
99 NS_GENERIC_FACTORY_CONSTRUCTOR(nsICabProfileMigrator
)
101 NS_GENERIC_FACTORY_CONSTRUCTOR(nsFeedSniffer
)
103 /////////////////////////////////////////////////////////////////////////////
105 static const nsModuleComponentInfo components
[] =
108 { "Browser Shell Service",
110 NS_SHELLSERVICE_CONTRACTID
,
111 nsWindowsShellServiceConstructor
},
113 #elif defined(MOZ_WIDGET_GTK2)
114 { "Browser Shell Service",
116 NS_SHELLSERVICE_CONTRACTID
,
117 nsGNOMEShellServiceConstructor
},
122 { "Places Import/Export Service",
123 NS_PLACESIMPORTEXPORTSERVICE_CID
,
124 NS_PLACESIMPORTEXPORTSERVICE_CONTRACTID
,
125 nsPlacesImportExportServiceConstructor
},
129 NS_FEEDSNIFFER_CONTRACTID
,
130 nsFeedSnifferConstructor
,
131 nsFeedSniffer::Register
},
133 { "about:feeds Page",
135 NS_ABOUT_MODULE_CONTRACTID_PREFIX
"feeds",
139 { "Profile Migrator",
140 NS_FIREFOX_PROFILEMIGRATOR_CID
,
141 NS_PROFILEMIGRATOR_CONTRACTID
,
142 nsProfileMigratorConstructor
},
144 #if defined(XP_WIN) && !defined(__MINGW32__)
145 { "Internet Explorer (Windows) Profile Migrator",
146 NS_WINIEPROFILEMIGRATOR_CID
,
147 NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX
"ie",
148 nsIEProfileMigratorConstructor
},
150 #elif defined(XP_MACOSX)
151 { "Browser Shell Service",
153 NS_SHELLSERVICE_CONTRACTID
,
154 nsMacShellServiceConstructor
},
156 { "Safari Profile Migrator",
157 NS_SAFARIPROFILEMIGRATOR_CID
,
158 NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX
"safari",
159 nsSafariProfileMigratorConstructor
},
161 { "Internet Explorer (Macintosh) Profile Migrator",
162 NS_MACIEPROFILEMIGRATOR_CID
,
163 NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX
"macie",
164 nsMacIEProfileMigratorConstructor
},
166 { "OmniWeb Profile Migrator",
167 NS_OMNIWEBPROFILEMIGRATOR_CID
,
168 NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX
"omniweb",
169 nsOmniWebProfileMigratorConstructor
},
171 { "Camino Profile Migrator",
172 NS_CAMINOPROFILEMIGRATOR_CID
,
173 NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX
"camino",
174 nsCaminoProfileMigratorConstructor
},
176 { "iCab Profile Migrator",
177 NS_ICABPROFILEMIGRATOR_CID
,
178 NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX
"icab",
179 nsICabProfileMigratorConstructor
},
184 { "Opera Profile Migrator",
185 NS_OPERAPROFILEMIGRATOR_CID
,
186 NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX
"opera",
187 nsOperaProfileMigratorConstructor
},
190 #if !defined(XP_BEOS)
191 { "Netscape 4.x Profile Migrator",
192 NS_DOGBERTPROFILEMIGRATOR_CID
,
193 NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX
"dogbert",
194 nsDogbertProfileMigratorConstructor
},
197 { "Phoenix Profile Migrator",
198 NS_PHOENIXPROFILEMIGRATOR_CID
,
199 NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX
"phoenix",
200 nsPhoenixProfileMigratorConstructor
},
202 { "Seamonkey Profile Migrator",
203 NS_SEAMONKEYPROFILEMIGRATOR_CID
,
204 NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX
"seamonkey",
205 nsSeamonkeyProfileMigratorConstructor
}
208 NS_IMPL_NSGETMODULE(nsBrowserCompsModule
, components
)