49 Commits

Author SHA1 Message Date
dougt%netscape.com
6e0d004a19 b=47143, r=valeski. Puts the real object release on the proper thread.
git-svn-id: svn://10.0.0.236/trunk@76538 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 05:02:37 +00:00
warren%netscape.com
e5706a7236 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
git-svn-id: svn://10.0.0.236/trunk@75975 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:19:37 +00:00
dougt%netscape.com
bf15c34b53 I IDL-ifying the nsProxyObjectManager.
I have updated all users that I found
grepping the source tree.

r=valeski@netscape.com
a=waterson@netscape.com
b=43131

Also checking in changes to the window's embed test which is NOT
hooked up to the build system.


git-svn-id: svn://10.0.0.236/trunk@73129 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 00:03:10 +00:00
dougt%netscape.com
a08152032b Adding idl'ifed nsIProxyObjectManager interface file.
git-svn-id: svn://10.0.0.236/trunk@73114 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:34:11 +00:00
warren%netscape.com
cc5d426fbe Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 09:46:12 +00:00
dveditz%netscape.com
fa282d9063 adding convenience macro to create always-proxied services necessary when creating the proxy on the same thread for use on a new thread
git-svn-id: svn://10.0.0.236/trunk@68327 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 03:47:00 +00:00
dougt%netscape.com
dc5c9e7463 Removing nested eventQ. bug 29474. a=jar
git-svn-id: svn://10.0.0.236/trunk@62029 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 04:38:33 +00:00
dougt%netscape.com
e2f9d2f9b6 removing unneeded lock.
git-svn-id: svn://10.0.0.236/trunk@59607 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 02:37:51 +00:00
dougt%netscape.com
43916a6230 locking nsProxyObject before calling XPT_InvokeByIndex()
locking maps for entire GetNewOrUsedClass() process.
locking maps while trying to Find an IID off of a Root.
locking when removing from RealObjectToProxyObjectMap

I am hoping that this will fix some of the SMP problems, namely 21556.

r=mccabe.


git-svn-id: svn://10.0.0.236/trunk@57484 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 01:26:11 +00:00
dougt%netscape.com
41e83422c9 fix for 16273. r=valeski, a=sdagley.
git-svn-id: svn://10.0.0.236/trunk@56328 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 01:47:59 +00:00
dougt%netscape.com
3c92ff6d8a Speeds up the product by removing calls to PR_Sleep() in favor of PR_WaitForEvent().
This really rocks.  r=valeski, a=jar.


git-svn-id: svn://10.0.0.236/trunk@56034 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-15 04:49:55 +00:00
dp%netscape.com
777ccab296 NS_GET_IID(). Thanks to patch from pp@ludasdesign.com r=dp@netscape.com
git-svn-id: svn://10.0.0.236/trunk@54813 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 23:44:59 +00:00
dougt%netscape.com
69329e38fe Fix for 18078. R=mstoltz,warren
git-svn-id: svn://10.0.0.236/trunk@54638 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:14:55 +00:00
dougt%netscape.com
587185d7ca 1) #ifdefing out dll entry points from nsProxyObjectManager which should not
be used

2) Fix crashing bug in nsProxiedService when a CI fails.  Converted this to
use nsCOMPtrs

3) Fixing bug 18109.  This involved changing what information about hash values
we use.

Tested FTP dir and file, and IMAP.


git-svn-id: svn://10.0.0.236/trunk@54267 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 08:53:44 +00:00
scc%netscape.com
4bd89164cd fixing build bustage. Further discussion is needed
git-svn-id: svn://10.0.0.236/trunk@53646 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-16 08:50:25 +00:00
dougt%netscape.com
ff6b97fb15 checking back in changes which were backed out. Added workaround to bug
which scc pointed out.


git-svn-id: svn://10.0.0.236/trunk@53643 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-16 07:44:18 +00:00
scc%netscape.com
731d3896e8 backing it out until doug and I can resolve the types issues
git-svn-id: svn://10.0.0.236/trunk@52975 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-09 00:27:05 +00:00
scc%netscape.com
e8d7bbbd9e dougt's changes from earlier in the week. He was unable to leave them
in at that time because he didn't have my |nsCOMPtr| fixes.  Those went
in last night.  So, on brendans suggestion, I'm reinstating dougt's
previous checkin.


git-svn-id: svn://10.0.0.236/trunk@52972 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-08 22:58: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
dougt%netscape.com
1cf333f618 Backing out changes due to nsCOMPtr build problems.
git-svn-id: svn://10.0.0.236/trunk@52840 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-05 03:32:33 +00:00
dougt%netscape.com
8d74ce705f Changed ownership module inside xpcom/proxy to remove cached objects passed their owner's lifespan.
Removed out of band callback in xpcom/proxy
Fixed webshell leak due to xpcom/proxy. (17009)
Just about everything is now a comptr, god save us. :-)

r=jband, a=brendan.


git-svn-id: svn://10.0.0.236/trunk@52836 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-05 02:21:46 +00:00
dp%netscape.com
86bb1af06f Eliminating use of nsService class in preparation for making services
usable with COMPtrs.


git-svn-id: svn://10.0.0.236/trunk@52683 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 05:41:43 +00:00
dougt%netscape.com
0377b9291c Fix for bug 16818. xpcom proxy does not handle classes with two or more
interfaces correctly.  What happens is the real object is addref
incorrectly and will never be deleted.

r=jud


