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

1623 Коммитов

Автор SHA1 Сообщение Дата
warren%netscape.com 99916a7641 Added missing addref. r=gayatrib 1999-12-03 02:22:02 +00:00
warren%netscape.com 688ffa434f Fixed bug where file transport would spin if it failed in the nsIFileSystem::Open method. Affected jar protocol. 1999-12-02 02:50:48 +00:00
rpotts%netscape.com f4301f1109 (r=valeski) Fix for new bloat (leaking HTTPChannels) that was introduced yesterday 1999-12-01 04:32:58 +00:00
sspitzer%netscape.com 0ab6aaac52 bulletproofing to prevent #20410 1999-12-01 01:26:08 +00:00
warren%netscape.com a265a32348 Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms. 1999-11-30 04:50:42 +00:00
mscott%netscape.com 67a8e15c39 Fix xp build breakage by defining rv.
I'm not sure how this compiled on someone's machine =)
1999-11-30 01:12:58 +00:00
dougt%netscape.com 1da7d3868d fix for 18078. r=mstoltz,warren 1999-11-30 00:32:43 +00:00
valeski%netscape.com 399023b523 r=warren. the return val from the progress sink was getting in the way of the socket transport state machine, now it's just being ingonored. 1999-11-29 22:16:21 +00:00
brendan%mozilla.org c63c17aca0 Whitespace police! 1999-11-28 10:26:53 +00:00
warren%netscape.com 4ab4ee4d4e Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
waterson%netscape.com 478d77770a Bug 19600. Change content length magical 'unknown-so-read-til-you-puke' value from zero to -1. 1999-11-24 21:44:13 +00:00
valeski%netscape.com e5fe71da28 passing a signed int into an unsigned param. now we're not 1999-11-24 21:07:11 +00:00
valeski%netscape.com ff8120dbd7 18434, r=rpotts. the socket transport now issues OnProgress notifications 1999-11-23 23:53:10 +00:00
valeski%netscape.com 7cd3b6f3eb r=warren. missing addref in sync streamlistener creator. 1999-11-23 21:41:12 +00:00
waterson%netscape.com 7c40f7ec27 Fix nsNetModuleMgr and nsNetModRegEntry leaks. r=valeski 1999-11-23 20:47:25 +00:00
andreas.otte%primus-online.de e8ccb0e281 Added code to remove trailing spaces in URLs. (Fixes bug 15451)
Some code to add a trailing / in SetDirectory if it is missing. There is no special bug behind this, just a fix for a potential bug.

And a oneliner in ParsePath to deal with params, querys and refs in the right place. Between setting brk and getting to the code that deals with this stuff, there is a ReplaceMess call which can change the position of querys and co. This change avoids that problem.

