41 Commits

Author SHA1 Message Date
edburns%acm.org
1af32fc433 I know it's unorthodox to do a top level checkin like this, but I've got so many files
in so many different directories, that I think it's the best way.
I've pulled and clobber_all'd my tree and got

r=dp

on this checkin.

Here are the touched files:

M mozilla/embedding/browser/activex/src/control/MozillaBrowser.cpp
M mozilla/embedding/browser/activex/src/control/MozillaBrowser.h
M mozilla/js/src/xpconnect/shell/xpcshell.cpp
M mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp
M mozilla/xpcom/build/nsXPComInit.cpp
M mozilla/xpcom/components/nsComponentManager.cpp
M mozilla/xpcom/components/nsIServiceManager.h
M mozilla/xpcom/components/nsServiceManager.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.h
M mozilla/xpcom/tests/TestBuffers.cpp
M mozilla/xpcom/tests/TestPipes.cpp
M mozilla/xpcom/tests/TestShutdown.cpp
M mozilla/xpcom/tests/windows/TestHelloXPLoop.cpp
M mozilla/xpcom/tools/registry/regExport.cpp
M mozilla/xpcom/tools/registry/regxpcom.cpp
M mozilla/xpinstall/stub/xpistub.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.h
M mozilla/webshell/tests/viewer/nsMacMain.cpp
M mozilla/webshell/tests/viewer/nsPhMain.cpp
M mozilla/webshell/tests/viewer/nsWinMain.cpp
M mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp
M mozilla/xpfe/appshell/src/nsFileLocations.cpp
M mozilla/xpfe/bootstrap/nsAppRunner.cpp

The heart of this checkin is a change in the signature and symantics
of NS_InitXPCOM.

The new signature is

extern NS_COM nsresult
NS_InitXPCOM(nsIServiceManager* *result, nsFileSpec* binDirectory);

I filed a bug for this problem:

b=23157

The original manifestation of this bug was in mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp It used the current process directory to find resources, which is not correct when the current process is not mozilla.exe.

I have added a new type to nsSpecialSystemDirectory, Moz_BinDirectory, and made nsResProtocolHandler use that value.


git-svn-id: svn://10.0.0.236/trunk@56916 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-06 01:05:13 +00:00
warren%netscape.com
4627ac062f Fixed xpcom shutdown to disallow reconstruction of the global service manager. r=dp
git-svn-id: svn://10.0.0.236/trunk@56889 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-06 00:34:38 +00:00
blizzard%redhat.com
1f1ce365e8 Change nsComponentManager::ProgIDToCLSID to nsComponentManager::ProgIDToClassID as per bug #3579. Checking in for sford. r=scc,r=blizzard
git-svn-id: svn://10.0.0.236/trunk@56630 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-30 22:03:58 +00:00
dp%netscape.com
76ba2b6544 Adding assertion to check for improper shutdown of servicemanager. r=chofmann@netscape.com
git-svn-id: svn://10.0.0.236/trunk@55679 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 02:00:30 +00:00
dp%netscape.com
69dd443d63 NS_RELEASE if there isn't a global service manager
git-svn-id: svn://10.0.0.236/trunk@54581 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 21:02:51 +00:00
scc%netscape.com
b27b4320eb Added |do_GetService| of a specific service manager as opposed to the global one. Fixed the appropriate macro accordingly. Please note: travis will be supporting this change until I'm back online in Michigan. r=dp.
git-svn-id: svn://10.0.0.236/trunk@54257 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 05:55:33 +00:00
scc%netscape.com
9fec22a94d Added |do_CreateInstance()|, |do_GetService()| both by CID and ProgID. See bugs #17364, #17448. r={travis, dp}
git-svn-id: svn://10.0.0.236/trunk@53045 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 00:14:54 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
dp%netscape.com
df73ba585b Deny GetService() requests which cause Creation of new objects on
shutdown. r=jband, r=ScottPutterman


git-svn-id: svn://10.0.0.236/trunk@52682 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 05:38:45 +00:00
kipp%netscape.com
24d8b1eba7 Fixed bug in ReleaseServcie that was recreating the service manager during shutdown
git-svn-id: svn://10.0.0.236/trunk@49493 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:40:27 +00:00
warren%netscape.com
4a5f6f43ca fixed ReleaseService and UnregisterService to work during shutdown
git-svn-id: svn://10.0.0.236/trunk@48372 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:54:09 +00:00
dp%netscape.com
103414ae51 Ability for XPCOM to use non-default component registry and component directory
git-svn-id: svn://10.0.0.236/trunk@47809 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:28:57 +00:00
warren%netscape.com
4659a90837 Don't hold the service manager lock around CreateInstance -- deadlock potential.
git-svn-id: svn://10.0.0.236/trunk@47282 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 04:50:48 +00:00
waterson%netscape.com
c98b719683 Create a monitor as a member variable instead of using cached monitor.
git-svn-id: svn://10.0.0.236/trunk@45643 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 04:12:08 +00:00
scc%netscape.com
56d5ad0b43 got rid of |NS_IMPL_ISUPPORTS|, where possible, in favor of |NS_IMPL_ISUPPORTS0| or ...1 according to the specific use; got rid of |NS_DEFINE_IID| where possible, or where it should have been |NS_DEFINE_CID|; fixed bad implementations of |QueryInterface|, where possible. Built, tested apprunner, reviewed the changes with hyatt (since he was around to look) before checking in
git-svn-id: svn://10.0.0.236/trunk@44139 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 10:14:16 +00:00
dp%netscape.com
14d3f28f8e Calling shutdown listeners on XPCOM Shutdown. Fix bug #11790
git-svn-id: svn://10.0.0.236/trunk@43353 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-14 21:32:29 +00:00
shaver%netscape.com
d0e1e2e010 defend against NULL GlobalServiceManager
git-svn-id: svn://10.0.0.236/trunk@43148 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 04:08:44 +00:00
dp%netscape.com
7a6bfd9959 Fixed typo.
git-svn-id: svn://10.0.0.236/trunk@42293 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 12:58:04 +00:00
dp%netscape.com
06fe960d99 Adding consistency checks on ReleaseService.
git-svn-id: svn://10.0.0.236/trunk@42132 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 09:36:12 +00:00
dp%netscape.com
92d0478e7d - Removed calling FreeLibraries()
- ReleaseService() wont delete anymore
- Made ReleaseService() and UnregisterService() simpler
- Shutdown releated Assertion removal.


