Commit Graph
34 Commits
Author SHA1 Message Date
rpotts@netscape.com 589de8b765 Added support for interrupting streams via the nsINetService::InterruptStream() method. 1998-10-16 22:20:05 +00:00
rpotts@netscape.com 0aa95f36db Create an initial LoadAttributes instance. 1998-10-10 04:57:18 +00:00
rpotts@netscape.com bf8d92e823 Added a load type and reload type to the nsILoadAttribs interface and underlying implementation... 1998-10-10 04:32:18 +00:00
rpotts@netscape.com 7e1e1d5d35 Added an include for <windows.h> to declare the InterlockedIncrement/Decrement APIs which are now used in the Win32 threadsafe ISupports implementation... 1998-10-06 06:17:25 +00:00
rpotts@netscape.com 0544ca1cdf Added nsIURLGroup interface... 1998-10-01 21:36:57 +00:00
pierre@netscape.com a89398095e Raptor only. Display images on Mac. 1998-10-01 19:17:51 +00:00
valeski@netscape.com a85d35bb71 Raptor only. Fix crasher. 1998-09-28 20:47:49 +00:00
rpotts@netscape.com 8f9d181d0a Moved the code to mangle resource: URLs into file: URLs out of the Url::Open(...) method and into the NetServiceManager... 1998-09-21 18:15:26 +00:00
rpotts@netscape.com 5de76d31c6 made URLImpl threadsafe... 1998-09-19 07:03:19 +00:00
kipp@netscape.com 0a3f28627b Fixed deref of unitialized memory bug in URLImpl::Open 1998-09-17 21:32:52 +00:00
valeski@netscape.com 0d0913682d Now nulling out a variable that was causing a crash on url open. 1998-09-17 19:56:30 +00:00
valeski@netscape.com 8794752dd8 ? network/module/nsNetFactory.cpp
Added nsNetFactory implementation. This allows users to retrieve nsINetService pointers from the service factory manager.

M dom/src/base/nsGlobalWindow.cpp
M gfx/src/nsImageNetContextSync.cpp
M layout/html/document/src/nsHTMLDocument.cpp
M network/module/nsURL.cpp
Replaced NS_NewINetService() calls with nsServiceManager::GetService() calls.

M network/module/Makefile
M network/module/makefile.win
Added nsNetFactory.cpp to the builds.

M network/module/nsINetService.h
Added a #define for the class id of the nsNetService.

M network/module/nsIStreamListener.h
Removed the NS_DEFINE_IID of kIStreamListenerIID from the header file. Each module that wants this will need to delcare it themselves.

M network/module/nsNetFile.cpp
Fixed memory leak.

M network/module/nsNetService.cpp
Globalized the gNetlibService variable so the NetFactory can access it.

M webshell/src/nsDocLoader.cpp
M webshell/src/nsPluginViewer.cpp
NS_DEFINE_IID of kIStreamListenerIID

M webshell/tests/viewer/nsSetupRegistry.cpp
Added the netlib library to the list of libraries in the registry and register the nsNetFactory with the appropriate iid and clsids.
1998-09-17 00:55:35 +00:00
valeski@netscape.com fae811a171 ? network/module/nsILoadAttribs.h
New nsIloadAttribs interface that defines the load attributes that are will be associated with a url.

? network/module/nsLoadAttribs.cpp
New nsIloadAttribs interface implementation.

M network/main/mkconect.c
Check for a new local ip address to use. If found PR_Bind() is called to bind the connecting socket to the new address.

M network/main/mkgeturl.c
Added logic to determine whether or not skip the proxy for the given url.
M network/main/mktcp.h
api change. Changed NET_BeginConnect() and NET_FinishConnect() function prototypes.

M network/module/MANIFEST
Added nsILoadAttribs.h to exports list

M network/module/Makefile
Added nsILoadAttribs.h to exports list and nsILoadAttribs.cpp to compile lists.

M network/module/makefile.win
Added nsILoadAttribs.h to exports list and nsILoadAttribs.cpp to compile lists.

M network/module/nsIURL.h
Added accessor methods to the url interface for nsILoadAttribs interface pointer.

M network/module/nsNetService.h
Added urlSetup method to class definition.

M network/module/nsNetService.cpp
Condensed url setup (from nsIURL properties to the actual url struct) into a helper routine. URL struct setup now transfers nsILoadAttributes over into the url struct.

M network/module/nsURL.cpp
Added nsILoadAttribs accessor method implementations to the url implementation.

M network/protocol/ftp/mkftp.c
api change. NET_*Connect().

M network/protocol/gopher/mkgopher.c
api change. NET_*Connect().

M network/protocol/http/mkhttp.c
api change. NET_*Connect().

M network/protocol/imap4/mkimap4.cpp
api change. NET_*Connect().

M network/protocol/nntp/mknews.c
api change. NET_*Connect().

