43 Commits

Author SHA1 Message Date
benjamin%smedbergs.us
3968e1b42d Back out bug 412320 and various followups because the perf impact was minimal and the code is more complicated
git-svn-id: svn://10.0.0.236/trunk@246221 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-21 20:39:23 +00:00
benjamin%smedbergs.us
cc4193bab8 Bug 412320 - Try code-generation for QI impls, r=roc+luser
git-svn-id: svn://10.0.0.236/trunk@243992 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-25 17:14:53 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
benjamin%smedbergs.us
b191073e47 Bug 326491 - leaked observer service leaks things on shutdown - r=darin
git-svn-id: svn://10.0.0.236/trunk@192696 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-21 14:43:56 +00:00
darin%meer.net
119bbaf729 backing out bsmedberg's patch for bug 326491 to fix bug 329505.
git-svn-id: svn://10.0.0.236/trunk@192045 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-09 03:14:32 +00:00
benjamin%smedbergs.us
c4b2b6637f Bug 326491 - cleanup observers on shutdown even if the observer service is leaked, r=darin
git-svn-id: svn://10.0.0.236/trunk@191774 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-04 14:04:05 +00:00
bsmedberg%covad.net
1c2785149d Followup to bug 319024 - I double-reversed the list
git-svn-id: svn://10.0.0.236/trunk@186030 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-14 00:59:06 +00:00
bsmedberg%covad.net
3bb7520bca Bug 319024 - Password manager does not remember data - regression from bug 316414 part 1 - observer enumerators need to hand out the strong-ref nsIObserver-implementing object, not the nsIWeakReference-implementing object, r=darin
git-svn-id: svn://10.0.0.236/trunk@186016 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-13 21:12:41 +00:00
bsmedberg%covad.net
d6b9b86cbc Bug 316414 part 1, try #2 - Add xpcom-shutdown-threads and xpcom-shutdown-loaders notifications, r=darin
git-svn-id: svn://10.0.0.236/trunk@185455 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-30 18:51:27 +00:00
timeless%mozdev.org
8a213cf6db Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185276 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 19:48:04 +00:00
bsmedberg%covad.net
44f9ea7743 Backing out the rest of 316414 due to persistent orange.
git-svn-id: svn://10.0.0.236/trunk@185216 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-23 21:37:16 +00:00
bsmedberg%covad.net
7ed5ee90fe Bug 316414 part 1 - Add "xpcom-shutdown-threads" and "xpcom-shutdown-loaders" notifications during XPCOM Shutdown, r=darin
git-svn-id: svn://10.0.0.236/trunk@185199 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-23 14:32:18 +00:00
timeless%mozdev.org
af9785c3a7 Bug 238963 nsObserverList::GetObserverList should return OOM on failure
r=dougt


git-svn-id: svn://10.0.0.236/trunk@160106 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-30 02:43:13 +00:00
gerv%gerv.net
210853d71e Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155067 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:21:17 +00:00
dbaron%dbaron.org
6ed727cbe8 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136028 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 23:19:20 +00:00
danm%netscape.com
945c4237b2 just because an observer supports weak refs doesn't mean it is one. (found while leak hunting in) bug 166442 r=jag,jst
git-svn-id: svn://10.0.0.236/trunk@129219 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-11 02:35:26 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
dougt%netscape.com
ed532ac856 DEBUG_dougt -> DEBUG_dougt_xxx. a=dbaron
git-svn-id: svn://10.0.0.236/trunk@116803 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-18 23:40:36 +00:00
dbaron%fas.harvard.edu
ac6b721449 Remove more no-longer-needed nsComponentManager::RegisterComponent calls. Remove remnants of NS_IMPL_IDS macro, associated with long-gone NS_DECLARE_ID. b=125782 r=dougt rs=jag
git-svn-id: svn://10.0.0.236/trunk@114693 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 16:18:13 +00:00
bryner%netscape.com
632ac8da85 Fixing some warnings in xpcom. Bug 118377, r=hwaara, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@113571 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 07:05:10 +00:00
alecf%netscape.com
16001eccc7 just removing some dead code that blake spotted, followup to bug 110226
git-svn-id: svn://10.0.0.236/trunk@109151 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:07:42 +00:00
alecf%netscape.com
4b94aca125 notify observers in reverse order, so that if a observer removes itself when it gets notified, we don't forget to notify the next guy
r=dougt, sr=bienvenu bug 110226


