Граф коммитов

409 Коммитов

Автор SHA1 Сообщение Дата
braddr%puremagic.com d92727dc68 Move all nsIEnumerator usage over to NS_ENUMERATOR_FALSE from NS_COMFALSE in anticipation of nixing NS_COMFALSE in the near future.
r=scc
1999-10-28 03:16:48 +00:00
braddr%puremagic.com b49b3dbdce Ooops.. tree closed, better back these out for now. Sorry. 1999-10-27 21:01:37 +00:00
braddr%puremagic.com b2ea5b4c45 Move all nsIEnumerator usage over to NS_ENUMERATOR_FALSE from NS_COMFALSE
in anticipation of nixing NS_COMFALSE in the near future.
r=scc (please contact him should there be any build issues)
1999-10-27 20:24:21 +00:00
warren%netscape.com ef02b386d9 Fixed up dll loading for Windows. It was silently failing. 1999-10-24 22:01:09 +00:00
dp%netscape.com 73e3189c8a bug# 9221 Fixing autoreg terminating on bad aliases. We now let it go
as far as possible ignoring errors. r=sfraser
1999-10-22 06:32:26 +00:00
dp%netscape.com 7c40fe12d3 beautify... 1999-10-22 04:47:14 +00:00
dp%netscape.com d246ff80eb bug# 15046 Preventing deletion of dll when getfactory fails. r=shaver,kipp 1999-10-22 01:04:16 +00:00
dp%netscape.com 7e6d27b0c2 bug#14656 Circular release problem of component manager. Fixed by
adding shutdown() method that gets called before the last
release. Enabled only for dp & shaver until we resolve js coredump.
1999-10-21 21:34:39 +00:00
scc%netscape.com 151cfbe7be First Checked In. 1999-10-20 21:03:21 +00:00
dp%netscape.com 465b188116 Fixing warning. Moved declaration into if 0 block. 1999-10-19 05:49:04 +00:00
dveditz%netscape.com 89c765707b Added nsIRegistry::Flush (bug 16283, required for 16600), r=shaver 1999-10-17 21:45:53 +00:00
jevering%netscape.com bfaf5fe2a6 The nsLeakDetector.cpp file now requires a few extra header files which weren't being exported on win 1999-10-16 01:44:52 +00:00
scc%netscape.com 1b9183448d Bug #15292, r=dp. Made the component manager inherit from |nsSupportsWeakReference|, fixed its |QueryInterface()| appropriately, and added casts in two places that became ambiguous now that the component manager had multiple |nsISupports| in it. Now one can hold a weak reference to the component manager using |nsIWeakReference|. 1999-10-15 21:14:43 +00:00
shaver%netscape.com ee850bb6c5 Fix case and return value in nsIModule.idl.
Add deleteCategoryEntry and deleteCategory to nsICategoryManager.
Update nsCategoryManager.js to use new nsIModule case, and talk to the registry.
r=brendan
1999-10-15 20:51:38 +00:00
dp%netscape.com 7acc865688 bug# 5085 Eliminating some checks at autoreg time to improve startup
performance. r=sfraser
1999-10-15 07:12:08 +00:00
dveditz%netscape.com f0625af1ca expose libreg ability to delete named values in nsIRegistry. Patch from
Jonas Utterstr�m <jonas.utterstrom@vittran.norrnod.se>, r=dveditz
1999-10-15 06:47:58 +00:00
waterson%netscape.com ab20f5e245 Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur 1999-10-12 02:10:08 +00:00
putterman%netscape.com 03260d2789 Create a version of NS_GENERIC_FACTORY_CONSTRUCTOR that lets you pass in
an initialization function.  No bug.  Reviewed by dp.
1999-10-10 22:30:55 +00:00
kipp%netscape.com eac156bd69 Fixed up hook to track library loads for refcnt logging 1999-10-08 23:41:18 +00:00
warren%netscape.com b90a06a288 Fixed AddRef/Release problems to eliminate negative refcounts in Bloaty. 1999-10-08 01:49:06 +00:00
alecf%netscape.com fe5db68d0a add new NS_xxx_MODULE* macros (not used anywhere in the build just yet) 1999-10-08 00:12:29 +00:00
dp%netscape.com 0be9ba382c Removing ifdef DEBUG_dp. 1999-10-07 21:03:48 +00:00
ramiro%netscape.com ae4803afec Take myself out of the "you suck" list. r=dp 1999-10-06 20:22:23 +00:00
sfraser%netscape.com c88c937d0c Change Mac library loading to load using the FSSpec. r=dp 1999-10-06 01:09:13 +00:00
kipp%netscape.com 66a34ae73d Fixed bug in ReleaseServcie that was recreating the service manager during shutdown 1999-09-30 21:40:27 +00:00
sfraser%netscape.com 04b0e04edb Fixing use of obsolete types for shaver. 1999-09-29 02:54:18 +00:00
shaver%netscape.com f53bc807b4 nsIRegistry scriptability and beginning of category support, r=dp,alecf,dveditz a=leaf,chofmann 1999-09-29 02:35:42 +00:00
dp%netscape.com aa203a1405 Unloading of dlls on shutdown turned off. 1999-09-28 19:42:06 +00:00
dveditz%netscape.com fcba679114 Make sure componentMgr calls NR_ShutdownRegistry(), fixing MLKs and registry corruption from unflushed registry buffers.
r=dp,a=chofmann
1999-09-26 21:20:21 +00:00
dp%netscape.com 1f335f710b Separating dll Shutdown from unload. Calling dll shutdown
unconditionally on NS_Shutdown.
1999-09-26 18:06:41 +00:00
dp%netscape.com 5479b15e62 Passing down NS_Shutdown to Unloading of libraries. 1999-09-26 18:04:27 +00:00
dp%netscape.com 73b907b3bb Adding NS_Shutdown. 1999-09-26 18:02:52 +00:00
dp%netscape.com cade126469 UnloadAll() on non-native loaders. 1999-09-23 00:14:00 +00:00
dp%netscape.com 7ad2cf949e Enabling xpcom shutdown to call NSCanUnload() on every component. 1999-09-23 00:01:53 +00:00
shaver%netscape.com 1fe19c92b7 add componentType to nsIModule::RegisterSelf 1999-09-22 03:18:27 +00:00
shaver%netscape.com 940f9ecaa3 need to use different module names to avoid overwriting xpcom.xpt 1999-09-21 14:12:26 +00:00
waterson%netscape.com 88220ac198 Fix backwards return values on nsIEnumerator::IsDone(). 1999-09-21 01:28:18 +00:00
warren%netscape.com 5ba5245976 fixed ReleaseService and UnregisterService to work during shutdown 1999-09-20 20:54:09 +00:00
warren%netscape.com 398e934fcf fixed circular references in nsNativeComponentLoader 1999-09-20 20:54:04 +00:00
warren%netscape.com ba00fc54e6 freed mComponentsDir in nsComponentManager 1999-09-20 20:53:57 +00:00
briano%netscape.com 12f9f9743e General cleanup. 1999-09-18 02:12:56 +00:00
dveditz%netscape.com b83b004785 match buffered i/o registry change in XP_MAC section 1999-09-17 07:00:55 +00:00
dp%netscape.com 6cf6be44ee Caching of what registry was opened to improve performance of multiple
opens on the same registry file.
1999-09-17 05:46:25 +00:00
dp%netscape.com 78ee9ec7ec Ability for XPCOM to use non-default component registry and component directory 1999-09-16 19:28:57 +00:00
dp%netscape.com 764fede6dc NS_ADDREF() instead of calling it directly 1999-09-16 19:20:18 +00:00
dp%netscape.com 340ea43d16 Removing DEBUG_dp 1999-09-16 19:11:00 +00:00
dveditz%netscape.com f3deb25a6d expose whether the registry is already open or not, which enables the profile
manager to avoid opening and closing the registry ~20 times at startup.
1999-09-16 05:32:28 +00:00
shaver%netscape.com 86577683ba lose some DEBUG_shaver debugging noise 1999-09-15 14:45:29 +00:00
ramiro%netscape.com 2a3e49d514 Fix for the loser linux tinderbox compiler. 1999-09-14 15:16:31 +00:00
ramiro%netscape.com d8c19f2f5d Add support for demangling undefined symbols. 1999-09-14 13:40:22 +00:00
warren%netscape.com 4deda060c4 Don't hold the service manager lock around CreateInstance -- deadlock potential. 1999-09-14 04:50:48 +00:00
shaver%netscape.com 4a8357cf2a fix UMR 1999-09-13 22:34:42 +00:00
dp%netscape.com fa34aae45d Implemented dll enumeration and prepopulation. Improves startup performance. 1999-09-11 14:49:55 +00:00
dp%netscape.com 462ed66cd7 Typo fixed. AutoRegisterComponent works again. 1999-09-11 07:23:28 +00:00
dveditz%netscape.com 9ef1ec96ed speed startup by avoiding registry look ups that are guaranteed to fail, eliciting worst-case behavior 1999-09-10 05:27:23 +00:00
shaver%netscape.com 44334828d0 fix memory leaks (eep) and add some debugging noise for myself 1999-09-09 00:48:30 +00:00
toshok%hungry.com 1f17564178 remove the dll from mDllStore if we're about to delete it. keeps us from crashing if we try to load a dll after we fail once. 1999-09-09 00:47:22 +00:00
shaver%netscape.com 1f31743781 fix MLK bugs 13285 and 13286 and prevent repeated PrePopulateRegistry calls 1999-09-08 04:22:37 +00:00
shaver%netscape.com df50cccf6f teach component manager that there are non-native entries in the registry 1999-09-07 23:18:47 +00:00
shaver%netscape.com 86f477d409 Moved abs:/rel: handling to ComponentManager.
Made nsIModule::GetClassObject and nsIFactory scriptable for JS components.
Added registryLocation param to nsIModule::(Un)RegisterSelf.
1999-09-07 05:06:37 +00:00
shaver%netscape.com a90b33489c Add nsIComponentManager::registerComponentWithType.
Take advantage of IDLized nsIComponentManager to fix up nsIComponentLoader.idl
and make nsIModule scriptable.
1999-09-06 16:43:09 +00:00
shaver%netscape.com 73fd7a8674 missed an EXPORT =( 1999-09-05 08:07:31 +00:00
shaver%netscape.com 79c7c7e52f forgot an IDL file 1999-09-05 07:18:18 +00:00
shaver%netscape.com 53277f4711 convert to CreateInstanceFromProgID 1999-09-05 06:27:42 +00:00
dveditz%netscape.com a4fc44952f remove xp_file.h from NSReg.h, required minor tweaking elsewhere to include
now missing NSPR types.
1999-09-04 19:46:18 +00:00
shaver%netscape.com 522a04906c properly initialize loaders on creation, and remove code that's now in nsFileSpec 1999-09-03 23:51:31 +00:00
shaver%netscape.com 4bd5ce8e10 Added ComponentLoaders to registry and abandoned the progID suffix strategy
to reduce evil in universe.
Added nsIComponentManager::RegisterComponentLoader.
Dead code removal.
Make AutoRegister eagerly created all as-yet-unloaded component loaders and
AutoRegister with them as well.
Removed much #ifdef DEBUG_shaver noise.
1999-09-02 07:00:29 +00:00
shaver%netscape.com fdd18a1808 um, didn't mean to check that in 1999-09-02 05:21:10 +00:00
shaver%netscape.com 7ae0e45e4b *** empty log message *** 1999-09-02 05:18:09 +00:00
waterson%netscape.com d1b4341738 Create a monitor as a member variable instead of using cached monitor. 1999-09-02 04:12:08 +00:00
shaver%netscape.com 61893c8b39 missed an EXPORT removal 1999-09-02 01:30:17 +00:00
dp%netscape.com 7876685f8e Dll data written to registry. Autoreg fixed to work with relative
pathnames in registry.
1999-09-01 06:25:20 +00:00
dp%netscape.com 97ee0030c9 Added Sync().
Prepares for fixing registration.
1999-09-01 06:22:54 +00:00
cyeh%netscape.com cc2825cbe0 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 00:54:34 +00:00
shaver%netscape.com 73d117d2b6 missed nsIFactory.idl export, damn 1999-08-31 22:25:59 +00:00
shaver%netscape.com 4f5e09dac5 forgot to remove now-generated nsIFactory.h 1999-08-31 22:00:27 +00:00
shaver%netscape.com c0708ceb89 Removed nsIFactory.h (generated now).
Factored ComponentManager to support multiple ComponentLoaders.
Added support for relative paths in registry.
General cleanup.
(Broke detection of changed DLLs; dp is fixing -- thanks!)
1999-08-31 21:40:21 +00:00
dp%netscape.com f690c2560d removing obsolete files 1999-08-26 05:14:09 +00:00
dp%netscape.com b6ca6e5553 Removing nsIRegistry::GetIntArray() and SetIntArray(). These aren't
being used and block scritability. So if we need then, we will figure
out a way to add them that wont break scritability.
1999-08-26 05:11:40 +00:00
dp%netscape.com 60f12e3b90 Removed default parameter to Open() to facilitate IDLification. 1999-08-26 03:22:26 +00:00
brendan%mozilla.org bbe959f4d1 Massive spankage to capitalize C++ method and attribute name bindings, per
Architecture Item 6.3 (news://news.mozilla.org/37BA89CF.3823D6F9%40meer.net).
1999-08-25 05:26:25 +00:00
scc%netscape.com 0454213f91 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 1999-08-23 10:14:16 +00:00
scc%netscape.com 83feff8821 Added |GetIID| 1999-08-22 20:54:08 +00:00
mccabe%netscape.com b95a2bdd54 Replace manual method declarations in implementations of xpcom/ interfaces with NS_DECL_NSIFOO. 1999-08-22 11:25:50 +00:00
dp%netscape.com 4f8136dd2b PlatformFind() changed to return nsDll * instead of FactoryEntry. This
is an internal api change.
1999-08-20 23:06:47 +00:00
dp%netscape.com 8ff4b44481 - Adding nsComponentMangager::GetClassObject()
- Adding a nsIID parameter to the nsIModule:GetClassObject()
1999-08-19 14:54:12 +00:00
dp%netscape.com 889759b581 Calling shutdown listeners on XPCOM Shutdown. Fix bug #11790 1999-08-14 21:32:29 +00:00
sfraser%netscape.com b25977cb8b Part of fix for 11790, crash on quit. Don't try to delete static data. r dp, a chofmann 1999-08-13 23:26:47 +00:00
dp%netscape.com 153c3a6d49 - using ComponentManager instead of service manager in nsIModule
- Adding UnregisterComponentSpec()
All the above are required for xpcom review.
1999-08-13 19:30:13 +00:00
dp%netscape.com 793f8e02bd Dll unloading support. These are not used yet. 1999-08-13 19:27:58 +00:00
shaver%netscape.com d4e1855665 defend against NULL GlobalServiceManager 1999-08-11 04:08:44 +00:00
dp%netscape.com 4042d3a6f6 Caching persistentDescriptor and nativePath; Released when dll goes
away.
1999-08-11 01:46:43 +00:00
dp%netscape.com 95b69a3611 Logging error from canunload 1999-08-10 23:06:33 +00:00
dp%netscape.com c0dea43629 dummy 1999-08-09 05:40:51 +00:00
jband%netscape.com 3f75ebc9ff adding enumeration of CLSIDs and ProgIDs using code from Robert Ginda <rginda@ix.netcom.com> 1999-08-09 05:02:25 +00:00
dp%netscape.com e0799f7257 Create the module object and caching it in the Dll abstraction. 1999-08-09 00:19:08 +00:00
dp%netscape.com d92799422f Changing name from nsIComponent.idl to nsIModule.idl 1999-08-08 22:27:28 +00:00
dp%netscape.com 2c568a0cd6 Fixing addition of nsIModule.idl 1999-08-08 22:16:53 +00:00
dp%netscape.com 40ff09f510 Adding nsIModule.idl 1999-08-08 21:58:53 +00:00
dp%netscape.com 1911b3be38 Adding new interface for Module access. This will replace entry points like
NSRegisterSelf() etc.. in the Module dlls.
1999-08-08 21:54:43 +00:00
rjc%netscape.com 158163c078 Use GetFileSpec() correctly. 1999-08-07 11:23:54 +00:00
rjc%netscape.com 40870414c8 On Mac, check a file's type (skip the creator, so that 3rd party shared libraries can be noticed) to see if its a shared library. 1999-08-06 23:06:07 +00:00
dp%netscape.com 7afa7173a1 Fixed typo. 1999-08-05 12:58:04 +00:00
dp%netscape.com 2a61eca94a Adding consistency checks on ReleaseService. 1999-08-04 09:36:12 +00:00
dp%netscape.com 2bd01df1c4 - Removed calling FreeLibraries()
- ReleaseService() wont delete anymore
- Made ReleaseService() and UnregisterService() simpler
- Shutdown releated Assertion removal.
1999-08-03 00:53:55 +00:00
dp%netscape.com 4b555e2372 Using nsObjectHashtable::RemoveAndDelete() 1999-08-03 00:03:38 +00:00
dp%netscape.com 360e8cfe27 VMS changes from Colin Blake <colin@theblakes.com> 1999-07-31 19:39:23 +00:00
dp%netscape.com e20bfe9359 - Added internal UnloadLibraries() that can take a NULL service
manager too for nsXPComShutdown()'s sake
1999-07-31 05:55:26 +00:00
dp%netscape.com 74581714e5 - Fixing ComponentManager destruction
- CLSIDToProdID() fixed to use the correct subtree in registry
- ProgID() enumneration on startup enabled
- Added internal UnloadLibraries() that can take a NULL service
  manager too for nsXPComShutdown()'s sake
- Setting autoreg DirectoryIterator not to resolve symbolic links
1999-07-31 05:55:04 +00:00
dp%netscape.com 64e5e2d348 Using nsCRT instead of PL_str*() 1999-07-31 00:28:51 +00:00
jband%netscape.com 1d04b3c73c fix this macro that no one is using so that I can use it in my factory in xpconnect 1999-07-31 00:14:55 +00:00
warren%netscape.com 1215da1e30 Fixed leak in nsObserverList. Used nsObjectHashtable in service mgr implementation. 1999-07-30 07:58:55 +00:00
sspitzer%netscape.com 1d299b52b0 other half of fix for #10697. directory iterators work again. r=blizzard. a=leaf. 1999-07-29 04:59:13 +00:00
blizzard%redhat.com cbfe27c7cb work around for startup crash on linux. checkin approved by cyeh and leaf. 1999-07-28 20:25:02 +00:00
warren%netscape.com 44ede8a7bc Added destructor/cleanup code. 1999-07-28 08:01:03 +00:00
sspitzer%netscape.com e2dd59c128 change the nsIDirectoryIterator::Init interface to match the nsDirectoryIterator ctor: two paramenters, a file spec and a bool for resolveSymlinks. pass in PR_TRUE in the pref and component manager code. this fixes the problem where prefs wouldn't get loaded on the mac! 1999-07-27 23:33:54 +00:00
briano%netscape.com d99daeea9b Cleaned it up and changed the name of libreg.{a,so} to libmozreg.{a,so} to fix the conflict reported in bug 8568. 1999-07-27 23:27:44 +00:00
valeski%netscape.com cd09f25002 mem leak - rev'd by dp 1999-07-25 13:37:16 +00:00
tbogard%aol.net eb0dd2815e Changed nsCStringKey to nsStringKey. This new key now has the ability to hash on PRUnichar* strings as well as char* strings. 1999-07-22 02:11:04 +00:00
dveditz%netscape.com 66a4e0d325 removed redundant registry locking to improve performance 1999-07-20 22:50:26 +00:00
dp%netscape.com c11d6c1d19 Removed delete of void *. HP doesn't like it. 1999-07-15 00:11:20 +00:00
dp%netscape.com 29dd23af41 Fixing memory leaks and mismatched memory. bug #8935 bug# 9006
Thanks to david.gardiner@unisa.edu.au for finding the memory leaks
1999-07-09 03:45:19 +00:00
dp%netscape.com 081122d07d Fixing memory leak. bug# 9005 Thanks to <david.gardiner@unisa.edu.au> 1999-07-09 03:43:29 +00:00
dp%netscape.com ac300c878d Landing XPCOM_M8_PERF_BRANCH.
- GetFactoryEntry() factored out into a function
- Factory Cacheing enabled
- deletion of removed factory entries enabled
- Locks removed from FindFactory() and Register*()
1999-07-07 07:47:14 +00:00
dp%netscape.com 54c432d92c Landing XPCOM_M8_PERF_BRANCH. Speeding up GetString(). 1999-07-07 07:42:03 +00:00
dp%netscape.com d71b862e32 PlatformPrePopulateRegistry() 1999-07-02 03:35:09 +00:00
dp%netscape.com 18656b0696 Caching of node names in nsIRegistryNode
Adding nsIRegistryNode::GetIID()
        - Thanks Dan Veditz
1999-07-02 03:34:08 +00:00
scc%netscape.com 54c96baa72 |nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()| 1999-06-29 21:01:31 +00:00
mcafee%netscape.com 4aca8a8246 BeOS changes 1999-06-29 10:27:58 +00:00
dp%netscape.com 8dbc732c42 Enable PR_LOGs on release builds. 1999-06-28 21:51:46 +00:00
dp%netscape.com 61cd841a1d Removing course grain locking since finer grain locking is implemented
in nsRegistry.
1999-06-22 21:49:26 +00:00
dp%netscape.com 3513f3783a XPCOM switched to using nsIFileSpec. 1999-06-22 14:02:58 +00:00
dp%netscape.com 91b957fe2b Adding back member to store error for nsRegistryNode and nsRegistryValue. This gets it working again. 1999-06-22 13:58:12 +00:00
dp%netscape.com 91b58aabba - Threading fixed. Changed member that stored error from nsRegistry
to be an automatic variable.
- Using XPCOM_ComponentRegistry for OpenWellknownRegistry()
1999-06-21 23:40:21 +00:00
dp%netscape.com aee4f0d23f Fixed crash due to multi-threading. bug# 7308, bug# 8150 1999-06-18 23:27:09 +00:00
dp%netscape.com 0bf10f471a Removing xcDllStore.cpp from the build. 1999-06-16 00:27:13 +00:00
bruce%cybersight.com 01f242aaf5 Replace NULL with nsnull in 8 initializations as NULL is void* on Solaris Workshop 4.2 compilers and it dies on using NULL here. 1999-06-15 13:51:50 +00:00
dp%netscape.com 63b3a417da - NS_RegistryGetFactory API Change
- QuickRegister eliminated
1999-06-14 02:07:03 +00:00
dp%netscape.com a51d7035cd Using new Component Registry 1999-06-09 19:18:24 +00:00
dp%netscape.com 2a661d9391 Well Known Component Registry in <exedir>/component.reg implemented. 1999-06-09 19:16:38 +00:00
waterson%netscape.com 8e855e06b9 Add nsService constructor that allows you to get a service by ProgID using the statically linked nsServiceManager API. 1999-06-07 02:24:29 +00:00
waterson%netscape.com 42ed4b166e Remove NS_ASSERTION calls from nsService class. 1999-06-05 02:44:40 +00:00
briano%netscape.com e9e302b454 Handle the (Unix) platform-specific DLL naming conventions properly. 1999-06-04 22:17:30 +00:00
warren%netscape.com 8b32319be8 Fixed GenericFactory linkage problems. 1999-06-03 21:51:14 +00:00
dp%netscape.com 70524be506 Checking for NULL progid. This should return correct error values from RegisterComponent() 1999-05-28 06:06:14 +00:00
bruce%cybersight.com b0efa83056 Remove local shadowing of variable. 1999-05-28 05:29:26 +00:00
dp%netscape.com afdcdd4a15 Adding progid and classname 1999-05-27 22:47:27 +00:00
sspitzer%netscape.com dc6a12ab7d cvs ignorage for xpcom2 landing 1999-05-26 17:51:05 +00:00
dp%netscape.com 0443b20e33 Landing xpcom20/21 branch. 1999-05-26 01:38:36 +00:00
dp%netscape.com f329e74754 Initial version 1999-05-18 09:11:01 +00:00