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

50 Коммитов

Автор SHA1 Сообщение Дата
timeless%mac.com 651ae14d30 Bug 155466 clean up test consumers to correctly use NS_ShutdownXPCOM
r=dmose, sr=scc, moa: dougt, dbradley, gagan, harish, akk
2002-07-04 14:29:25 +00:00
dougt%netscape.com 2dbd1edd63 XPCOM initialize primary event queue. 135531. r=brendan@mozilla.org, sr=darin@netscape.com 2002-04-15 22:26:29 +00:00
dougt%netscape.com c50ca402ad 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
2002-01-29 21:22:13 +00:00
dougt%netscape.com 849d297364 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
2001-12-19 00:12:41 +00:00
bzbarsky%mit.edu edfb3b268f Use <> for system headers, not "". This should help prevent Sun WSU2
compiler bustage.  Bug 111574, patch from Roland Mainz
(<Roland.Mainz@informatik.med.uni-giessen.de>), r=bzbarsky, sr=bienvenu
2001-11-23 22:36:54 +00:00
gerv%gerv.net 4e12e44b2f Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
darin%netscape.com 5a2d9f0d2d checking bbaetz's patch for bug 89500 "SOCKS: only http|https re-directted in (post Mozilla 0.9.2)"
patch=bbaetz, r=dougt, sr=darin
2001-09-13 02:21:05 +00:00
dbaron%fas.harvard.edu 113ad642ae Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797 2001-08-21 01:48:11 +00:00
jaggernaut%netscape.com e91f8a147e Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
darin%netscape.com 00a7e27ee6 Necko API changes, bug 74221. r=valeski, sr=rpotts. 2001-04-10 06:01:08 +00:00
dougt%netscape.com 128f95aa9b Relanding Necko Changes.
Revising nsIChannel to allow for overlapped i/o. This consists of three parts:

1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols). The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

r=darin@netscape.com
sr=rpotts@netscape.com
2001-02-21 20:38:08 +00:00
disttsc%bart.nl 3d2d80d536 Back out dougt's channel changes 2001-02-12 03:14:23 +00:00
dougt%netscape.com 1b9ca82439 Revising nsIChannel to allow for overlapped i/o. This consists of three parts:
1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols).  The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

The full details of the change on written up in the netlib newsgroup.

r=darin@netscape.com
sr=rpotts@netscape.com
2001-02-10 00:16:26 +00:00
warren%netscape.com e05eef45e9 Bug 46777. Redesigned stream interfaces to allows stream observers to be decoupled from pipe implementation. Needed for embedding to fix 'spin' problem. r=rpotts,valeski,ruslan 2000-08-22 07:03:33 +00:00
warren%netscape.com 2b01440bc0 Factored string bundles out of necko. Fixes bug 42107 - need to fix string bundle init workaround. Also bug 40506 - nsIWebProgressListener needs status text. Status messages now work in mozilla and viewer with internationalized and parameterized text! Added temporary error architecture until bug 13423 can be fixed. Extended nsIStringBundleService to provide method to format status message. r=valeski,jband,tao. verified=mstoltz 2000-07-25 05:45:56 +00:00
dougt%netscape.com 4b4d8250bf correcting invalid port number. They should be -1, not zero. 2000-05-20 00:19:24 +00:00
dougt%netscape.com d83290854c Fix for 31164, possibly 35658, and prep work for 31174.
1) Passing the proxy hostname and port to the underlying socket
   and changing all users that appeared in lxr.

2) (psm-glue) registering with the cache manager to allow local loopback so that
   psm will work with a proxy.

3) (psm-glue) Storing proxy information in psmSocketInfo.