git-svn-id: svn://10.0.0.236/trunk@109090 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 02:48:10 +00:00
alecf%netscape.com
9714ddf32b debug stuff only - adding MOZ_COUNT_DTOR/CTOR and changing DEBUG to DEBUG_dougt
(last part r=dougt)


git-svn-id: svn://10.0.0.236/trunk@109061 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:52:05 +00:00
dougt%netscape.com
b4b3776b8d check for null. if the reference ever goes away, we crash
git-svn-id: svn://10.0.0.236/trunk@106447 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-27 03:06:09 +00:00
dougt%netscape.com
9e7d4bff37 Fixes bug 106313 (smoketest blocker). Allowing notification of weak references, regression caused by my nsIObserverService landing. sr=alecf@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@106179 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 18:02:46 +00:00
dougt%netscape.com
cf60fc042e nsIObserver and nsIObserverService API freeze. r=rpotts@netscape.com, alecf@netscape.com. bug 99163
git-svn-id: svn://10.0.0.236/trunk@105800 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:52:59 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
sfraser%netscape.com
149c6222b3 Fix bug 69729, nsIObserverList had bogus params. Also make it possible to CreateInstance one. r=jag, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@88439 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 01:24:36 +00:00
warren%netscape.com
d100457780 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar
git-svn-id: svn://10.0.0.236/trunk@62243 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-05 21:26:01 +00:00
sspitzer%netscape.com
e4f43e292d fix warning for scc.
git-svn-id: svn://10.0.0.236/trunk@56528 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-24 03:42:54 +00:00
waterson%netscape.com
7af106da48 Bug 22212. Re-enable observer service weak ref stuff, now that a good fix is in for PageCycler. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56253 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 00:12:25 +00:00
waterson%netscape.com
dd7fec877d Reverting scc's changes until we can sort out the browser buster stuff. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56239 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-20 22:13:33 +00:00
scc%netscape.com
aedd4328c2 Enabling weak observer lists. Back this code out (if needed) by commenting out the |#define NS_WEAK_OBSERVERS| line since it also contains fixes. bug#18682, r=law, a={dp, chofmann}
git-svn-id: svn://10.0.0.236/trunk@56216 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-19 17:14:47 +00:00
rginda%netscape.com
1af24d307c Fix for unix bustage, r=scc@netscape.com
git-svn-id: svn://10.0.0.236/trunk@55737 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 06:14:33 +00:00
scc%netscape.com
32ad1437d2 Changes to make observer lists hold only weak references. This code is disabled by default; enabled by the symbol |NS_WEAK_OBSERVERS|. The code will remain disabled until two underlying ownership bugs are fixed: hanging the wallet service from something permanent, and finding the observer someone is registering through XPConnect that does not support weak references. bug#=18682; r=dp
git-svn-id: svn://10.0.0.236/trunk@55732 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 05:24:14 +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
cls%seawood.org
f1c0f17632 Reorderd member initializers to remove silly warnings.
git-svn-id: svn://10.0.0.236/trunk@47050 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 12:02:03 +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
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
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
neeti%netscape.com
ba114cea69 checking for null mObserverList
git-svn-id: svn://10.0.0.236/trunk@28491 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 19:36:41 +00:00
neeti%netscape.com
0b3a16550f implemented wrapper funtions to make GetObserverList private.
git-svn-id: svn://10.0.0.236/trunk@28240 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 14:50:47 +00:00
neeti%netscape.com
2cb7be0434 initial checkin for ObserverService api
git-svn-id: svn://10.0.0.236/trunk@26525 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 20:54:09 +00:00