M network/protocol/pop3/mkpop3.c
api change. NET_*Connect().

M network/protocol/smtp/mksmtp.c
api change. NET_*Connect().
1998-09-16 00:35:32 +00:00
pierre@netscape.com 9941dcb6f3 set resourceBase to the magic string "usr/local/netscape/bin/" 1998-09-03 06:19:13 +00:00
thom@netscape.com 65bfb8aa7a fixed heap corruption in mac version of the function mangleResourceIntoFileURL. This change ONLY effects macs 1998-08-28 01:33:14 +00:00
rpotts@netscape.com d7c13c70ac Added support to shut down netlib and the nsINetService instance... 1998-08-22 00:12:54 +00:00
vidur@netscape.com 16b5511d11 Added nsIConnectionInfo interface. Temporarily special-cased javascript: URLs in URL parsing. 1998-08-20 22:28:09 +00:00
kmcclusk@netscape.com a71c21e8cb Added XP_UNIX code to leave the top slash for absolute file paths under UNIX.
This fixes a problem where all of the slashs get stripped off because the URL
is asked to parse a previously parsed url string.
1998-08-20 20:32:52 +00:00
valeski@netscape.com 1554576367 RAPTOR ONLY CHECKIN
network/module/nsIURL.h
Added Get/Set ReloadType methods so a user can query/set the reload type for the url. The default is normal reload.

network/module/nsURL.cpp
Added support for the new nsIURL interface methods (Get/Set ReloadType).

network/module/nsNetService.cpp
OpenStream and OpenBlockingStream now query the nsIURL for it's reload type before creating the url struct. This way we can control how the url is loaded.
1998-08-19 23:00:15 +00:00
scullin@netscape.com 0f0eb6d94b Move resource hack to tip. 1998-08-19 21:38:57 +00:00
valeski@netscape.com 7197294946 network/module/nsIRefreshUrl.h
Extended the nsIRefreshUrl interface to include a cancel method.

network/module/nsNetService.cpp
1. Added code to hook the nsConnectionInfo object up to the nsISupports pointer in the url being loaded.
2. Removed the redirect logic in bam_exit_routine(). The backend dependency on the front end is gone.

network/module/nsNetStream.cpp
Added initialization/destruction of the nsISupports pointer in the nsConnectionInfo.

network/module/nsNetStream.h
Added the nsISupports member declaration to nsConnectionInfo, and remvoed the redirect member variable.

network/module/nsNetStubs.cpp
FE_SetRefreshURLTimer() routine has been modified so it no longer relies on the pConsumer (i.e. nsDocumentBindInfo) which was causing us to leak it. Now we use the nsISupports pointer in the nsConnectionInfo object to access the nsIRefreshURL interface so we can reload the url.

network/module/nsStubContext.cpp
Modified stub_complete() so we no longer pay attention to the redirect member of the nsConnectionInfo object.

network/module/nsIURL.h
1. Added GetContainer() method to nsIURL which returns the nsISupports pointer of the container for this url.
2. created a new NS_NewURL() routine which takes an nsISupports pointer as a parameter.

network/module/nsURL.cpp
1. Added a new nsURL constructor that takes a nsISupports pointer as a param.
2. Added GetContainer() method and nsISupports pointer initialization/destruction.
1998-08-18 23:24:28 +00:00
vidur@netscape.com f1a2fcfe92 Fixed problem with mSpec being allocated with something other than PR_Malloc 1998-08-13 19:05:36 +00:00
vidur@netscape.com 155bdf1521 Added better handling of search component of URL. Added GetSearch() method to nsIURL. 1998-08-13 04:35:37 +00:00
rpotts@netscape.com f1d9e69061 Get rid of some unix warnings... 1998-07-24 20:53:38 +00:00
kipp@netscape.com 939fa25fc9 Handle absolute url's better 1998-07-24 18:16:05 +00:00
kipp@netscape.com 04d8725099 Added in parsing for references 1998-07-22 23:38:20 +00:00
kipp 5709c95602 Hack around url parsing bug; urls that start with / are not absolute even if they contain a colon 1998-07-14 15:24:32 +00:00
rpotts 5a621f9618 Changed sprintf(...) to PR_snprintf(...) 1998-07-01 11:22:25 +00:00
kipp ae259648d4 Fixed memory overwrite bug 1998-06-30 23:37:35 +00:00
vidur 16b456149d Added code to relative->absolute URL conversion path to deal with .. and . in the path 1998-06-26 22:09:18 +00:00
scullin dd5d729c00 Memory fixes from my branch. 1998-06-24 17:38:21 +00:00
rods 5bce9ada1f fixed UNIX resource protocol 1998-06-16 00:04:43 +00:00
kmcclusk 94dfc90c29 Added resource protocol support under unix. 1998-06-15 23:42:16 +00:00
scullin bfc20ccfbd Landed raptor modular netlib stuff 1998-05-22 23:38:40 +00:00