Commit Graph

174 Commits

Author SHA1 Message Date
disttsc@bart.nl
e9399ed474 Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc 2001-03-02 09:26:57 +00:00
dougt@netscape.com
d865bfd3cb 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
c6327f63d5 Back out dougt's channel changes 2001-02-12 03:14:23 +00:00
dbaron@fas.harvard.edu
007b0c3e1f Fix OS/2 bustage from dougt's changes with PR_STATIC_CALLBACK. 2001-02-10 02:54:47 +00:00
dougt@netscape.com
a70fce6f87 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
darin@netscape.com
c572d6f42a Bug 62566. nsIChannel::AsyncWrite interface revision and related cleanup.
r=dougt@netcape.com, sr=mscott@netscape.com.
2001-01-23 22:10:34 +00:00
warren@netscape.com
0aaf97b668 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
dc6e48adee 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
valeski@netscape.com
a5a13c2022 making urlinfo threadsafe for test harness a=granrose 2000-06-23 18:49:07 +00:00
valeski@netscape.com
030cf54f04 42767. AsyncOpen (dead code) removal. 2000-06-16 14:59:30 +00:00
pavlov@netscape.com
fcfa21405e string api changes r=scc 2000-04-25 05:40:45 +00:00
warren@netscape.com
a2fb078809 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
gagan@netscape.com
a93f8ff686 New event sink changes for the test case. 2000-03-08 00:35:24 +00:00
warren@netscape.com
90e6ffd47b Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar 2000-03-05 21:26:01 +00:00
jdunn@netscape.com
2cd1fccfcc Fix slamm's warnings of shadowing previous variables.
r= rhp@netscape.com
r= warren@netscape.com
r= rpotts@netscape.com
2000-01-12 00:54:10 +00:00
warren@netscape.com
60e1533d80 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
15861e6442 fix for 18078. r=mstoltz,warren 1999-11-30 00:32:43 +00:00
warren@netscape.com
2faadce595 Removed the nsICapabilities interface in favor of nsIInterfaceRequestor. 1999-11-18 07:36:41 +00:00
warren@netscape.com
d781c103fb Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott 1999-11-17 08:14:52 +00:00
dmose@mozilla.org
796280940b updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
cls@seawood.org
824ba18df3 Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
warren@netscape.com
e7f9437164 Added nsIChannel::GetOriginalURI so that we can get back to the original chrome file (bug#17144). r=rpotts,mscott 1999-10-26 09:16:24 +00:00
warren@netscape.com
285120e9f2 Added AsyncOpen to nsIChannel for URL dispatching. Added ContentLength to InputStreamChannel. (r=rpotts,valeski) 1999-10-06 08:26:01 +00:00
dp@netscape.com
30642844b2 Fixed build bustage caused by undefined min() 1999-10-05 06:28:17 +00:00
rpotts@netscape.com
2070a1c809 Fixed up broken test case while investigating bug #14181... 1999-10-05 05:02:56 +00:00
valeski@netscape.com
872d65d425 15300 r=warren. Changed NS_NewThread api to default to PR_UNJOINABLE_THREAD, also added new NS_NewThread() function so you don't have to combine the runnable w/ thread creation. added threads to xpcom init so you can create them w/ the com mgr. 15298 r=gagan, FTP threads are now synched w/ ftp handler shutdown, removed extraneous buffer work, added ftp authentication, and ftp channel content length 1999-10-01 23:32:12 +00:00
warren@netscape.com
f62f5c3027 Factored file transport service out of file: protocol. 1999-09-16 01:16:22 +00:00
warren@netscape.com
c051b946f8 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
rpotts@netscape.com
8958b1ccca ug #8443. Added GetCharset to nsIHTTPChannel 1999-08-31 04:46:05 +00:00
rickg@netscape.com
d8718e5f03 converted an instance to nsCString and replaced deprecated nsString call 1999-08-29 17:42:34 +00:00
rpotts@netscape.com
d1b34aafe1 M9 BRANCH landing... 1999-08-26 22:45:55 +00:00
rpotts@netscape.com
650405db5a Added code to dump all headers in the OnHeadersAvailable() notification. 1999-08-05 08:29:36 +00:00
warren@netscape.com
11778189fd Added NS_ERROR_UNKNOWN_PROTOCOL, and changed dns error to NS_ERROR_UNKNOWN_HOST. 1999-07-30 04:17:23 +00:00
valeski@netscape.com
c387423716 added dns failure check to output 1999-07-30 02:35:12 +00:00
warren@netscape.com
ccfdb6afee Changed around load group insertion/removal to happen on mozilla thread. 1999-07-20 08:46:33 +00:00
warren@netscape.com
61a33642b8 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
bf87cfb0eb Added HTTP Status to printout. 1999-07-15 22:57:50 +00:00
gagan@netscape.com
5e7d8049c8 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
1dceb783a6 Changed uses of nsIBufferInputStream::Fill to nsIBuffer::Write. 1999-07-10 11:26:59 +00:00
warren@netscape.com
489c1d2df9 Added channel argument to nsIStreamObserver/nsIStreamListener/nsIProgressEventSink methods. 1999-07-07 08:08:40 +00:00
rpotts@netscape.com
4edca76594 Changes to build without NECKO defined... 1999-07-03 04:14:44 +00:00
warren@netscape.com
1496c3eec1 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
a85796061a necko bustage 1999-06-30 20:48:49 +00:00
valeski@netscape.com
2ac7459a2d change all GetIID() calls to nsCOMTypeInfo<foo>::GetIID() calls 1999-06-30 20:20:17 +00:00
valeski@netscape.com
b653699813 changed our nsISupports::GetIID() calls over to nsCOMTypeInfo<foo>::GetIID(). 1999-06-30 20:00:19 +00:00
rpotts@netscape.com
1f414e3508 replaced a call to nsIHTTPChannel::GetResponseHeader(...) with a call to nsIChannel::GetContentType(...) 1999-06-30 06:05:10 +00:00
rpotts@netscape.com
3f670fff60 Fixed up a divide by zero bug... 1999-06-29 06:54:05 +00:00
valeski@netscape.com
379d1b5a82 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
b8fa1a696b nsIStreamListener::OnDataAvailable now takes a nsIInputStream instead of a nsIBufferInputStream. 1999-06-28 20:37:10 +00:00
rpotts@netscape.com
6e1c50a528 Fix to avoid those nasty divide by zero errors :-) 1999-06-27 11:14:35 +00:00