most reviewed by gagan@netscape.com.
2000-05-19 22:56:12 +00:00
warren%netscape.com 727f312b32 Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread. 2000-03-29 03:58:50 +00:00
mkaply%us.ibm.com bae21f473b # 25555
r= warren@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef
2000-02-29 15:40:42 +00:00
warren%netscape.com 6af4802e75 Added buffer size parameters to NewChannel. Allows for optimization of amount of image data consumed. Bug #20408 1999-12-04 10:01:32 +00:00
dougt%netscape.com f66be6c30c fix for 18078. r=mstoltz,warren 1999-11-30 00:32:43 +00:00
warren%netscape.com 34ecf73507 Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott 1999-11-17 08:14:52 +00:00
dmose%mozilla.org 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
gagan%netscape.com c80556169a Last of the leftover files... that didn't include the API change. 1999-11-03 09:33:03 +00:00
dp%netscape.com 45efd8fe95 Removing extra release happening on a service. NS_WITH_SERVICE() will
take care of this release.
1999-11-01 21:57:14 +00:00
gagan%netscape.com f1203c259d Fix for bug # 10333. Made webshell a progress event sink as well so that now it redirects all progress messages from necko land to the appropriate docloader observer. The hack to delete strings which are being received in the status messages is a work around the current limitation of the proxy event code. When bug # 16273 is fixed that delete wont be necessary. In fixing this I also noticed that the nsFileTransport wasn't using the proxy events and was incorrectly firing status messages directly onto the UI thread. Fixed that as well. r=rpotts,warren 1999-10-13 10:24:12 +00:00
warren%netscape.com 40ed9d6ad2 Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked. 1999-09-09 22:05:05 +00:00
warren%netscape.com bf8423a769 Changed around load group insertion/removal to happen on mozilla thread. 1999-07-20 08:46:33 +00:00
warren%netscape.com 84bd74a4fd Big changes for Necko load groups. Things are much happier now. Now images work (on pages, but not in chrome). 1999-07-16 11:14:36 +00:00
gagan%netscape.com d4bf35fcb7 Fixes for the libcookie.so problem (thanks to Andreas for the patch) and then some additional fixes for warnings and such. 1999-07-13 02:37:08 +00:00
warren%netscape.com e9f97d9c22 Changed uses of nsIBufferInputStream::Fill to nsIBuffer::Write. 1999-07-10 11:26:59 +00:00
warren%netscape.com 9975942bdb Added channel argument to nsIStreamObserver/nsIStreamListener/nsIProgressEventSink methods. 1999-07-07 08:08:40 +00:00
warren%netscape.com bd73f68e8b Renamed OnStartBinding/OnStopBinding to OnStartRequest/OnStopRequest (removing the redundant ones from necko). Numerous necko fixes. Necko now using nsIPrompt interface instead of nsINetSupport. 1999-07-01 19:30:20 +00:00
valeski%netscape.com bec54efcc1 nsIChannel api change. you no longer have to supply an nsIEventQueue when calling an AsyncRead|Write() method. 1999-06-29 01:52:30 +00:00
mscott%netscape.com 5d01523ea0 nsIStreamListener::OnDataAvailable now takes a nsIInputStream instead of a nsIBufferInputStream. 1999-06-28 20:37:10 +00:00
andreas.otte%primus-online.de 18c2fd395a fixing for new AutoRegistration 1999-06-22 18:24:02 +00:00
andreas.otte%primus-online.de 19b6475c9e conversion to wstring / PRUnichar
some cosmetics to various Makefiles
1999-06-11 15:50:14 +00:00
warren%netscape.com b113f2332f Moved WriteFrom to nsIBufferOutputStream. Made necko pass around buffer streams. 1999-06-08 20:57:32 +00:00
andreas.otte%primus-online.de 57320fedd0 use new HandleEvent method of EventQueue 1999-06-08 12:24:10 +00:00
warren%netscape.com c0797ee094 New IDL interfaces. 1999-06-07 21:33:30 +00:00
valeski%netscape.com 2248ec3a5b http - fixed build probs
test - moved a local var into a #ifdef because it was throwing a warning on windows
1999-06-03 22:12:26 +00:00
andreas.otte%primus-online.de c7ced45a92 fixes to get the test working under linux, mac stuff still missing 1999-06-03 18:34:51 +00:00
andreas.otte%primus-online.de 239dfd63c5 removed manual registration 1999-06-02 11:29:26 +00:00
warren%netscape.com f6a80b4dec Moving changes from XPCOM20_BRANCH forward. 1999-05-24 09:01:47 +00:00
valeski%netscape.com f1ec11c09c Added Andreas' test program diffs for linux building. Also added an OpenOutputStream test to TestSocketIO.cpp. 1999-05-09 19:18:25 +00:00
valeski%netscape.com 1b339a8876 changed over to nsIEventQueue interface, from straight PL_EventQueue. Also took a whack at getting socketTRansport::OpenOutputSTream to work (hasn't been tested) 1999-05-05 22:41:44 +00:00
valeski%netscape.com 074b42d878 Fixed windows builds. changed #ifdef'd #included <windows.h> from XP_PC/XP_WIN to WIN32. There is not a XP_WIN macro. 1999-05-04 18:50:59 +00:00
hshaw%netscape.com 2202874089 wrap #include <windows.h> with #ifdef XP_WIN (for unix builds) 1999-05-04 00:31:40 +00:00
warren%netscape.com f7fa724505 Added source offset parameter to OnDataAvailable (for byte-range requests). 1999-04-22 08:47:06 +00:00
rpotts%netscape.com cf24c3e0e3 First pass at a socket transport implementation... 1999-04-19 07:17:37 +00:00