781 Commits

Author SHA1 Message Date
dougt%netscape.com
a288cd7893 130405. Makes the xpcom glue library usable. Updates XPCOM Samples. Adds requires lines to a few implict string/category consumers sr=alecf, sr=brendan@mozilla.org a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@117113 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:43:21 +00:00
seawood%netscape.com
56dfa1e260 Move the following files into the xpcom/glue dir:
nsGenericFactory.cpp
nsIGenericFactory.h
nsIInterfaceRequestorUtils.h
nsISupportsImpl.h
nsISupportsutils.h
nsIWeakReferenceUtils.h
Bug #120474 r=dougt a=asa


git-svn-id: svn://10.0.0.236/trunk@117046 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 09:36:47 +00:00
timeless%mac.com
69ae314807 Bug 106386 rid source of misspellings
r=db48x sr=blake a=asa


git-svn-id: svn://10.0.0.236/trunk@116832 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 04:30:17 +00:00
dougt%netscape.com
32fbf8f488 Make generic module support usable by component and plugin developers. This patch removes the dependency on nsHashtable. bug 108233. sr=alecf@netscape.com, sr=jband@netscape.com, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@115929 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 04:22:27 +00:00
jband%netscape.com
8d3b264218 Replace NS_REINTERPRET_CAST with an NS_STATIC_CAST so that the wrong interface on the enumerator is not returned to callers. Fixes bug 128858. r=rginda sr=shaver a=dbaron (on trunk and 0.9.9 branch)
git-svn-id: svn://10.0.0.236/trunk@115803 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 08:07:17 +00:00
peterv%netscape.com
4816045c3f Fix for bug 5794 ([MAC]Aliasing NGLayoutConfigInclude.h to MacConfigInclude.h is evil). sr=sfraser, a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@115674 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-03 10:57:06 +00:00
dougt%netscape.com
6ed0398082 Disables NSGetFactory support from XPCOM. sr=shaver@mozilla.org, r=dp@netscape.com, a=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@115532 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-01 00:06:35 +00:00
dougt%netscape.com
ffacd7bc78 Adding build SDK support. r=dougt, sr=alecf, submitted by seawood, a=asa
git-svn-id: svn://10.0.0.236/trunk@115326 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-25 23:20:01 +00:00
cathleen%netscape.com
6a0e426e6c eliminate nsCRT::strlen for char* strings (part 5), bug 124536 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@115070 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 06:38:38 +00:00
alecf%netscape.com
057eaef9e2 remove a bunch of dead code, and remove NS_COM from a bunch of concrete classes that weren't being used previously
r=jag, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@114820 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 22:57:47 +00:00
neeti%netscape.com
911a154626 fix for bug 122438 - ConvertContractIDKeyToString(...) optimization, r=dougt,sr=alecf
git-svn-id: svn://10.0.0.236/trunk@114424 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-13 20:34:14 +00:00
dougt%netscape.com
408ba7a40c Fix for 103518. Call module destructor function *after* destroying factories. submitted by Henry.Jia@sun.com, r=dp/dougt, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@113819 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 20:47:37 +00:00
cathleen%netscape.com
ec77313291 eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113659 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:41:13 +00:00
dougt%netscape.com
37a71e53f5 Adding comments to the nsIGenericFactory file. bug 123442. r=gagan@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113657 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:38:43 +00:00
alecf%netscape.com
f7ee18f044 one more part of fix for bug 107575, including the much coveted whitespace
remove aIgnoreCase parameter from all nsString and nsCString consumers
sr=jag, r=shaver


git-svn-id: svn://10.0.0.236/trunk@113390 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 01:53:09 +00:00
dougt%netscape.com
9fad99d1de adding @return comments.
git-svn-id: svn://10.0.0.236/trunk@113231 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:56:34 +00:00
sfraser%netscape.com
a58abd053a Chamnges to allow for making every module's nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113190 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 04:05:47 +00:00
seawood%netscape.com
18da129413 Use .get() when assigning nsXPIDLCString to const char*. Fixing OS/2 & AIX bustage.
git-svn-id: svn://10.0.0.236/trunk@113189 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 03:51:47 +00:00
dougt%netscape.com
011f9b10e5 1. Converts callers of nsIComponentManagerObsolete to use
nsIComponentRegistrar.

2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.

3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.

4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.

5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.

6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl.  in
this way, the same base class can support both old style and new style
enumerations.

7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer.  Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.


Bug 115853.  r=dp@netscape.com, sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@113143 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:22:13 +00:00
pete%alphanumerica.com
f66db985f6 reverting back to original
define is not needed here

--pete


git-svn-id: svn://10.0.0.236/trunk@113000 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:56:02 +00:00
pete%alphanumerica.com
a6eeb89003 seeing if this fixes the linux bustage
--pete