git-svn-id: svn://10.0.0.236/trunk@51198 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:35:54 +00:00
dougt%netscape.com
2f38d972f2 adding default constructor (mac compilers blues)
git-svn-id: svn://10.0.0.236/trunk@50489 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:46:49 +00:00
dougt%netscape.com
8344cba9ee Added a nested event loop instead of blocking during sync calls. Partial fix
for bug 13724.  (I still must remove ifdef's for the autoproxy code.)
r=brendan@meer.net.


git-svn-id: svn://10.0.0.236/trunk@50483 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:29:43 +00:00
briano%netscape.com
945d83af9f General cleanup.
git-svn-id: svn://10.0.0.236/trunk@48156 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 02:12:56 +00:00
dougt%netscape.com
9533c14465 commenting out the autoproxy header def. Missed this file.
git-svn-id: svn://10.0.0.236/trunk@47294 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 06:12:22 +00:00
sspitzer%netscape.com
d477f04e12 add newline to end of file to please certain UNIX compilers.
git-svn-id: svn://10.0.0.236/trunk@45876 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 10:43:00 +00:00
beard%netscape.com
bb8a3ad96b added nsProxiedService.h to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@45545 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 22:50:49 +00:00
cyeh%netscape.com
c6342ee432 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people.
git-svn-id: svn://10.0.0.236/trunk@45379 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 00:54:34 +00:00
dougt%netscape.com
9d9481b9d6 Bug Fixes to xpcom/proxy. Thanks jband for debuging this with me!
git-svn-id: svn://10.0.0.236/trunk@44177 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:30:55 +00:00
jband%netscape.com
a14de7a2e8 Fixing xptinfo bug with getting information about the type of an interface pointer parameter of a method when the method is inherited from another interface in another typelib file. The api needs to also pass along the method index in order to convey enough information to always give the right answer. Got that? :) Fixing users of this modified api also.
git-svn-id: svn://10.0.0.236/trunk@43580 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 10:12:30 +00:00
leaf%mozilla.org
67b41a6864 Backing out dougt
git-svn-id: svn://10.0.0.236/trunk@43536 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 02:34:33 +00:00
dougt%netscape.com
9d342b98ae Removing ProxyType so that I can do masking
Added new proxy type so that we bypass the Current Thread check.


git-svn-id: svn://10.0.0.236/trunk@43487 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 09:21:47 +00:00
mccabe%netscape.com
1999447bdb Changes to the xpidl compiler -
Error if an interface is declared [scriptable], but contains methods that can't be scripted because they refer to native-declared types, unless the method is declared [noscript].

This change is intended to make it easier to determine when an interface is not scriptable, and to make it easier to see what changes need to be made to make it scriptable.

As many of the .idl files in the tree defined [scriptable] interfaces that contained non-scriptable methods, I've sprinkled [noscript] throughout.  As the interfaces weren't scriptable anyway, this shouldn't change their visibility to javascript.


git-svn-id: svn://10.0.0.236/trunk@42960 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 12:18:01 +00:00
dougt%netscape.com
a061bba191 Fixing Bug 9976.
git-svn-id: svn://10.0.0.236/trunk@39719 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 18:15:14 +00:00
dp%netscape.com
e564eb594c Adding nsProxiedService.h to export.
git-svn-id: svn://10.0.0.236/trunk@37888 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 22:14:15 +00:00
scc%netscape.com
9ea8cebe57 Added |GetIID()|
git-svn-id: svn://10.0.0.236/trunk@37432 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 20:28:56 +00:00
dp%netscape.com
f80e1fb56c First version
git-svn-id: svn://10.0.0.236/trunk@37285 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-28 23:41:02 +00:00
mcafee%netscape.com
d300973ab3 Fixing linux bustage.
git-svn-id: svn://10.0.0.236/trunk@36630 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 23:38:48 +00:00
valeski%netscape.com
8986daacf7 added the nsIProxyCreateInstance.idl file to the xpidl auto gen macros. added smarts to proxy object mgr to determine whether or not the proxy obj is on the same thread as the caller (did this checkin for doug)
git-svn-id: svn://10.0.0.236/trunk@36629 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 23:32:43 +00:00
dougt%netscape.com
0de862590b Adding Autoproxification.
git-svn-id: svn://10.0.0.236/trunk@34629 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:24:15 +00:00
valeski%netscape.com
e41bbebd46 api change to nsIProxy* interfaces. You can no longer pass in straight PLEventQueues, you now need to pass in nsIEventQueue interfaces (see mozilla/xpcom/threads)
git-svn-id: svn://10.0.0.236/trunk@33830 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:46:20 +00:00
dougt%netscape.com
9a2a180d5b Adding a few more functions to nsIEventQueue.
Moving proxy to use nsIEventQueue instead of PLEvents direct.


git-svn-id: svn://10.0.0.236/trunk@33255 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 22:50:25 +00:00
dougt%netscape.com
1c9d2fef90 Adding "Fire And Forget" async method calling.
Added Create() function for the generic factory.
Made ProxyObject into an nsISupports Object for refcounting.
Fixed proxytest to work in the new xpcom2 world.


git-svn-id: svn://10.0.0.236/trunk@33166 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:15:20 +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
dougt%netscape.com
8670251a20 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@31112 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 19:32:55 +00:00
dougt%netscape.com
a6145ac97a Got linux to compile.
A few errors fix when handling IID.


git-svn-id: svn://10.0.0.236/trunk@30779 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 22:09:44 +00:00
dougt%netscape.com
a539b0b3d7 Landing xpcom proxies.
git-svn-id: svn://10.0.0.236/trunk@30725 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 20:01:37 +00:00