r=valeski
1999-11-23 14:06:17 +00:00
rpotts%netscape.com eb0cf86772 bug #15342 and #15560. Refactored the LoadGroup and DocumentLoader... 1999-11-22 05:46:03 +00:00
waterson%netscape.com 185feea34c Bug 16797. Allow files to be 'zero' length. r=warren 1999-11-20 07:15:28 +00:00
warren%netscape.com bec28d62e5 Fix for bug that triggers assertion in END_READ state of file transport. 1999-11-20 04:19:20 +00:00
tbogard%aol.net 32683c53e8 Spelling fix for bug #16386. 1999-11-20 03:57:34 +00:00
duncan%be.com b2f3e43c7c Fix to behave correctly under BeOS.
r=warren
1999-11-19 21:58:39 +00:00
fur%netscape.com 0c7f0bf6ab Add support for offset argument to FileTransport's OpenOutputChannel() method.
r: fur, yixiong.zou@intel.com
1999-11-19 15:56:24 +00:00
mscott%netscape.com 6cec5eae37 remove these obsolete files. 1999-11-18 09:56:39 +00:00
mscott%netscape.com deaa4a3be5 Fix clobber unix build. don't build uri dispatcher anymore. 1999-11-18 09:55:44 +00:00
mscott%netscape.com 392ef94e33 remove some obsolete files 1999-11-18 08:15:39 +00:00
mscott%netscape.com 36fcad27d3 Remove some obsolete idl files from the unix build. 1999-11-18 08:13:15 +00:00
warren%netscape.com d8bbb844e6 Removed the nsICapabilities interface in favor of nsIInterfaceRequestor. 1999-11-18 07:36:41 +00:00
warren%netscape.com aaf83521f5 Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott 1999-11-17 08:14:52 +00:00
warren%netscape.com b18f1f2b6d Fix socket transport deadlock (affecting imap thread). Bug #18201 and regression bug 14612. r=rpotts 1999-11-16 01:25:46 +00:00
warren%netscape.com 01a5c1fa80 Libjar cleanup. Added Close method. Bug#18273. r=mstoltz,gayatrib,dveditz 1999-11-12 06:13:13 +00:00
warren%netscape.com a22efa2985 Added 1999-11-11 05:21:38 +00:00
valeski%netscape.com fcb6898462 16256, r=gagan. the nsinputstreamchannel was lowercasing the entire contenttype. we don't want to lower case the contenttype attribs 1999-11-11 00:37:18 +00:00
valeski%netscape.com 5e78789c1b 18134, a=chofmann,r=andreas. Resolve() was not handling ../../ cases in relative URI specs. Now it is. We call ReplaceDotMess() on the path portion _only_. 1999-11-09 21:31:43 +00:00
dmose%mozilla.org 42fc94a6ec updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
rpotts%netscape.com aaff8f1fe9 bug #7428. Added support for connection timeout. Now if a connection cannot be made within 35 seconds, the transport times out. 1999-11-06 01:32:34 +00:00
rpotts%netscape.com 26886c0192 bug #17500 (r=warren). Added code to fire an OnStopNotification to the parent load group if an active group is canceled. 1999-11-05 20:51:11 +00:00
valeski%netscape.com d734e720e1 10736, r=andreas.otte@primus-online.de. Actually I'm more like the reviewer here. Andreas submitted this optimization to MakeAbsolute (it uses minimal memory routines and minimal parsing. this means performance increase by a factor of 10 for this method). I'm checking it in for him. 1999-11-04 20:31:36 +00:00
gagan%netscape.com 3deed6b233 Fixes 11708,15477 and partial 14610. r=warren. We now pass a print host for displaying in status messages that is different than the hostname connecting to. Also added Keep-Alive support (turned on by user_pref("network.http.keep-alive",1)) 1999-11-03 08:14:38 +00:00
gagan%netscape.com ca894d853a *** empty log message *** 1999-11-03 08:12:18 +00:00
gagan%netscape.com e5ae8343a0 Added printHost parameter for use in status messages in cases where printHost is different than the connecting host (as in the case of proxies) Fixes bug 11708. r=warren. 1999-11-03 08:11:39 +00:00
davidm%netscape.com 6166f186c6 6552 Browser-generated forms not triggering single-signon add nsINetPrompt for single sign on r morse 1999-11-03 05:21:49 +00:00
davidm%netscape.com 622def8c98 First Checked In. 1999-11-03 05:19:39 +00:00
warren%netscape.com 813f9f7c13 Structural changes for MakeAbsolute performance. bug#10736 r=valeski 1999-11-03 05:13:44 +00:00
warren%netscape.com b22885e6c4 Made nsIInputStreamChannel scriptable and constructable from component manager. bug#15294 1999-11-03 05:09:20 +00:00
gagan%netscape.com af6e1f65f9 Added file. Not in the build. Some utility code for color console messages on Unix. Using this is simple- Declare PRINTF_FOO in the scope of your printf statements where FOO is one of the colors in (YELLOW, RED, CYAN, BLUE, MAGENTA, GREEN) and any printfs in that scope will print in color. You may also start and stop colors by using STARTF00 and ENDCOLOR. So you can try something like printf(STARTRED "Red " STARTBLUE "Blue" ENDCOLOR); 1999-11-03 03:43:13 +00:00
rpotts%netscape.com 575044ca6e bug #3469 (r=warren). Fixing nsLoadGroup::Cancel() to call cancel on all active transports and subgroups... 1999-11-02 08:00:07 +00:00
warren%netscape.com 2a827fc8c2 Made nsIUnicharStreamLoader be scriptable and deal with an xpcom observer instead of a proc pointer and void*. Part of bug#11159. r=nisheeth,kipp,pierre 1999-11-02 06:49:44 +00:00
warren%netscape.com 10115ed6f4 Removed dependence on neckoutil functions. Part of bug#11159. Not in the build yet. 1999-11-02 05:31:56 +00:00
dp%netscape.com 3bf6e83426 Changing misuse of NS_WITH_SERVICE() to GetService(). r=warren 1999-11-02 01:40:14 +00:00
mscott%netscape.com 19413247cc remove these uri dispatching interfaces from netwerk.
they live in uriloader now.
1999-11-01 21:47:26 +00:00
mscott%netscape.com a8f6b015b4 none of these interfaces were being used yet.
they've been moved into mozilla\uriloader.
1999-11-01 21:45:29 +00:00
warren%netscape.com a8daf775e2 Eliminating netwerk/util 1999-11-01 20:48:12 +00:00
rpotts%netscape.com c9a9826628 Fixed crash during error condition in END_WRITE... (r=warren) 1999-10-29 22:14:52 +00:00
mscott%netscape.com ba6007f629 part of url dispatching framework.
build nsURLDispatcher.cpp
1999-10-28 22:08:57 +00:00
mscott%netscape.com 800ccf2012 export uri dispatching interfaces. 1999-10-28 20:37:58 +00:00
warren%netscape.com dce1fc7e3b Changed file transport to facilitate jar: protocol -- parameterized by nsIFileSystem. Bug#12579 r=gagan,gayatrib 1999-10-28 08:02:07 +00:00
mscott%netscape.com febdba920e part of url dispatching.
export the uri dispatching interfaces.
no reviewer for this makefile change.
1999-10-28 02:05:12 +00:00
rpotts%netscape.com 247f25c399 bug #13054. r=mscott,warren. Reworked how data is written to the network. I consolidated the writing of nsIBufferInputStreams and nsIInputStreams and limited the amount of data being wrtten at once to MAX_IO_TRANSFER_SIZE... 1999-10-27 06:51:12 +00:00
mscott%netscape.com e630bd1249 Bug #14928 --> url dispatching. Adding initial scaffolding for the uri dispatcher service.
(not part of the build yet)
1999-10-27 06:49:42 +00:00
gagan%netscape.com a50fd48f1b Fixed bugs 11677 (perf) 13837 (spaces) 14380 (leading spaces) 14707 (-1) 15069 (file://) r=valeski 1999-10-26 23:16:34 +00:00
mscott%netscape.com 931e9f189d Bug #14928 -- > url dispatching. Change DoContent to return a stream listener instead of
a nsIContentViewer.
r=travis
1999-10-26 20:35:21 +00:00
warren%netscape.com 00dfd9d907 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
mscott%netscape.com cf452073a1 Bug #14928 --> url dispatching. convert nsIContentHandler.idl, nsIURIDispatcher.idl and nsIContentListener.idl
into .h files.
no reviewer yet. the code review for url dispatching will come later.
1999-10-26 07:11:44 +00:00
mscott%netscape.com c2f69d462e Bug #14928 --> first pass at several key interfaces for url dispatching.
Not part of the build and no reviewer yet. The review will come later on when we review url dispatching
1999-10-26 07:10:27 +00:00
dougt%netscape.com 080d3870be Change net module notification to make proxies lazy. r=dveditz, mozbot.
This reduces memory overhead.
1999-10-25 22:31:59 +00:00
rpotts%netscape.com 387c490df3 Backing out the fix for bug #15560. This fixes the editor regression - bug #16937 1999-10-24 07:26:54 +00:00
rpotts%netscape.com 6fc67ef4bc bug #15560. Changed the LoadGroup to fire notifications via PLEvents to stop reenterency. 1999-10-19 19:36:07 +00:00
danm%netscape.com ef90a72dc9 adding PR_LOGging to event queue handling. r:hyatt@netscape.com 1999-10-18 15:09:50 +00:00
gagan%netscape.com 28d1831f8f Added "resolving host" status notification for eSocketState_Created. No bug number. r=law. 1999-10-15 22:47:24 +00:00
gagan%netscape.com c75846c5bf Fix the windows build bustage. Bad checkin on my part! 1999-10-13 11:09:37 +00:00
gagan%netscape.com 9f6ee2c4f1 Removing an #if 0 block that got checked in accidently with my last checkins. 1999-10-13 10:31:16 +00:00
gagan%netscape.com 7f425f1145 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 6b7691039e Added about:bloat 1999-10-12 09:35:22 +00:00
sfraser%netscape.com 616ef9fafe Fix for bug 16151; make the file transport working thread stack size 64k, instead of 8k. Fixes crashes on startup on Mac. r=beard 1999-10-12 05:39:18 +00:00
warren%netscape.com 334b887595 Lowercased idl method names for scriptability. Cleaned up nsIURL interface. 1999-10-12 01:39:37 +00:00
beard%netscape.com a5e4f4ad06 nsFileSpec.GetLeafName() allocates a string, fix leak. r=warren, bug=15380 1999-10-09 02:52:46 +00:00
gagan%netscape.com d690046c56 Partial checkins for fixing bug # 10333. Added the nsIStatusCodeEventSink for conveying status codes to the UI thread from the socket ones. r=mscott,a=don 1999-10-06 20:50:12 +00:00
mscott%netscape.com d2a674c183 No Bug #.......removing an obsolete file that isn't part of the build
r=valeski
1999-10-06 20:21:35 +00:00
valeski%netscape.com a5c9151b68 r=warren, 15457. Added file extension attribute to URL implementations 1999-10-06 14:36:22 +00:00
warren%netscape.com 311b9087b9 Fixed nsCOMPtr bustage. 1999-10-06 09:03:43 +00:00
warren%netscape.com d4f45caf5a Added AsyncOpen to nsIChannel for URL dispatching. Added ContentLength to InputStreamChannel. (r=rpotts,valeski) 1999-10-06 08:26:01 +00:00
gagan%netscape.com 3a7d1e5526 An event sink to transfer status codes to a consumer of necko.
This is not in the build as yet.
1999-10-06 07:49:32 +00:00
warren%netscape.com 0712af2596 Added nsIFileSystem interface for new file transport implementation. 1999-10-06 07:27:22 +00:00
mscott%netscape.com 1abdac31fc Bug #0000 (no bug # needed) remove nsIStreamConverter2.idl r=valeski 1999-10-06 03:27:15 +00:00
mscott%netscape.com f4823e5ac0 bug #000 (no bug # needed). removing obsolete file from the build
nsIStreamconverter2.idl
r=valeski
1999-10-06 03:21:44 +00:00
mscott%netscape.com 59583bc3c4 Bug #000 (no bug number needed) remove an obsolete file from the build (nsIStreamConverter2.idl)
r=valeski
1999-10-06 03:20:39 +00:00
rpotts%netscape.com 4d3471c1c9 Added a missing lock to nsSocketTransport::OnFull... reviewed by warren. 1999-10-05 08:41:37 +00:00
valeski%netscape.com 0155919623 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
dougt%netscape.com 14ecb2a17e adding hostname to socket provider. (r) warren. 1999-10-01 23:23:49 +00:00
warren%netscape.com 24723c4505 Cleanup 1999-09-26 10:12:54 +00:00
warren%netscape.com ed9dcea99c Fixed NewChannel to not look up service twice 1999-09-26 10:11:36 +00:00
warren%netscape.com 24931754b0 Fixed bug#14863 Network buffer size too large 1999-09-25 08:54:45 +00:00
pavlov%netscape.com 9708a222a6 implimented GetURI() 1999-09-22 06:27:37 +00:00
kipp%netscape.com 99dc5f25ab Fixed some of bug #6193 1999-09-21 22:27:06 +00:00
valeski%netscape.com 7e924e5a15 removed dependency on #include string.h nsSocketTransportService.cpp 1999-09-21 21:32:01 +00:00
valeski%netscape.com a1c84c8d7d removed extraneous #include nsString2.h nsSocketTransport.cpp 1999-09-21 21:24:32 +00:00
valeski%netscape.com 5f6735e270 removed dependency on ctype.h and made a few optimizations 1999-09-21 20:37:01 +00:00
rpotts%netscape.com 9fd844f710 Checking in a patch that ramiro gave me to fix some multi-processor Linux woes... 1999-09-21 08:29:18 +00:00
rpotts%netscape.com c5e4757fe6 Reworked how the socket transport uses the DNS service - as discussed with gordon... 1999-09-21 08:02:06 +00:00
warren%netscape.com 1c51d9a00b Fixed warnings. 1999-09-20 20:57:21 +00:00
warren%netscape.com c0d4babc21 exited threads on shutdown in nsFileTransportService 1999-09-20 20:53:09 +00:00
sspitzer%netscape.com ea1bd70917 fix for #14326
r=gagan
nsStdURL was not correctly parsing the host out of url's like "foo://bar@cheese"
1999-09-20 07:45:42 +00:00
rpotts%netscape.com 5cdf5b13e8 The nsLoadGroup now supports nsWeakReference... 1999-09-20 05:27:50 +00:00
mccabe%netscape.com 39e5fe6519 Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.
1999-09-19 23:46:35 +00:00
andreas.otte%primus-online.de 1a8af0d616 modified comment to DirFile to reflect changed nsStdURL.cpp 1999-09-18 09:24:17 +00:00
andreas.otte%primus-online.de f5dbc8bf90 fixing a memory leak, thanks David 1999-09-18 09:06:23 +00:00
slamm%netscape.com 45016605a7 Re-order initializers to match class declarations (i.e. fix build warning). 1999-09-18 01:38:46 +00:00
andreas.otte%primus-online.de 5d5653e97d fix for bug 14132 1999-09-17 14:52:39 +00:00
andreas.otte%primus-online.de 17dfae29ea fix for bug 12059, bug 13311, bug 13313, bug 12769, bug 11643 and bug 11648 1999-09-16 20:08:21 +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
rpotts%netscape.com 217c3b3bc7 Fire an OnStopRequest notification if the load group is cancelled... 1999-09-16 08:53:21 +00:00
warren%netscape.com e6d8b809a9 Fix for the editor coming up DOA. nsInputStreamChannel wasn't getting the load group propagated to it. 1999-09-16 08:03:02 +00:00
warren%netscape.com f8321327e6 Added missing includes for nsCOMPtr (why doesn't Windows complain about this!). 1999-09-16 01:48:00 +00:00
warren%netscape.com 408c5d69f8 removed in favor of idl 1999-09-16 01:25:54 +00:00
warren%netscape.com 48cf4685a9 Factored file transport service out of file: protocol. 1999-09-16 01:16:22 +00:00
slamm%netscape.com 03edad3255 Fix build warnings. 1999-09-15 19:18:15 +00:00
warren%netscape.com c9ec17df19 idl versions 1999-09-15 09:51:46 +00:00
warren%netscape.com 0b7d06c326 Adding includes for nsIThreadPool.h and nsIRunnable.h in anticipation of idl files. 1999-09-15 09:49:18 +00:00
valeski%netscape.com 5170b2d8d0 content types are now forced to lower case: 13609 1999-09-14 19:42:09 +00:00
warren%netscape.com 440f950f3c Getting ready to turn on the new file transport. 1999-09-14 04:36:16 +00:00
briano%netscape.com 0059c0009e General cleanup. 1999-09-14 01:35:43 +00:00
warren%netscape.com 7c8a086afa Moving this from netwerk/protocol/file/src. 1999-09-13 20:20:21 +00:00
warren%netscape.com 609776f0f2 New modernized file transport. I'm in the process of factoring this out from nsFileChannel. 1999-09-13 20:19:32 +00:00
valeski%netscape.com baffd43666 beefed up the user agent string component initialization stuff, see bug 10465 for more info 1999-09-13 18:35:27 +00:00
rpotts%netscape.com c3f52c25d0 Throw away any pending channels when Cancel is called... 1999-09-12 08:44:53 +00:00
rpotts%netscape.com 0e5b738fa2 The DNS Service is now used for hostname resolution... 1999-09-12 05:29:27 +00:00
warren%netscape.com b27ac097f7 Re-adding these files. 1999-09-11 22:32:20 +00:00
warren%netscape.com e65518aed5 Attempt to fix linux bustage. 1999-09-11 20:45:50 +00:00
warren%netscape.com 41295ce854 More fixes for nsCOMPtr inconsistencies. 1999-09-11 19:43:06 +00:00
warren%netscape.com 0cd0131c3a Fix for linux breakage. 1999-09-11 19:32:03 +00:00
warren%netscape.com fec02a32a9 Removed caps dependency from necko. Used nsCOMPtr for nsInputStreamChannel. 1999-09-11 18:45:36 +00:00
mscott%netscape.com df370cde61 export nsIRequest.idl so other idl files outside of netwerk can inherit from it. 1999-09-11 05:13:13 +00:00
warren%netscape.com df6219e5c5 Reduced IO buffer and transfer size. 1999-09-11 00:56:22 +00:00
mscott%netscape.com 7511275537 export nsIChannel.idl so other idl files outside of netwerk can inherit from it. 1999-09-10 23:23:24 +00:00
valeski%netscape.com eed6058ab3 added more robust/accurate numeric ip address check 1999-09-10 22:33:09 +00:00
valeski%netscape.com b19029e2ce forcing CString and setting capacitynsStdURL.cpp 1999-09-10 18:30:51 +00:00
warren%netscape.com e3556ced12 Fix for blocking output streams (affects mailnews). Basically we were calling ReadSegments with a 0 count, and when it returned 0 we thought it was EOF. 1999-09-10 01:46:49 +00:00
vidur%netscape.com 116b2b1ad4 nsLoadGroup now uses weak pointers for observers and LoadGroupListenerFactory. 1999-09-09 23:55:19 +00:00
warren%netscape.com e6619b2ad6 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 b4e64e851f bug #11376. I added GetContentLength to nsIChannel so the content length can be gotten from a channel... 1999-09-09 05:07:30 +00:00
briano%netscape.com 93df94cd60 General cleanup. 1999-09-09 02:02:21 +00:00
briano%netscape.com 7ac74af48f Removed the obsolete non-NECKO leftovers. 1999-09-09 00:41:10 +00:00
brendan%mozilla.org 1f1df8328b Don't abuse nsAutoLock in single-exit nsSocketTransport::Process and PR_Unlock
and relock it in subroutines -- this causes false deadlock-detection positives.
Also comment module callouts with lock held.
1999-09-08 06:17:20 +00:00
cls%seawood.org e093f3ce48 include <string.h> for when it disappears from nsID.h again. 1999-09-06 23:08:43 +00:00
brendan%mozilla.org d31330dd99 Expand tabs to spaces per Emacs modeline; other space cleanups. 1999-09-06 22:59:11 +00:00
valeski%netscape.com 03b9d2d6cb changed nsCOMTypeInfo<> template to NS_GET_IID macro 1999-09-03 23:51:14 +00:00
bruce%cybersight.com d602e5d399 Use nsCRT::free() instead of delete[] for char* data. 1999-09-03 07:53:26 +00:00
kipp%netscape.com a99f5ec06a Use nsAutoString instead of nsString for temps 1999-09-02 18:13:07 +00:00
dougt%netscape.com cd9ac1155d Bug fix for 12702.
Adding notes to remove nsIAtom comparison by string.
1999-09-01 20:06:30 +00:00
valeski%netscape.com 18b6b520b9 warning fix 1999-09-01 14:11:15 +00:00
warren%netscape.com bcf332baf2 Cleaning up dependency on nsIBuffer.h 1999-09-01 04:40:12 +00:00
warren%netscape.com c5f6d7673b Made NS_BASE_STREAM_WOULD_BLOCK a failure code (for JS). Reduced socket transport buffer size. Fixed ABBA deadlock when calling OnEmpty in pipe code (bug#12870). 1999-08-31 21:47:30 +00:00
norris%netscape.com 59b4dc8374 * clean up nsScriptSecurityManager
* remove nsJSSecurityManager
* save principals in nsIChannels and nsIDocuments
1999-08-29 21:58:42 +00:00
valeski%netscape.com a5882fc3aa nsString2 to nsCString 1999-08-29 16:46:30 +00:00
valeski%netscape.com 57410e59f3 change nsString2 to nsCString 1999-08-29 16:42:27 +00:00
valeski%netscape.com 92d9844e9e added GetContentType functionality. Now the channel tries the mime service and uses it's own member when possible. 1999-08-29 14:14:30 +00:00
gagan%netscape.com 57a7e15a93 Fixed tabs to spaces and misc leaks... 1999-08-27 12:38:06 +00:00
warren%netscape.com 9035220499 Fix for linux bustage (different includes for some reason). 1999-08-27 11:03:12 +00:00
warren%netscape.com 184fdb8f91 Ported to the new nsPipe2 implementation. 1999-08-27 10:33:37 +00:00
jevering%netscape.com 3248e321c0 Finshed null reference fix. 1999-08-27 06:32:18 +00:00
jevering%netscape.com 81f2efbbfa Free'd memory read fix. 1999-08-27 06:08:21 +00:00
rpotts%netscape.com 7bf583c180 Fix for unix... nsIChannel needed to be fully defined... 1999-08-26 23:05:20 +00:00
rpotts%netscape.com 3ed5c99db2 M9 BRANCH landing... 1999-08-26 22:45:55 +00:00
gagan%netscape.com 1feb14b092 Argh... missed a free. 1999-08-25 23:58:24 +00:00
gagan%netscape.com 5a94dcec3c Fix for #11204. 1999-08-25 23:27:58 +00:00
warren%netscape.com 38fada211e Added new nsIPipe/nsPipe2 stuff inside #ifdef NSPIPE2. 1999-08-24 21:47:23 +00:00
hshaw%netscape.com 9435f9ba4b purging temporary NET_SOCKET_PROVIDER_BUILD ifdef, dougt checked in mac build support 1999-08-24 19:04:58 +00:00
dougt%netscape.com 3da49a37cd Making nsNetModuleMgr use proxy.
Clean up nsNetModuleMgr API.
Change http to use new API.
1999-08-24 00:34:51 +00:00
gagan%netscape.com 5b52250da7 We dont need this macro here now. Its available in nsCRT for all to use. 1999-08-23 08:30:55 +00:00
mccabe%netscape.com 3d4917b628 Replace declarations of interface methods in implementation classes with xpidl-generated NS_DECL_NSIFOO.
Remainder of the netwerk portion of the NS_DECL_NSIFOO spam.
1999-08-22 23:52:07 +00:00
hshaw%netscape.com b2f5f07784 allow selection of socket type using socket providers 1999-08-22 17:26:09 +00:00
mccabe%netscape.com 2290033202 NS_DECL_NSIFOO spam for nsIRequest, nsIChannel, nsIStreamListener, nsIStreamObserver, all from netwerk/
convert manual interface method declarations in implementation class to NS_DECL_NSIFOO macro.
1999-08-22 13:26:18 +00:00
gagan%netscape.com 1bb2a5c082 Code style consistency cleanup. 1999-08-21 00:22:18 +00:00
tbogard%aol.net c8c8eea4c0 XPCOM Cleanup: Fixed Aggregation macros in nsAgg.h to do aggregation correctly. Fixed usages and implementation of aggregation using these macros through out the tree. 1999-08-19 05:36:30 +00:00
leaf%mozilla.org 59839a7409 backing out dougt 1999-08-19 02:35:39 +00:00
dougt%netscape.com f18b0e74f6 Adding thread proxy support to Net Module Notification.
General cleanup
1999-08-18 09:32:26 +00:00
gagan%netscape.com cb66e1d8ad backslashes in ..\.. cases fixed. Thanks bratell@lysator.liu.se 1999-08-13 05:20:45 +00:00
warren%netscape.com 8439e8f8ec Fix for bug 7682: StringBundle can't load URLs from imap thread. 1999-08-13 00:43:48 +00:00
gagan%netscape.com 67455042ca Fixed bunch of M9 bugs for Necko. 1999-08-12 09:59:24 +00:00
valeski%netscape.com 7f056f0c0d added user agent language setter routine 1999-08-10 18:33:27 +00:00
rpotts%netscape.com c441f1624b Implement nsIRequest::Cancel() for the SocketTransport. 1999-08-09 07:05:15 +00:00
morse%netscape.com 05534f19dd cleaned up dialogs 1999-08-06 00:29:10 +00:00
rpotts%netscape.com c99f3b9d7a bug #10739. Reworking header APIs... I've removed nsIHeader.h. 1999-08-05 08:28:49 +00:00
mscott%netscape.com fc725eefbf bulletproof some NS_RELEASE's with NS_IF_RELEASE. 1999-08-04 21:23:26 +00:00
valeski%netscape.com 67e54f0298 nsNetModRegEntry.cpp - fixed mem leak. nsStdURL.cpp - fixed port parsing bug 1999-08-04 21:20:48 +00:00
warren%netscape.com 72c37924c2 Removed hack to export to netwerk/dist (used before landing necko). 1999-08-03 00:38:25 +00:00
warren%netscape.com aaa89f95e0 Removed nsCOMPtr breakage. 1999-07-31 07:30:49 +00:00
warren%netscape.com 10e252654f Added GetLoadGroup/SetLoadGroup to nsIChannel so that redirects can discover the group. 1999-07-31 06:53:12 +00:00
warren%netscape.com 417a407ee5 Lots of cool logging code. 1999-07-31 06:28:31 +00:00
gagan%netscape.com c18005e5cd Fix MLK. Freeing up previous versions of mPath/mScheme 1999-07-31 00:15:49 +00:00
warren%netscape.com bba02d9418 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 c97fba8802 crahser fix 10843 - bad host name was crashing the socket transport in error state 1999-07-30 02:36:52 +00:00
bruce%cybersight.com 86093c8161 Build fix for aCC on HP-UX. Approved by leaf. 1999-07-29 04:21:42 +00:00
mscott%netscape.com a514d6dfd1 fix build breakage by including config.mak 1999-07-29 02:47:16 +00:00
mscott%netscape.com ef2578dab6 Fix build breakage...include config.mak 1999-07-29 02:35:45 +00:00
rpotts%netscape.com 0749fbf78c Close the socket if an error occurred... 1999-07-28 11:08:18 +00:00
rpotts%netscape.com 3147e21651 Changed OnStopRequest(...) to always file - regardless of the mStatus. This insures that the consumer will *always* receive an OnStopRequest(...) notification. 1999-07-28 11:07:39 +00:00
warren%netscape.com 5c61055a2b Fixed mismatched delete problem (purify). 1999-07-28 04:05:10 +00:00
gagan%netscape.com 089b1a8da9 More URL parsing updates for not so common cases. 1999-07-28 02:13:07 +00:00
gagan%netscape.com 8a17f9d60b Fixed the URL parsing for http://foo:80 1999-07-27 21:28:05 +00:00
valeski%netscape.com 3b47bd5edf fixing mem leak 1999-07-27 21:12:50 +00:00
rpotts%netscape.com 516aa68268 Added a temporary new define called USE_POLLABLE_EVENT which windows and unix both define... On the Mac, rather than using NSPR pollable events, a small timeout is set for PR_Poll(...) and new entry processing occurs after a timeout :-( 1999-07-27 09:21:07 +00:00
warren%netscape.com cf64533de5 Fixed tab-width 1999-07-27 08:46:27 +00:00
warren%netscape.com 5cdf76ac2e Added logging. 1999-07-27 08:45:35 +00:00
warren%netscape.com 27519b34c4 Fixed NewURI to not pass base URI when spec is absolute. 1999-07-27 08:45:20 +00:00
gagan%netscape.com 55879e3f5c -Fixed parsing to handle the mscott cases of-
mailbox://foo:25/user@netscape.com
	pop3://foo:110?check
-Fixed missing directory situations. (thanks Andreas)
-Removed the temporary hack for converting from ToNewCString to nsCRT::free'able
type. This removes the FMM errors on Bruce's log. No more mismatched freeing.


? diffs
Index: nsStdURL.cpp
===================================================================
RCS file: /cvsroot/mozilla/netwerk/base/src/nsStdURL.cpp,v
retrieving revision 1.5
diff -r1.5 nsStdURL.cpp
147,150c147
<     {
< 		//TODO
<         return NS_ERROR_FAILURE; // this should really be NS_ERROR_URL_PARSING
<     }
---
>         return NS_ERROR_MALFORMED_URI;
154c151
<     static const char delimiters[] = "/:@"; //this order is optimized.
---
>     static const char delimiters[] = "/:@?"; //this order is optimized.
157,493c154
<     if (brk)
<     {
<         switch (*brk)
<         {
<         case '/' :
<             // If the URL starts with a slash then everything is a path
<             if (brk == mSpec)
<             {
< 				ExtractString(mSpec, &mPath, 0, len);
<                 return NS_OK;
<             }
<             else // The first part is host, so its host/path
<             {
<                 ExtractString(mSpec, &mHost, 0, (brk - mSpec));
<                 ExtractString(mSpec, &mPath, (brk - mSpec), (len - (brk - mSpec)));
<                 return NS_OK;
<             }
<             break;
<         case ':' :
<             if (*(brk+1) == '/')
<             {
<                 ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
<
<                 if (*(brk+2) == '/') // e.g. http://
<                 // If the first colon is followed by // then its definitely a spec
<                 {
<                     lastbrk = brk+3;
<                     brk = PL_strpbrk(lastbrk, delimiters);
<                     if (brk)
<                     {
<                         switch (*brk)
<                         {
<                             case '/' : // standard case- http://host/path
<                                 ExtractString(mSpec, &mHost,
< 								    (lastbrk - mSpec), (brk - lastbrk));
<                                 ExtractString(mSpec, &mPath,
< 								    (brk - mSpec), (len - (brk - mSpec)));
<                                 return NS_OK;
<                                 break;
<                             case ':' :
<                                 {
<                                     // It could be http://user:pass@host/path
< 								    // or http://host:port/path
<                                     // For the first case, there has to be an
< 								    // @ after this colon, so...
<                                     char* atSign = PL_strchr(brk, '@');
<                                     if (atSign)
<                                     {
<                                         ExtractString(mSpec, &mPreHost,
< 										    (lastbrk - mSpec), (atSign - lastbrk));
<                                         brk = PL_strpbrk(atSign+1, "/:");
<                                         if (brk) // http://user:pass@host:port/path or http://user:pass@host/path
<                                         {
<                                             ExtractString(mSpec, &mHost,
< 											    (atSign+1 - mSpec),
< 											    (brk - (atSign+1)));
<                                             if (*brk == '/')
<                                             {
<                                                 ExtractString(mSpec, &mPath,
< 												    (brk - mSpec),
< 												    len - (brk - mSpec));
<                                                 return NS_OK;
<                                             }
<                                             else // we have a port since (brk == ':')
<                                             {
<                                                 lastbrk = brk+1;
<                                                 brk = PL_strchr(lastbrk, '/');
<                                                 if (brk) // http://user:pass@host:port/path
<                                                 {
<                                                     mPort = ExtractPortFrom(mSpec, (lastbrk - mSpec), (brk-lastbrk));
<                                                     ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
<                                                     return NS_OK;
<                                                 }
<                                                 else // http://user:pass@host:port
<                                                 {
<                                                     mPort = ExtractPortFrom(mSpec, (lastbrk - mSpec), len - (lastbrk - mSpec));
<                                                     return NS_OK;
<                                                 }
<                                             }
<
<                                         }
<                                         else // its just http://user:pass@host
<                                         {
<                                             ExtractString(mSpec, &mHost,
< 											    (atSign+1 - mSpec),
< 											    len - (atSign+1 - mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                     else // definitely the port option, i.e. http://host:port/path
<                                     {
<                                         ExtractString(mSpec, &mHost,
< 										    (lastbrk-mSpec),
< 										    (brk-lastbrk));
<                                         lastbrk = brk+1;
<                                         brk = PL_strchr(lastbrk, '/');
<                                         if (brk)    // http://host:port/path
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                                             ExtractString(mSpec, &mPath,
< 											    (brk-mSpec),
< 											    len - (brk-mSpec));
<                                             return NS_OK;
<                                         }
<                                         else        // http://host:port
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                 }
<                                 break;
<                             case '@' :
<                                 // http://user@host...
<                                 {
<                                     ExtractString(mSpec, &mPreHost,
< 									    (lastbrk-mSpec), (brk-lastbrk));
<                                     lastbrk = brk+1;
<                                     brk = PL_strpbrk(lastbrk, ":/");
<                                     if (brk)
<                                     {
<                                         ExtractString(mSpec, &mHost,
< 										    (lastbrk-mSpec), (brk - lastbrk));
<                                         if (*brk == ':') // http://user@host:port...
<                                         {
<                                             lastbrk = brk+1;
<                                             brk = PL_strchr(lastbrk, '/');
<                                             if (brk)    // http://user@host:port/path
<                                             {
<                                                 mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                                                 ExtractString(mSpec, &mPath,
< 												    (brk-mSpec),
< 												    len - (brk-mSpec));
<                                                 return NS_OK;
<                                             }
<                                             else        // http://user@host:port
<                                             {
<                                                 mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                                                 return NS_OK;
<                                             }
<
<                                         }
<                                         else // (*brk == '/') so no port just path i.e. http://user@host/path
<                                         {
<                                             ExtractString(mSpec, &mPath,
< 											    (brk - mSpec),
< 											    len - (brk - mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                     else // its just http://user@host
<                                     {
<                                         ExtractString(mSpec, &mHost,
< 										    (lastbrk+1 - mSpec), len - (lastbrk+1 - mSpec));
<                                         return NS_OK;
<                                     }
<
<                                 }
<                                 break;
<                             default: NS_POSTCONDITION(0, "This just can't be!");
<                                 break;
<                         }
<
<                     }
<                     else // everything else is a host, as in http://host
<                     {
<                         ExtractString(mSpec, &mHost,
< 						    (lastbrk - mSpec),
< 						    len - (lastbrk - mSpec));
<                         return NS_OK;
<                     }
<
<                 }
<                 else // This is a no // path alone case like file:/path, there is never a prehost/host in this case.
<                 {
<                     ExtractString(mSpec, &mPath, (brk-mSpec+1), len - (brk-mSpec+1));
<                     return NS_OK;
<                 }
<             }
<             else // scheme:host or host:port...
<             {
<                 lastbrk = brk+1;
<
<                 if ((*lastbrk >= '0') && (*lastbrk <= '9')) //host:port...
<                 {
<                     ExtractString(mSpec, &mHost, 0, (brk - mSpec));
<                     brk = PL_strpbrk(lastbrk, delimiters);
<                     if (brk)
<                     {
<                         switch (*brk)
<                         {
<                             case '/' : // The path, so its host:port/path
<                                 mPort = ExtractPortFrom(mSpec, lastbrk-mSpec, brk-lastbrk);
<                                 ExtractString(mSpec, &mPath, brk- mSpec, len - (brk-mSpec));
<                                 return NS_OK;
<                                 break;
<                             case ':' :
<                                 return NS_ERROR_FAILURE;//TODO NS_ERROR_URL_PARSING;
<                                 break;
<                             case '@' :
<                                 // This is a special case of user:pass@host... so
<                                 // Cleanout our earliar knowledge of host
<                                 ExtractString(mSpec, &mHost, -1, -1);
<
<                                 ExtractString(mSpec, &mPreHost, 0, (brk-mSpec));
<                                 lastbrk = brk+1;
<                                 brk = PL_strpbrk(lastbrk, ":/");
<                                 if (brk)
<                                 {
<                                     ExtractString(mSpec, &mHost,
< 									    (lastbrk-mSpec), (brk-lastbrk));
<                                     if (*brk == ':') // user:pass@host:port...
<                                     {
<                                         lastbrk = brk+1;
<                                         brk = PL_strchr(lastbrk, '/');
<                                         if (brk)    // user:pass@host:port/path
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                                             ExtractString(mSpec, &mPath,
< 											    (brk-mSpec), len - (brk-mSpec));
<                                             return NS_OK;
<                                         }
<                                         else        // user:pass@host:port
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                     else // (*brk == '/') so user:pass@host/path
<                                     {
<                                         ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
<                                         return NS_OK;
<                                     }
<                                 }
<                                 else // its user:pass@host so everthing else is just the host
<                                 {
<                                     ExtractString(mSpec, &mHost,
< 									    (lastbrk-mSpec), len - (lastbrk-mSpec));
<                                     return NS_OK;
<                                 }
<
<                                 break;
<                             default: NS_POSTCONDITION(0, "This just can't be!");
<                                 break;
<                         }
<                     }
<                     else // Everything else is just the port
<                     {
<                         mPort = ExtractPortFrom(mSpec, lastbrk-mSpec, len - (lastbrk-mSpec));
<                         return NS_OK;
<                     }
<                 }
<                 else // scheme:host...
<                 {
<                     ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
<                     brk = PL_strpbrk(lastbrk, delimiters);
<                     if (brk)
<                     {
<                         switch (*brk)
<                         {
<                             case '/' : // The path, so its scheme:host/path
<                                 ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
<                                 ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
<                                 return NS_OK;
<                                 break;
<                             case '@' : // scheme:user@host...
<                                 ExtractString(mSpec, &mPreHost, (lastbrk-mSpec), (brk-lastbrk));
<                                 // TODO more here...
<                                 break;
<                             case ':' : // scheme:user:pass@host... or scheme:host:port...
<                                 /* TODO
<                                 if you find @ in the remaining string then // scheme:user:pass@host...
<                                 {
<
<
<                                 }
<                                 else // scheme:host:port
<                                 {
<                                     ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
<
<                                 }
<                                 */
<                                 break;
<                             default: NS_POSTCONDITION(0, "This just can't be!");
<                                 break;
<                         }
<                     }
<                     else // its just scheme:host
<                     {
<                         ExtractString(mSpec, &mHost, (lastbrk-mSpec), len - (lastbrk-mSpec));
<                         return NS_OK;
<                     }
<                 }
<             }
<             break;
<         case '@' :
<             //Everything before the @ is the prehost stuff
<             ExtractString(mSpec, &mPreHost, 0, brk-mSpec);
<             lastbrk = brk+1;
<             brk = PL_strpbrk(lastbrk, ":/");
<             if (brk)
<             {
<                 ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
<                 if (*brk == ':') // user@host:port...
<                 {
<                     lastbrk = brk+1;
<                     brk = PL_strchr(lastbrk, '/');
<                     if (brk)    // user@host:port/path
<                     {
<                         mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                         ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
<                         return NS_OK;
<                     }
<                     else        // user@host:port
<                     {
<                         mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                         return NS_OK;
<                     }
<                 }
<                 else // (*brk == '/') so user@host/path
<                 {
<                     ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
<                     return NS_OK;
<                 }
<             }
<             else // its user@host so everything else is just the host
<             {
<                 ExtractString(mSpec, &mHost, (lastbrk-mSpec), (len - (lastbrk-mSpec)));
<                 return NS_OK;
<             }
<             break;
<         default:
<             NS_ASSERTION(0, "This just can't be!");
<             break;
<         }
<     }
<     else // everything is a host
---
>     if (!brk) // everything is a host
495a157
> 		return NS_OK;
496a159,501
> 	switch (*brk)
> 	{
> 	case '/' :
> 	case '?' :
> 		// If the URL starts with a slash then everything is a path
> 		if (brk == mSpec)
> 		{
> 			ExtractString(mSpec, &mPath, 0, len);
> 			return NS_OK;
> 		}
> 		else // The first part is host, so its host/path
> 		{
> 			ExtractString(mSpec, &mHost, 0, (brk - mSpec));
> 			ExtractString(mSpec, &mPath, (brk - mSpec), (len - (brk - mSpec)));
> 			return NS_OK;
> 		}
> 		break;
> 	case ':' :
> 		if (*(brk+1) == '/')
> 		{
> 			ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
>
> 			if (*(brk+2) == '/') // e.g. http://
> 			// If the first colon is followed by // then its definitely a spec
> 			{
> 				lastbrk = brk+3;
> 				brk = PL_strpbrk(lastbrk, delimiters);
> 				if (!brk) // everything else is a host, as in http://host
> 				{
> 					ExtractString(mSpec, &mHost,
> 						(lastbrk - mSpec),
> 						len - (lastbrk - mSpec));
> 					return NS_OK;
> 				}
> 				switch (*brk)
> 				{
> 					case '/' : // standard case- http://host/path
> 					case '?' : // missing path cases
> 						ExtractString(mSpec, &mHost,
> 							(lastbrk - mSpec), (brk - lastbrk));
> 						ExtractString(mSpec, &mPath,
> 							(brk - mSpec), (len - (brk - mSpec)));
> 						return NS_OK;
> 						break;
> 					case ':' : // http://user:... or http://host:...
> 					{
> // It could be http://user:pass@host/path
> // or http://host:port/path we find that by checking further...
> char* nextbrk = PL_strpbrk(brk+1, delimiters);
> if (!nextbrk) // http://host:port
> {
> 	ExtractString(mSpec, &mHost,
> 		(lastbrk-mSpec), (brk-lastbrk));
> 	mPort = ExtractPortFrom(mSpec,
> 		(lastbrk-mSpec), len - (lastbrk-mSpec));
> 	return NS_OK;
> }
> switch (*nextbrk)
> {
> 	case '/': // http://host:port/path
> 	case '?': // http://host:port?path
> 		ExtractString(mSpec, &mHost,
> 			(lastbrk-mSpec), (brk-lastbrk));
> 		mPort = ExtractPortFrom(mSpec, (brk-mSpec+1),(nextbrk-brk-1));
> 		ExtractString(mSpec, &mPath,
> 				(nextbrk-mSpec), len - (nextbrk-mSpec));
> 		return NS_OK;
> 		break;
> 	case '@': // http://user:pass@host...
> 		ExtractString(mSpec, &mPreHost,
> 			(lastbrk - mSpec), (nextbrk - lastbrk));
> 		brk = PL_strpbrk(nextbrk+1, delimiters);
> 		if (!brk) // its just http://user:pass@host
> 		{
> 			ExtractString(mSpec, &mHost,
> 				(nextbrk+1 - mSpec),
> 				len - (nextbrk+1 - mSpec));
> 			return NS_OK;
> 		}
>
> 		ExtractString(mSpec, &mHost,
> 			(nextbrk+1 - mSpec), brk - (nextbrk+1));
>
> 		switch (*brk)
> 		{
> 		case '/': // http://user:pass@host/path
> 		case '?':
> 			ExtractString(mSpec, &mPath,
> 				(nextbrk+1 - mSpec),
> 				len - (nextbrk+1 - mSpec));
> 			return NS_OK;
> 			break;
> 		case ':': // http://user:pass@host:port...
> 			lastbrk = brk;
> 			brk = PL_strpbrk(lastbrk+1, "/?");
> 			if (brk)    // http://user:pass@host:port/path
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
> 				ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
> 				return NS_OK;
> 			}
> 			else        // http://user:pass@host:port
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),
> 					len - (lastbrk-mSpec));
> 				return NS_OK;
> 			}
> 			break;
> 		default: NS_POSTCONDITION(0, "This just can't be!");
> 			break;
> 		}
> 		break;
> 	case ':': // three colons!
> 		return NS_ERROR_MALFORMED_URI;
> 		break;
> 	default: NS_POSTCONDITION(0, "This just can't be!");
> 		break;
> }
> 						}
> 						break;
> 					case '@' : // http://user@host...
> 						{
> 							ExtractString(mSpec, &mPreHost,
> 								(lastbrk-mSpec), (brk-lastbrk));
> 							lastbrk = brk+1;
> 							brk = PL_strpbrk(lastbrk, delimiters);
> 							if (!brk) // its just http://user@host
> 							{
> 								ExtractString(mSpec, &mHost,
> 									(lastbrk+1 - mSpec),
> 									len - (lastbrk+1 - mSpec));
> 								return NS_OK;
> 							}
> 							ExtractString(mSpec, &mHost,
> 								(lastbrk-mSpec), (brk - lastbrk));
> 							switch (*brk)
> 							{
> 								case ':' : // http://user@host:port...
> 									lastbrk = brk+1;
> 									brk = PL_strpbrk(lastbrk, "/?");
> 									if (brk)    // http://user@host:port/path
> 									{
> 										mPort = ExtractPortFrom(mSpec,
> 											(lastbrk-mSpec),(brk-lastbrk));
> 										ExtractString(mSpec, &mPath,
> 											(brk-mSpec),
> 											len - (brk-mSpec));
> 										return NS_OK;
> 									}
> 									else        // http://user@host:port
> 									{
> 										mPort = ExtractPortFrom(mSpec,
> 											(lastbrk-mSpec),
> 											len - (lastbrk-mSpec));
> 										return NS_OK;
> 									}
> 									break;
> 								case '/' : // http://user@host/path
> 								case '?' : // http://user@host?path
> 									ExtractString(mSpec, &mPath,
> 										(brk - mSpec),
> 										len - (brk - mSpec));
> 									return NS_OK;
> 									break;
> 								case '@' :
> 									return NS_ERROR_MALFORMED_URI;
> 								default : NS_POSTCONDITION(0,
> 									"This just can't be!");
> 									break;
> 							}
> 						}
> 						break;
> 					default: NS_POSTCONDITION(0, "This just can't be!");
> 						break;
> 				}
> 			}
> 			else // This is a no // path alone case like file:/path,
> 				// there is never a prehost/host in this case.
> 			{
> 				ExtractString(mSpec, &mPath, (brk-mSpec+1),
> 					len - (brk-mSpec+1));
> 				return NS_OK;
> 			}
> 		}
> 		else // scheme:host or host:port...
> 		{
> 			lastbrk = brk+1;
>
> 			if ((*lastbrk >= '0') && (*lastbrk <= '9')) //host:port...
> 			{
> 				ExtractString(mSpec, &mHost, 0, (brk - mSpec));
> 				brk = PL_strpbrk(lastbrk, delimiters);
> 				if (!brk) // Everything else is just the port
> 				{
> 					mPort = ExtractPortFrom(mSpec, lastbrk-mSpec,
> 						len - (lastbrk-mSpec));
> 					return NS_OK;
> 				}
> 				switch (*brk)
> 				{
> 					case '/' : // The path, so its host:port/path
> 					case '?' : // The path, so its host:port?path
> 						mPort = ExtractPortFrom(mSpec, lastbrk-mSpec,
> 							brk-lastbrk);
> 						ExtractString(mSpec, &mPath, brk- mSpec,
> 							len - (brk-mSpec));
> 						return NS_OK;
> 						break;
> 					case ':' :
> 						return NS_ERROR_MALFORMED_URI;
> 						break;
> 					case '@' :
> 						// This is a special case of user:pass@host... so
> 						// Cleanout our earliar knowledge of host
> 						ExtractString(mSpec, &mHost, -1, -1);
>
> 						ExtractString(mSpec, &mPreHost, 0, (brk-mSpec));
> 						lastbrk = brk+1;
> 						brk = PL_strpbrk(lastbrk, ":/");
> 					// its user:pass@host so everthing else is just the host
> 						if (!brk)
> 						{
> 							ExtractString(mSpec, &mHost,
> 								(lastbrk-mSpec), len - (lastbrk-mSpec));
> 							return NS_OK;
> 						}
> 						ExtractString(mSpec, &mHost,
> 							(lastbrk-mSpec), (brk-lastbrk));
> 						if (*brk == ':') // user:pass@host:port...
> 						{
> 							lastbrk = brk+1;
> 							brk = PL_strpbrk(lastbrk, "/?");
> 							if (brk)    // user:pass@host:port/path
> 							{
> 								mPort = ExtractPortFrom(mSpec,
> 									(lastbrk-mSpec),(brk-lastbrk));
> 								ExtractString(mSpec, &mPath,
> 									(brk-mSpec), len - (brk-mSpec));
> 								return NS_OK;
> 							}
> 							else        // user:pass@host:port
> 							{
> 								mPort = ExtractPortFrom(mSpec,
> 									(lastbrk-mSpec),len - (lastbrk-mSpec));
> 								return NS_OK;
> 							}
> 						}
> 						else // (*brk == '/') so user:pass@host/path
> 						{
> 							ExtractString(mSpec, &mPath, (brk - mSpec),
> 								len - (brk - mSpec));
> 							return NS_OK;
> 						}
> 						break;
> 					default: NS_POSTCONDITION(0, "This just can't be!");
> 						break;
> 				}
> 			}
> 			else // scheme:host...
> 			{
> 				ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
> 				brk = PL_strpbrk(lastbrk, delimiters);
> 				if (!brk) // its just scheme:host
> 				{
> 					ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 						len - (lastbrk-mSpec));
> 					return NS_OK;
> 				}
> 				switch (*brk)
> 				{
> 					case '/' : // The path, so its scheme:host/path
> 					case '?' : // The path, so its scheme:host?path
> 						ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 							(brk-lastbrk));
> 						ExtractString(mSpec, &mPath, (brk - mSpec),
> 							len - (brk - mSpec));
> 						return NS_OK;
> 						break;
> 					case '@' : // scheme:user@host...
> 						ExtractString(mSpec, &mPreHost, (lastbrk-mSpec),
> 							(brk-lastbrk));
> 						// TODO more here...
> 						break;
> 					case ':' : // scheme:user:pass@host...or scheme:host:port...
> 						/* TODO
> 						if you find @ in the remaining string
> 						then // scheme:user:pass@host...
> 						{
>
>
> 						}
> 						else // scheme:host:port
> 						{
> 							ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 								(brk-lastbrk));
> 						}
> 						*/
> 						break;
> 					default: NS_POSTCONDITION(0, "This just can't be!");
> 						break;
> 				}
> 			}
> 		}
> 		break;
> 	case '@' :
> 		//Everything before the @ is the prehost stuff
> 		ExtractString(mSpec, &mPreHost, 0, brk-mSpec);
> 		lastbrk = brk+1;
> 		brk = PL_strpbrk(lastbrk, ":/");
> 		if (!brk) // its user@host so everything else is just the host
> 		{
> 			ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 				(len - (lastbrk-mSpec)));
> 			return NS_OK;
> 		}
> 		ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
> 		if (*brk == ':') // user@host:port...
> 		{
> 			lastbrk = brk+1;
> 			brk = PL_strpbrk(lastbrk, "/?");
> 			if (brk)    // user@host:port/path
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
> 				ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
> 				return NS_OK;
> 			}
> 			else        // user@host:port
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),
> 					len - (lastbrk-mSpec));
> 				return NS_OK;
> 			}
> 		}
> 		else // (*brk == '/') so user@host/path
> 		{
> 			ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
> 			return NS_OK;
> 		}
> 		break;
> 	default:
> 		NS_ASSERTION(0, "This just can't be!");
> 		break;
> 	}
578,580c583
<     {
<         return NS_ERROR_OUT_OF_MEMORY;
<     }
---
>         return returnValue; // ERROR!
620,626c623
< 	// TODO- Fix this. Hack to create tmp only becuz nsString can't
< 	// give us a PR_Malloc (nsCRT/nsAllocator) string
< 	char* tmp = dir.ToNewCString();
< 	if (!tmp)
< 		return NS_ERROR_OUT_OF_MEMORY;
<     mDirectory = nsCRT::strdup(tmp);
< 	delete[] tmp;
---
>     mDirectory = dir.ToNewCString();
677d673
<     nsresult status = NS_ERROR_FAILURE;
782,783c778,782
<     NS_ASSERTION(file, "This can't be! ParsePath called without a /Path");
<     if (!file) return NS_OK;
---
>     if (!file)
> 	{
> 		// Treat the whole mPath as file -- this could still have ?, # etc.
> 		file = mPath;
> 	}
788a788,790
> 	else
> 		DupString(&mDirectory, "/");
>
795,819c797
<     if (brk)
<     {
<         ExtractString(file, &mFileName, 1 /* skip the leading / */, (brk-file-1));
<         //Keep pulling out other pieces...
<         while (brk)
<         {
<             char* lastbrk = brk;
<             brk = PL_strpbrk(lastbrk+1, delimiters);
<             switch (*lastbrk)
<             {
<                 case ';' : /*
<                            ExtractString(lastbrk, &mParam, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
<                            */
<                     break;
<                 case '?' : ExtractString(lastbrk, &mQuery, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
<                     break;
<                 case '#' : ExtractString(lastbrk, &mRef, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
<                     break;
<                 default:
<                     NS_ASSERTION(0, "This just can't be!");
<                     break;
<             }
<         }
<     }
<     else // Everything in the file is just the filename
---
>     if (!brk) // Everything in the file is just the filename
822a801,821
> 	ExtractString(file, &mFileName, 1 /* skip the leading / */, (brk-file-1));
> 	//Keep pulling out other pieces...
> 	while (brk)
> 	{
> 		char* lastbrk = brk;
> 		brk = PL_strpbrk(lastbrk+1, delimiters);
> 		switch (*lastbrk)
> 		{
> 			case ';' : /*
> 					   ExtractString(lastbrk, &mParam, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
> 					   */
> 				break;
> 			case '?' : ExtractString(lastbrk, &mQuery, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
> 				break;
> 			case '#' : ExtractString(lastbrk, &mRef, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
> 				break;
> 			default:
> 				NS_ASSERTION(0, "This just can't be!");
> 				break;
> 		}
> 	}
912,915c911
< 	// TODO fix when nsString changes
< 	char* tempDirFile = temp.ToNewCString();
< 	*o_DirFile = nsCRT::strdup(tempDirFile);
< 	delete[] tempDirFile;
---
> 	*o_DirFile = temp.ToNewCString();
1999-07-27 07:40:38 +00:00
gagan%netscape.com 00df4e6ed7 Necko only. Added a missing trailing newline. 1999-07-26 22:44:22 +00:00
ducarroz%netscape.com b8911a5e87 First Checked In. 1999-07-24 20:50:35 +00:00
gordon%netscape.com 670c22014f File Removed. 1999-07-23 19:39:04 +00:00
valeski%netscape.com e8723c09e8 necko only - added temporary user agent string creation code 1999-07-23 16:35:53 +00:00
valeski%netscape.com 1c6f1bb68a necko only - fixed some miss-matched memory deallocations, and pulled an extraneous addref/release combo 1999-07-23 16:35:13 +00:00
mscott%netscape.com d55d3c558c export nsIStreamConverter2.idl 1999-07-23 05:50:32 +00:00
mscott%netscape.com 5fdc858a17 generate header file for nsIStreamConverter2.idl 1999-07-23 05:49:07 +00:00
mscott%netscape.com c3e2512a51 this used to be mailnews\mime\public\nsIStreamConverter.idl but it needs to be moved out of mailnews as it is generic
and not specific to mailnews. The final resting place for this file will be netwerk\streamcnvts\public but that
directory isn't buildable yet so I'm moving it here for safe keeping. The name (the 2 part) is lame but it conflicted
with a file Jud is addding to streamconv (nsIStreamConverter). Don't worry..eventually the two interfaces
are going to be merged into one.
1999-07-23 05:48:27 +00:00
gagan%netscape.com 8bb993616b Replaced nsStandardUrl with nsStdURL. 1999-07-22 21:19:15 +00:00
gagan%netscape.com 4a65c95965 Changes for the standard URL parsing. Added SetRelativePath. Cleaned up the deletions (all thru nsCRT now) Added functionality for Query and Ref portions of the Path. Added DirFile function to nsIURL to allow just Directory and the Filename. Misc. cleanups as well. 1999-07-22 21:14:51 +00:00
valeski%netscape.com 829cfe29f6 added notification progids 1999-07-20 21:54:40 +00:00
warren%netscape.com b42c5297ac Fixed query/ref problem. 1999-07-20 08:46:35 +00:00
warren%netscape.com 7bcb94a320 Changed around load group insertion/removal to happen on mozilla thread. 1999-07-20 08:46:33 +00:00
warren%netscape.com f64274c766 Backed out Gagan's nsStdURL changes. 1999-07-17 01:32:48 +00:00
jdunn%netscape.com 4928643ce2 include nsILoadGroup.h before it is referenced by nsCOMPtr 1999-07-16 22:20:24 +00:00
jdunn%netscape.com e2cc3dc8aa declare nsINetModRegEntry public (it is assumed private if not specified) 1999-07-16 22:19:38 +00:00
warren%netscape.com c5684bf4d7 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 5e043ea485 Removed obsolete files. 1999-07-16 02:33:44 +00:00
gagan%netscape.com 74b2f0b0b2 Switching to nsStdURL from nsStandardUrl. 1999-07-16 02:32:47 +00:00
warren%netscape.com 8829be55c0 Removed. Replaced with file: protocol stuff. 1999-07-15 17:45:08 +00:00
rpotts%netscape.com ad6fedced2 random changes... NECOK only 1999-07-13 20:43:49 +00:00
rpotts%netscape.com 5729a65b6e Added support for GetQuery(). NECKO only. 1999-07-13 20:43:22 +00:00
waterson%netscape.com 2b04d1a190 Fix necko build bustage. NECKO BUILD ONLY. 1999-07-13 00:15:56 +00:00
mscott%netscape.com 439e11dc40 Fix linux build by using the get() method on a nsCOMPtr to extract the raw ptr before comparing it to another
raw ptr. Also changed the variable name: lock to remove linux warnings.
(NOt part of the build! Necko only)
1999-07-12 18:33:33 +00:00
mscott%netscape.com 01da697bf0 Fix linux warning..remove comma at the end of the enum. 1999-07-12 18:32:18 +00:00
rpotts%netscape.com 1847264191 Changes for sync streams with the socket transport... Added an OnWrite(...) method to nsIBufferObserver... 1999-07-12 06:20:46 +00:00
warren%netscape.com 2456eb613d Reverted to nsStandardUrl which works. 1999-07-10 18:24:02 +00:00
warren%netscape.com 1f33a9ea23 Fixing gagan's bustage. 1999-07-10 17:33:06 +00:00
warren%netscape.com 7c731d4888 Upped socket buffer size to avoid buffer full problems. 1999-07-10 11:26:49 +00:00
warren%netscape.com 053aaa1a37 Replaced AddChannel with AsyncRead,AsyncWrite. Removed RemoveChannel. 1999-07-10 11:26:47 +00:00
warren%netscape.com 0879a196b3 Fixed scheme parsing code. Added outer param to NewLoadGroup. 1999-07-10 11:26:43 +00:00
gagan%netscape.com c9e9030668 Thou shalt parse thy URLs... again. 1999-07-10 05:00:23 +00:00
warren%netscape.com 0cd57746e8 Necko stuff for dealing with load groups when opening URLs. 1999-07-09 21:18:47 +00:00
gagan%netscape.com ec7ef50420 Fixed a warning for virtual destructor. 1999-07-09 09:35:30 +00:00
valeski%netscape.com b9117fe2a7 not in main build - nsFileTransport now implements nsIBufferObserver and it's thread waits and notifies when the underlying buffer fills up (for async i/o). 1999-07-09 01:38:40 +00:00
valeski%netscape.com 7bc13426f4 not in main build - backed out transport files from windows build 1999-07-08 17:17:48 +00:00
valeski%netscape.com 3e26d1f123 not in main build - updated nsFileTransport stuff to use new apis 1999-07-08 17:16:47 +00:00
warren%netscape.com 9efa754f74 Added channel argument to nsIStreamObserver/nsIStreamListener/nsIProgressEventSink methods. 1999-07-07 08:08:40 +00:00
gordon%netscape.com 82257cfce9 File Removed. 1999-07-07 00:23:06 +00:00
warren%netscape.com 6ba186da0c Fix for about:blank to work -- not destroy the listener prematurely in the OnStopRequest method. 1999-07-03 20:27:27 +00:00
warren%netscape.com fe7d57f21a Fixed case where spec given to MakeAbsolute is null. 1999-07-03 07:11:07 +00:00
warren%netscape.com 77c9791de1 Added. 1999-07-03 04:45:49 +00:00
warren%netscape.com 604b91233e Implemented about:blank. 1999-07-03 04:05:14 +00:00
dveditz%netscape.com 4c4f269dd4 nakefile cleanups 1999-07-02 13:42:17 +00:00
warren%netscape.com 86e936c304 Fixed QI bug. 1999-07-02 04:57:45 +00:00
warren%netscape.com 527b2a45c6 Fixed initialization problems. 1999-07-02 04:56:53 +00:00
warren%netscape.com 5559bc36d5 Fixed refcounting bug. 1999-07-02 04:55:52 +00:00
valeski%netscape.com 149969c2e4 necko bustage 1999-07-01 21:02:53 +00:00
warren%netscape.com 8462929dda 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
gordon%netscape.com 39ac6ae9a2 Added nsIHeader.h, nsIProxy.h, nsISocketTransportService.h to list of headers to export. 1999-07-01 19:12:07 +00:00
warren%netscape.com 54bd764acd Added simple URI to parse about:foo, javascript:bar, etc. 1999-07-01 07:52:52 +00:00
valeski%netscape.com a754d778e7 change all GetIID() calls to nsCOMTypeInfo<foo>::GetIID() calls 1999-06-30 20:20:17 +00:00
valeski%netscape.com a8b4609040 changed our nsISupports::GetIID() calls over to nsCOMTypeInfo<foo>::GetIID(). 1999-06-30 20:00:19 +00:00
rpotts%netscape.com b6d1f7d250 Got rid of the IEventQueue instance variable... 1999-06-30 08:15:40 +00:00
rpotts%netscape.com 456644cad0 Fixed up socket transport to abort the operation if the consumer OnDataAvailable(...) returns a failure... 1999-06-29 23:28:19 +00:00
valeski%netscape.com 4eaa64d3c1 various fixes. Big one was that we're no longer passing the uri in as the context to nsAsyncStreamObserver, it's now the channel. 1999-06-29 21:53:45 +00:00
rpotts%netscape.com 8595686c4d Applied patches provided by Tim Rowley - tor@boojum.cs.brown.edu. To fix build problems with the SUNWspro compilers. Thanks Tim!! 1999-06-29 07:23:00 +00:00
rpotts%netscape.com 56aeb8f181 Applied patches provided by Tim Rowley - tor@boojum.cs.brown.edu. To fix build problems with the SUNWspro compilers. Thanks Tim!! 1999-06-29 06:58:06 +00:00
valeski%netscape.com 65011fa313 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 1d781378f8 Add undef for SetPort too. 1999-06-28 23:11:55 +00:00
mscott%netscape.com aad910c48a nsIStreamListener::OnDataAvailable now takes a nsIInputStream instead of a nsIBufferInputStream. 1999-06-28 20:37:10 +00:00
bruce%cybersight.com f23b43cc61 Fixes for builds in an objdir. Use $(topsrcdir) and not $(DEPTH) for calculating path to rules.mk 1999-06-27 05:47:04 +00:00
mcafee%netscape.com 410e40c20b Adding BeOS case. 1999-06-26 06:39:43 +00:00
valeski%netscape.com a541b3d8f7 these are now in the public dir. 1999-06-26 03:13:39 +00:00
gordon%netscape.com cb77bebe14 First Checked In. 1999-06-26 01:14:51 +00:00
warren%netscape.com e91b7028b0 Added strdups to string accessors. 1999-06-25 17:59:58 +00:00
warren%netscape.com c69701142b Added #undef GetPort for Windows. 1999-06-25 17:59:34 +00:00
andreas.otte%primus-online.de d6c2c55929 adding nsILoadGroup.idl 1999-06-25 17:41:38 +00:00
warren%netscape.com 9ac7aaff06 Fixed makefiles for necko module, but netwerk directory. 1999-06-25 03:00:32 +00:00
warren%netscape.com c9b3f8540a Changed our library names from netwerk to necko. 1999-06-24 23:13:46 +00:00
warren%netscape.com cbef31b2d1 Added nsILoadGroup. Changed load attribute strategy to flags. 1999-06-24 22:58:42 +00:00
warren%netscape.com 806192fcc1 Added stuff needed for landing -- LoadQuiet, BypassCache, BypassProxy 1999-06-22 00:19:58 +00:00
warren%netscape.com f717920ea4 Fixed for recent buffer changes. 1999-06-19 22:26:08 +00:00
rpotts%netscape.com 55d83f5fde The write count passed to AsyncWrite(...) is now honored... Fixed things up so the InputStream passed to AsyncWrite does not *have* to really be a nsIBufferedInputStream... 1999-06-19 10:00:42 +00:00
rpotts%netscape.com 3c53457ef9 Removing nsSocketTransportStreams.h.cpp 1999-06-19 06:17:33 +00:00
rpotts%netscape.com 08ac12e5b4 got rid of nsSocketTransportStreams... Using the nsIBuffer notification interfaces instead... 1999-06-19 05:49:04 +00:00
warren%netscape.com d07a25fe1e replaced by nsIOService 1999-06-17 21:42:42 +00:00
warren%netscape.com 70fff6a7f7 Made MakeAbsolute just return the input URI if it's already absolute. 1999-06-17 21:41:26 +00:00
andreas.otte%primus-online.de f3d98ac1d5 adding hack to change PUBLIC variable
This has no effect until some other changes to SeaMonkey
1999-06-17 19:07:58 +00:00
warren%netscape.com 96470845f8 Fixed refcount problem in Clone. 1999-06-17 10:11:58 +00:00
warren%netscape.com 319685b5cf Added QI for nsIURL 1999-06-17 09:23:05 +00:00
warren%netscape.com 72ffe43549 Added NewChannelFromNativePath for convenience. 1999-06-16 04:15:22 +00:00
gagan%netscape.com 9a6a3c5bf2 Removed the temporary Open call on nsIChannel. Inspite of the misnomer, the AsyncRead is the one to use. 1999-06-16 00:49:01 +00:00
warren%netscape.com 34ec459271 Removed file transport, now consolidated with file channel. Various buffer(stream) cleanup. 1999-06-15 05:18:40 +00:00
gagan%netscape.com 625a8843c3 Added nsIChannel::Open temporarily to get the test working. There is a problem with the nsIBuffer search routine (see news://npm.netlib) which causes an assertion since refcnt gets reset after a Read following a Search on nsIBuffer. 1999-06-15 04:30:34 +00:00
rpotts%netscape.com 7858bab24b Added FillStream(...) which exposes nsIBuffer::WriteSegments() 1999-06-12 08:56:05 +00:00
rpotts%netscape.com 3e1045dd9d Changed doRead() to fill the stream using the IBuffer::WriteSegments api rather than Fill()... This removes an intermediate buffer copy and cleans up the code... 1999-06-12 08:54:56 +00:00
warren%netscape.com 8f6729f704 Removed link dependency on netwerk.dll. 1999-06-12 08:07:05 +00:00
warren%netscape.com 81d81d1985 Added NS_NET to export global functions. 1999-06-12 07:14:12 +00:00
warren%netscape.com a58bb71f17 Added dns to the build. Factored Cancel/Suspend/Resume into nsIRequest. 1999-06-12 02:53:21 +00:00
warren%netscape.com c9aa4c7da2 Rule to create netwerk/dist/include. 1999-06-12 01:47:13 +00:00
warren%netscape.com 3283484dd3 Hack to make necko co-exist with seamonkey so headers don't collide. 1999-06-12 01:41:08 +00:00
valeski%netscape.com d8fadf5600 some const build problems are now fixed 1999-06-11 18:48:10 +00:00
andreas.otte%primus-online.de 254f0311f3 conversion to wstring / PRUnichar
some cosmetics to various Makefiles
1999-06-11 15:50:14 +00:00
rpotts%netscape.com a16cd085d8 Fixed a memory corruption where a buffer was allocated with new[] but freed with PL_strfree()... 1999-06-11 09:17:11 +00:00
rpotts%netscape.com 389952f926 Changes to get transport streams working with the new BufferInputStream implementations... 1999-06-11 08:35:26 +00:00
rpotts%netscape.com 0eea1a2116 Fixed deadlock if another thread holds the transport lock when Process is called... 1999-06-11 08:34:21 +00:00
rpotts%netscape.com c9e0b21514 moved the test for being suspended inside of the main Process() loop since doRead() can suspend the transport... Also call nsSocketTransportStream::GetWriteAmount() to determine how much data can be written to the stream... 1999-06-11 08:28:22 +00:00
warren%netscape.com a3d5c985ee Added range offsets to open stream methods. 1999-06-11 01:37:43 +00:00
valeski%netscape.com 10a8c17dfd making the nsNetModuleMgr a singleton 1999-06-10 22:26:37 +00:00
valeski%netscape.com cf91f941bf added some comments and thread safety fixes 1999-06-10 21:57:47 +00:00
valeski%netscape.com 24480c627e I was continuing through a loop when I wasn't supposed to be 1999-06-10 15:13:37 +00:00
andreas.otte%primus-online.de 7a6696a692 some cosmetics 1999-06-09 20:41:58 +00:00
andreas.otte%primus-online.de 90d920cace remove export of header files
some cosmetics
1999-06-09 20:40:59 +00:00
andreas.otte%primus-online.de 9ad679bbac adding XPIDL_MODUL
some cosmetics
1999-06-09 20:37:42 +00:00
valeski%netscape.com 4c99b9f13d added thread safety back in 1999-06-09 17:12:34 +00:00
andreas.otte%primus-online.de b78313a76b nsNetModuleMgr.h has to be exported to be used by nsNetFactory 1999-06-09 14:52:28 +00:00
valeski%netscape.com 6e930fa919 moved up into public dir 1999-06-09 14:33:46 +00:00
valeski%netscape.com 23d909ccb1 added nsNetModuleMgr.h to the src dir and added the Create method to the modMgr impl so it can be in the factory 1999-06-09 14:30:20 +00:00
valeski%netscape.com 4bc78f0560 removed nsNetModuleMgr.h from the expport list. it now lives where it should in base/src 1999-06-09 14:28:54 +00:00
valeski%netscape.com 283e58b7d1 moved over to base/src 1999-06-09 14:21:00 +00:00
valeski%netscape.com c0fea94410 no longer needed 1999-06-09 14:20:17 +00:00
valeski%netscape.com 587a190336 api changes 1999-06-09 14:00:50 +00:00
valeski%netscape.com c4e25afa4a compile issues 1999-06-09 14:00:05 +00:00
valeski%netscape.com f855c5deda interface changes 1999-06-09 13:58:51 +00:00
valeski%netscape.com 04ea7d2c94 moved to base/src 1999-06-09 13:56:12 +00:00
valeski%netscape.com d085ffbc1b added external module files to unix builds 1999-06-09 01:01:59 +00:00
valeski%netscape.com cc279297e9 added idl srcs to unix mkfile 1999-06-09 01:01:17 +00:00
valeski%netscape.com cd93925628 removing this as it's been depricated to public dir 1999-06-08 23:14:08 +00:00
warren%netscape.com aaf94a8b04 Moved WriteFrom to nsIBufferOutputStream. Made necko pass around buffer streams. 1999-06-08 20:57:32 +00:00
valeski%netscape.com 21f186610d added nsNetModuleMgr.cpp to the necko library. also made various changes to modEntry and modMgr implementations. 1999-06-08 20:12:53 +00:00
valeski%netscape.com 4d204342a4 added moduelMgr and ModRegEntry idls to the idl list. also updated the nsINetModuleMgr.idl interface 1999-06-08 20:11:53 +00:00
valeski%netscape.com d82cd20a59 we were freeing a static buf 1999-06-08 20:09:43 +00:00
valeski%netscape.com f36dbf5c74 adding the module registery entry idl file 1999-06-08 20:03:48 +00:00
valeski%netscape.com f73a71d18e adding the module mgr header and the entry header 1999-06-08 20:02:53 +00:00
warren%netscape.com ace5fc3a69 Added back in user agent stuff. 1999-06-08 19:04:13 +00:00
warren%netscape.com fb512f23ea Added NewChannel method. 1999-06-08 18:28:10 +00:00
valeski%netscape.com 42635707e3 added root notification idl 1999-06-08 17:07:39 +00:00
valeski%netscape.com a53ebf6bcd added nsINetNotify.idl to idl list 1999-06-08 17:07:09 +00:00
andreas.otte%primus-online.de 0d99370e0c some cleanup after IDLisation 1999-06-08 09:44:04 +00:00
warren%netscape.com 29acb92d6c obsoleting files 1999-06-07 22:19:20 +00:00
warren%netscape.com 5fbea51f35 Removed nsITransport. 1999-06-07 22:12:19 +00:00
warren%netscape.com ee30272739 Updated for file name changes. 1999-06-07 22:04:19 +00:00
warren%netscape.com c0a3d1a7a3 New IDL interfaces. 1999-06-07 21:33:30 +00:00
rpotts%netscape.com f7b98ad678 Fixed up compiler warning on Linux... 1999-06-07 06:30:59 +00:00
rpotts%netscape.com 6aa2397821 Added a new file - nsSocketTransportStreams.cpp to the build... 1999-06-07 06:28:07 +00:00
rpotts%netscape.com 47f13300d6 Work on blocking streams... 1999-06-07 06:27:34 +00:00
gagan%netscape.com 7809652963 Fixed the stream length to be zero. Thanks Andreas. 1999-06-04 11:10:31 +00:00
rpotts%netscape.com 25b6f04fd6 Added NSPR logging messages... 1999-06-04 08:52:02 +00:00
gagan%netscape.com 5669090019 Getting base building again. Fixed the changes from nsIOutputStream's Write function. 1999-06-04 07:25:16 +00:00
valeski%netscape.com 502b9ca498 added the class id to identify the actual class that implements teh nsINetNotify interface 1999-06-03 20:00:38 +00:00
rpotts%netscape.com c84afbbf05 Added support for Suspend/Resume... 1999-06-03 05:43:56 +00:00
andreas.otte%primus-online.de aecb63e6cf integrating Alec Fletts nsISupportsArray changes 1999-06-02 11:12:21 +00:00
rpotts%netscape.com 303578cd7e PRCList cleanup. More syncronization code... some work toward blocking streams. 1999-06-02 04:26:55 +00:00
valeski%netscape.com ceff890249 variable name change 1999-06-01 22:03:47 +00:00
rpotts%netscape.com 6627c4030e Added synchronization to socket transport APIs... Added access methods for getting the PRCList from a transport... 1999-06-01 21:37:52 +00:00
valeski%netscape.com d940f92c4b Added the user agent string getter methods to nsINetService, as well as the implementation of them. Note: that they current aren't being initialized. 1999-06-01 21:27:25 +00:00
rpotts%netscape.com 2a4ee5e6a4 First pass at supporting simultaneous read and write on sockets... 1999-05-31 05:15:40 +00:00
andreas.otte%primus-online.de 1f5869ce4e make no shared lib and do not install it in $(DIST)/bin 1999-05-28 11:20:30 +00:00
andreas.otte%primus-online.de dfb9c17c3f First Checked In 1999-05-28 09:11:38 +00:00
valeski%netscape.com 87115605e4 module mananger implementation files 1999-05-27 21:30:31 +00:00
valeski%netscape.com a8f3df5774 idl: added the idl dir and some initial files.
added module manager headers and idl files
1999-05-27 21:29:52 +00:00
valeski%netscape.com 4380e2aacc removed these two because they've been added to the proper idl directory 1999-05-27 21:13:34 +00:00
valeski%netscape.com 7ee4dbe328 removed #include "nsXPComCIID.h" as it is no longer pertinent 1999-05-26 20:51:19 +00:00
valeski%netscape.com 3d007be727 the base class for necko events to be used with the nsINetModuleMgr api 1999-05-25 17:29:04 +00:00
valeski%netscape.com a80c54fc2a added revised comment 1999-05-25 17:27:01 +00:00
valeski%netscape.com cf354616e6 added context arguments and a set headers method. 1999-05-24 22:06:12 +00:00
valeski%netscape.com bf905c0e86 the notify api and the external module interface now use the nsIObserver stuff 1999-05-24 20:40:21 +00:00
valeski%netscape.com 97e735dffa First whack at various external module apis. 1999-05-24 19:50:39 +00:00
valeski%netscape.com ef4434f41a wrong parameters were being passed into the handler's NewUrl() call 1999-05-24 19:33:52 +00:00
warren%netscape.com b3c3a30965 Moving changes from XPCOM20_BRANCH forward. 1999-05-24 09:01:47 +00:00
gagan%netscape.com 6dcf68157c Made the baseURL a default to null. 1999-05-22 00:21:08 +00:00
gagan%netscape.com 9aecaa4e48 Added files for the HTTP Handler. 1999-05-21 07:14:19 +00:00
gagan%netscape.com 84d96d8dd7 Miscellaneous fixes. 1999-05-21 06:30:21 +00:00
valeski%netscape.com bf249b5bcf changed us over to teh correct EventQueueServiceCID 1999-05-18 20:53:38 +00:00
hshaw%netscape.com af359b790a Add new methods for nsICollection 1999-05-13 22:14:43 +00:00
hshaw%netscape.com 92a83150ea Propagate IDL changes from nsICollection.h, we'll need to do the same to nsIConnectionGroup->Count() once we IDLize 1999-05-13 21:57:07 +00:00
valeski%netscape.com 8b921d1d99 defined implicit ranges for error codes. 1999-05-09 19:25:20 +00:00
valeski%netscape.com 92dd0930f2 Added correct error codes and misc touch up. 1999-05-09 19:24:37 +00:00
valeski%netscape.com 1fb4ea16b1 removed nsSycnOutStreamListener references. No longer using it. 1999-05-06 19:49:23 +00:00
valeski%netscape.com 943c469643 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 142c08df8e changed us over to regular monitors (prmon.h) in lieu of cached monitors (prcmon.h) for performance increase. cached monitors can be 5 times slower than regular monitors. 1999-05-04 19:33:37 +00:00
valeski%netscape.com d8031d05e3 changed non-existant xp_win to win32 1999-05-04 18:53:44 +00:00
hshaw%netscape.com f05420e8cb wrap #include <windows.h> with #ifdef XP_WIN (for unix builds) 1999-05-04 00:31:40 +00:00
hshaw%netscape.com 7a23c3e932 remove duplicate nsISocketTransportService.h reference 1999-05-03 23:53:18 +00:00
warren%netscape.com 9004942e9d Changed include for nsStandardUrl.h 1999-05-02 08:46:08 +00:00
warren%netscape.com e526773af9 Fixed to use new nsIBuffer and related buffer streams. 1999-05-01 02:15:59 +00:00
warren%netscape.com b71bb5f33c Renamed nsMarshalingStreamListener to nsAsyncStreamListener. 1999-05-01 02:11:10 +00:00
warren%netscape.com ee3f32d177 Renamed nsTypicalUrl to nsStandardUrl. 1999-05-01 02:08:18 +00:00
warren%netscape.com 8a15c4d3b7 Removed some noise. 1999-04-30 22:55:26 +00:00
valeski%netscape.com 1dbe4d3aa1 nsIUrl.h - switched back to single inheritance of nsISupports (removed nsITypicalUrl)
nsUrl.h - switched back to multiple inheritance including nsITypicalUrl
nsFtpConnectionThread.cpp - various initializations.
nsFtpConnectionThread.h - various initialization api changes
nsFtpProtocolConnection.cpp - Switched back to ProtoConn implementing the nsISTreamListener interface + some initialization changes.
nsFtpProtocolConnection.h - inherits nsIStreamListener.
everyone else was just init changes.
1999-04-30 15:28:33 +00:00
valeski%netscape.com 23572be0c9 added NS_NewConnection() implementation 1999-04-28 23:11:41 +00:00
valeski%netscape.com a1e165ccd2 added NS_NewConnection(). The NS_New*() stuff probably should go elsewhere, but for now, here it lands. 1999-04-28 23:11:04 +00:00
valeski%netscape.com 4003e42409 remove #define error macro and #included the netCore.h file which has the error macros in it. 1999-04-28 22:53:17 +00:00
valeski%netscape.com c53ed5cc30 added inclusive #define 1999-04-28 22:51:28 +00:00
valeski%netscape.com 3bbbeadf75 pulled the ftp specific code out 1999-04-28 22:46:28 +00:00
valeski%netscape.com 65d6ba65dd nsIUrl.h = now is a subclass of nsITypicalUrl explicitly
nsUrl.h = nsIUrl change reflected.
nsNetService.cpp = NS_NewUrl() helper routine added
1999-04-28 20:05:23 +00:00
valeski%netscape.com 6ef2ede27b added ftp error codes 1999-04-27 19:55:48 +00:00
warren%netscape.com e9e1dc1c23 Started hooking up socket transport synchronous streams. Added unix makefiles. 1999-04-25 19:25:24 +00:00
valeski%netscape.com c86ff04f8a #included netCore.h so the socket transport can start using more descriptive error codes. 1999-04-23 21:57:10 +00:00
valeski%netscape.com cade3b9429 added netCore.h which currently contains netlib error codes (generated using nsError.h macros) 1999-04-23 21:56:01 +00:00
warren%netscape.com 0bef817947 Added source offset parameter to OnDataAvailable (for byte-range requests). 1999-04-22 08:47:06 +00:00
rpotts%netscape.com a18186876e Added some error checking... 1999-04-20 08:01:31 +00:00
rpotts%netscape.com b52e94573d correctly set the status argument on the OnStopBinding(...) call. 1999-04-20 04:31:52 +00:00
rpotts%netscape.com b4e704cf60 Added an Event Queue argument to the NewConnection(...) call. This fixed up the build bustage... 1999-04-19 07:28:02 +00:00
rpotts%netscape.com 722b00f7fa First pass at a socket transport implementation... 1999-04-19 07:17:37 +00:00
rpotts%netscape.com c76cd1b2dc split up the async stream listener into an async stream observer and async stream listener... 1999-04-19 07:15:03 +00:00
warren%netscape.com bd6811e701 Removed PAC file for now. 1999-04-17 20:54:57 +00:00
warren%netscape.com 9892971727 Started implement file transport writing code. 1999-04-17 20:50:57 +00:00
warren%netscape.com fa42476fae Added event queue argument for connection creation. Started http state machine. 1999-04-16 18:00:17 +00:00
warren%netscape.com 79cd627c41 Fixed up RemoveElement returning bool problem. 1999-04-15 20:11:21 +00:00
warren%netscape.com 58025e26cd Moved read/write methods from TransportService to Transport. 1999-04-14 08:10:50 +00:00
warren%netscape.com ddc3278d38 More for http. 1999-04-14 00:06:07 +00:00
warren%netscape.com 8f99982227 Added synchronous file input. Worked on cancel/suspend/resume work for file transfer. 1999-04-13 18:10:15 +00:00
warren%netscape.com e9faed107d Began fleshing out http protocol. 1999-04-12 22:34:20 +00:00
warren%netscape.com 8930d4895d Fixed up nsIUrl and added an implementation that allows for setting the parts. Added MakeAbsoluteUrl to nsINetService and nsIProtocolHandler. 1999-04-12 20:35:24 +00:00
rpotts%netscape.com ce870726bd fixed typo... This class should implement the nsIFileTransportService interface. 1999-04-09 05:43:30 +00:00
gagan%netscape.com 4a343822aa Temporary checkin. Brought in the original implementations. Will need some cleaning now... 1999-04-09 02:31:48 +00:00
gagan%netscape.com 55953b47c5 Brought in the original work. 1999-04-09 02:26:05 +00:00
gagan%netscape.com ea8df7d855 First checkins of tests. Currently only urltest. 1999-04-09 02:23:05 +00:00
warren%netscape.com b105285634 Replaced nsIProtocolConnection argument with nsISupports generic context. 1999-04-06 06:11:51 +00:00
warren%netscape.com 78b9a7c8b5 Used nsIByteBufferInputStream. Fixed file transport test. 1999-04-06 01:45:24 +00:00
warren%netscape.com a38405da05 Fixed up all the IIDs to be new/unique. Made nsFileTransport work (needs tuned). 1999-04-05 21:05:22 +00:00
warren%netscape.com 6bd564519f Obsoleted nsITransportService 1999-04-02 09:26:42 +00:00
warren%netscape.com 6bb291af66 Added file transport stuff. 1999-04-02 09:25:17 +00:00
warren%netscape.com 03a4d65ce2 Fixed nsUrl link error. 1999-03-31 19:59:43 +00:00
warren%netscape.com d783951913 Initial stab at new networking implementation. 1999-03-31 19:53:46 +00:00