git-svn-id: svn://10.0.0.236/trunk@41910 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 00:53:55 +00:00
warren%netscape.com
de5159d308 Fixed leak in nsObserverList. Used nsObjectHashtable in service mgr implementation.
git-svn-id: svn://10.0.0.236/trunk@41589 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-30 07:58:55 +00:00
bruce%cybersight.com
1cbb18e94c Remove local shadowing of variable.
git-svn-id: svn://10.0.0.236/trunk@33108 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 05:29:26 +00:00
dp%netscape.com
befa259a88 Landing xpcom20/21 branch.
git-svn-id: svn://10.0.0.236/trunk@32644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 01:38:36 +00:00
warren%netscape.com
0788be3644 Added size argument to Free and Realloc (for implementations that can't determine the memory block's size. Needed for nsPageMgr. Hooked allocator up to xpcom initialization.
git-svn-id: svn://10.0.0.236/trunk@29899 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 22:54:28 +00:00
dp%netscape.com
16146ff7b3 Returning servicemanager from NS_InitXPCOM()
git-svn-id: svn://10.0.0.236/trunk@26272 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 04:32:08 +00:00
warren%netscape.com
bc140cf411 Added progID versions of methods to nsServiceManager (the static interface).
git-svn-id: svn://10.0.0.236/trunk@26018 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 05:17:42 +00:00
dp%netscape.com
a70c1d486b More threadsafeness.
git-svn-id: svn://10.0.0.236/trunk@25829 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 06:45:50 +00:00
warren%netscape.com
eaa60af4c4 Added ShutdownGlobalServiceManager
git-svn-id: svn://10.0.0.236/trunk@25313 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-27 02:22:33 +00:00
ftang%netscape.com
e85bdbc9b2 take out wrong assertion, we should do QueryInterface to both entry->mService and service with the sand IID and them compare them . approved by warren
git-svn-id: svn://10.0.0.236/trunk@25160 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-26 00:49:06 +00:00
warren%netscape.com
fdba323f1a Added ProgID versions of RegisterService and UnregisterService.
git-svn-id: svn://10.0.0.236/trunk@24932 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-24 00:40:29 +00:00
dp%netscape.com
587ed6002b InitXPCOM() : For a defined initialization sequence of xpcom global objects and components.
git-svn-id: svn://10.0.0.236/trunk@24915 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 23:28:32 +00:00
warren%netscape.com
e5d24a2696 Added progID version of GetService. Fixed up nsService to not be a template.
git-svn-id: svn://10.0.0.236/trunk@23597 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 22:53:17 +00:00
warren%netscape.com
0b33372d99 nsRepository -> nsIComponentManager changes.
git-svn-id: svn://10.0.0.236/trunk@23300 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 09:44:27 +00:00
warren%netscape.com
eef8571946 Added nsIAllocator and implementation. Made service manager services sticky'.
git-svn-id: svn://10.0.0.236/trunk@18690 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-27 02:02:22 +00:00
sudu%netscape.com
d3239a027a OJI MozClassic to raptor merge
git-svn-id: svn://10.0.0.236/trunk@18465 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-25 08:05:00 +00:00
rpotts%netscape.com
0f2cf4f48b bug #2227 - NSPR is not being implicitly initialized when PR_CEnterMonitor() is called. This hack should be removed when NSPR is fixed.
git-svn-id: svn://10.0.0.236/trunk@17345 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-08 00:38:56 +00:00
warren%netscape.com
5f54c1af03 Networking changes: Reworked nsIURL, adding setters, factoring Open. Unsigned arguments for nsIStreamListener.
git-svn-id: svn://10.0.0.236/trunk@16495 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:40:20 +00:00
warren%netscape.com
226ae1a7bb Changed NSServiceManager to nsServiceManager.
git-svn-id: svn://10.0.0.236/trunk@8918 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:17:47 +00:00
warren%netscape.com
9f4a9bc9a2 Added class ID to OnShutdown.
git-svn-id: svn://10.0.0.236/trunk@8740 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 21:47:44 +00:00
warren%netscape.com
7876a9e765 Added service manager mechanism.
git-svn-id: svn://10.0.0.236/trunk@8738 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 21:28:35 +00:00
warren%netscape.com
31ab835636 Added service manager mechanism.
git-svn-id: svn://10.0.0.236/trunk@8737 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 21:25:34 +00:00