9 Commits

Author SHA1 Message Date
dougt%netscape.com
bda51ea960 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@175324 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 18:32:43 +00:00
dougt%netscape.com
54856e80f4 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@175323 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 18:32:42 +00:00
dougt%netscape.com
b1bd96245c 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@175322 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 18:32:41 +00:00
dougt%netscape.com
fea1504cd8 API Freeze for nsIServiceManager r=shaver@mozilla.org, sr=rpotts@netscape.com bug 99147
git-svn-id: svn://10.0.0.236/trunk@175321 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 18:32:40 +00:00
gerv%gerv.net
fa7a78ec1c Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@175320 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 18:32:39 +00:00
shaver%mozilla.org
6d7fa75f1c 67699: all your nsIClassInfo is belong to us
- teach nsGenericFactory about nsIClassInfo, and nsIClassInfo.idl to the
  builds
- add a heaping serving of macro love for classes that want to support it
- convert many modules to use nsGenericModule the new way
- handful of warning and modeline fixes
- nsSample and some XPConnect test classes now have nsIClassInfo support for
  testing


git-svn-id: svn://10.0.0.236/trunk@175319 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 18:32:38 +00:00
rayw%netscape.com
dd3dac9245 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@175318 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 18:32:37 +00:00
mang%subcarrier.org
9139a844c7 progid no longer defined in nsISample.idl
Part of previous fix to bug 10904


git-svn-id: svn://10.0.0.236/trunk@175317 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 18:32:36 +00:00
dp%netscape.com
7028edc98f Sample XPCOM Application
git-svn-id: svn://10.0.0.236/trunk@175316 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 18:32:35 +00:00