git-svn-id: svn://10.0.0.236/trunk@112999 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:47:17 +00:00
waterson%netscape.com
5b39ccda93 Fix static build bustage.
git-svn-id: svn://10.0.0.236/trunk@112735 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 21:45:46 +00:00
dougt%netscape.com
5d273d8abe Adding nsIComponentRegistrar interface to the build. See 115853. r=dp@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112620 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:50:35 +00:00
dougt%netscape.com
d383a669af Cleanup of nsIModule. See 99154. r=dp@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112613 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:29:40 +00:00
dougt%netscape.com
f923afa8bf Removing monitor from FreeService() call. See bug 117218 for details, but basically we can run into a deadlock at shutdown. This patch assumes that (a) gXPCOMShuttingDown is set only by the UI thread during xpcom shutdown and (b) that all public API's check this flag before calling into the hashtable. r=dbaron@fas.harvard.edu, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@112035 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 23:35:57 +00:00
cathleen%netscape.com
ea31156ed0 converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp
git-svn-id: svn://10.0.0.236/trunk@112013 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 03:18:55 +00:00
jaggernaut%netscape.com
4f867accb0 Duh. Made a thinko on commenting out the ifdef.
git-svn-id: svn://10.0.0.236/trunk@111797 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 06:55:18 +00:00
jaggernaut%netscape.com
9edc6ab7cd Bug 115854: Clean up shutdown warnings in service manager, add IID, CID and ContractID info. r=dougt, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@111778 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 02:10:37 +00:00
ccarlen%netscape.com
021c9dac7f Bug 100828 - nsLocalFileMac reworking. r=rjc@netscape.com/sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@111488 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-07 14:35:04 +00:00
dougt%netscape.com
3a75e78750 fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@110761 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 00:59:25 +00:00
dougt%netscape.com
c01e94cad7 nsIComponentManager API Changes (bug 98553)
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.

b) rename the old nsIComponentManager to nsIComponentManagerObsolete.

c) fixes callers which use to access the nsIComponentManager for component
registration functionality.  These callers will temporary use the
nsIComponentManagerObsolete interface.

d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()

e) Perserves the old NS_GetGlobalComponentManager().  Note the cast usage.

r/sr = rpotts@netscape.com  alecf@netscape.com  brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@110748 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 00:12:41 +00:00
kmcclusk%netscape.com
575a192c88 Backing out the fix for Bad use of nsIFile in component manager to fix spell checker. bug 106949 r=jband a=brendan
git-svn-id: svn://10.0.0.236/trunk@110446 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-14 01:27:16 +00:00
pete%alphanumerica.com
ec5da21679 b=106949, r=ccarlen, sr=jband
Bad use of nsIFile in component manager

--pete


git-svn-id: svn://10.0.0.236/trunk@110210 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 03:25:32 +00:00
seawood%netscape.com
88b23adbf4 Add win32 support to xpcom Makefile.ins
Bug #58981 r=bryner


git-svn-id: svn://10.0.0.236/trunk@110113 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-09 07:05:12 +00:00
dveditz%netscape.com
6d4c956f3f Free bloated component registry buffer after XPCOM init (bug 76329)
r=dougt, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@109344 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 07:50:03 +00:00
dbaron%fas.harvard.edu
29e7322c52 Make XPCOM_BREAK_ON_LOAD work on mach-o build. b=111519 r=beard sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@109098 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 03:52:34 +00:00
dougt%netscape.com
3c41b28890 remove nsIShutdownListener. r=dbaron, sr=alecf, bug 99152
git-svn-id: svn://10.0.0.236/trunk@109075 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:57:53 +00:00
dp%netscape.com
a080db14dd Removing timeline marks. These dont provide much information
git-svn-id: svn://10.0.0.236/trunk@108962 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:55:55 +00:00
timeless%mac.com
535b6f20f2 Bugzilla Bug 107823 change nsIFile
to use 'Modified' instead of 'Modification'
r=akkana sr=brendan


git-svn-id: svn://10.0.0.236/trunk@108891 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 08:05:05 +00:00
seawood%netscape.com
889469fd27 Rename 'install' build phase to 'libs'.
Bug #56601 r=pavlov


git-svn-id: svn://10.0.0.236/trunk@108684 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 09:49:41 +00:00
timeless%mac.com
7b921259da Bugzilla Bug 110080 change !NS_SUCCEEDED(status) to NS_FAILED(status)
s/!NS_SUCCEEDED/NS_FAILED/g;s/!NS_FAILED/NS_SUCCEEDED/g;
r=dougt sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@108471 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 06:45:00 +00:00
dougt%netscape.com
8b005407f0 fixing bug 108573. Calling AutoRegisterComponents when any registered loaders do not exists will crash. r=dp,sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@108453 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 20:19:44 +00:00
neeti%netscape.com
4dc47433dd bug 106466 - Removed nsServiceEntry from ComponentManager, r=dougt, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@108297 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 13:53:04 +00:00
dp%netscape.com
80c5991124 Satisfying compilers...
git-svn-id: svn://10.0.0.236/trunk@108266 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 03:37:15 +00:00
dp%netscape.com
5a69dc4d07 bug 108071 Eliminate 4000 calls to malloc by using copy getters of
registry. r=dveditz, sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@108250 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:38:23 +00:00
bzbarsky%mit.edu
068756d821 Use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2 where possible
(i.e. where the string is a literal).  Bug 104159, r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@107987 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:33:42 +00:00
pete%alphanumerica.com
3c4492f3e0 b=107823, r=ccarlen, sr=brendan
--pete


git-svn-id: svn://10.0.0.236/trunk@106886 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:11:15 +00:00
rginda%netscape.com
a1b245255f Bug 104168, "xpcom-autoregistration notification never fires"
r=dougt, sr=brendan
notify category observers when xpcom registration occurs


git-svn-id: svn://10.0.0.236/trunk@106858 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:17:30 +00:00
dougt%netscape.com
8e551369e9 ugh. I did not mean to commit these changes. Backing out
git-svn-id: svn://10.0.0.236/trunk@106720 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:19:32 +00:00
dougt%netscape.com
3e064cf384 Moving nsISimpleEnumeratory interface into a seperate idl file. bug 99136. r=alecf@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106715 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:03:05 +00:00