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

215 Коммитов

Автор SHA1 Сообщение Дата
rpotts%netscape.com 40e8faf12e Added correct NPL 1998-09-19 06:58:32 +00:00
ebina%netscape.com 603988084a "This doesn't make it work, but it makes it 'better'" - Kipp 1998-09-17 22:08:35 +00:00
kipp%netscape.com df67a98b54 Register inet service so that the test works again 1998-09-17 21:33:14 +00:00
kipp%netscape.com 520d3bb2cf Fixed deref of unitialized memory bug in URLImpl::Open 1998-09-17 21:32:52 +00:00
valeski%netscape.com a89bc83c54 Now nulling out a variable that was causing a crash on url open. 1998-09-17 19:56:30 +00:00
pierre%netscape.com 0c08dfeeda fixing mac build: renamed the factory entry point 1998-09-17 09:17:39 +00:00
valeski%netscape.com 81cdcbe581 ? 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 f0e8859cc2 General memory repairs (leakage, freeing mismatched mem, umrs) 1998-09-16 07:17:34 +00:00
valeski%netscape.com ea6eb8d229 ? 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
kipp%netscape.com 49239255bc whitespace tweak 1998-09-12 19:31:10 +00:00
mcafee%netscape.com 2114567189 Fixing Solaris bustage 1998-09-12 05:55:51 +00:00
mcafee%netscape.com 7661bcd355 Solaris needs EOF character 1998-09-12 05:52:39 +00:00
valeski%netscape.com 3a9d22b79b fixing build bustage. 1998-09-10 03:28:20 +00:00
valeski%netscape.com 9bc115a2f8 The changes apply to MODULAR_NETLIB only
mozilla/module/nsINetFile.h
MODULAR_NETLIB only. Added the nsINetFile interface header.

mozilla/module/nsNetFile.cpp
MODULAR_NETLIB only. Added the nsINetFile interface implementation.

mozilla/module/nsNetFile.h
MODULAR_NETLIB only. Added the nsNetFile header.

mozilla/main/mkgeturl.c
MODULAR_NETLIB only. Added directory and file token initialization for new ns_net_file code.

mozilla/main/net_xp_file.h
MODULAR_NETLIB only. Added the new readline routine for ns_net_file.

mozilla/module/makefile.win
MODULAR_NETLIB only. Added the nsNetFile.cpp file to compilation list.

mozilla/module/nsNetService.cpp
MODULAR_NETLIB only. Added the static nsNetFile instance so it gets initailized.

mozilla/module/nsNetStubs.cpp
MODULAR_NETLIB only. Added NET_I_XP_FILE* versions of XP_FILE routines. These routines are compiled and used when NS_NET_FILE is defined.
1998-09-10 00:32:40 +00:00
vidur%netscape.com 7792eb4aa2 Adjusted to change in signature for FE_SetRefreshURLTimer 1998-09-09 20:56:47 +00:00
kipp%netscape.com 63293e335d Stub out fe routine so that app will link 1998-09-05 20:13:34 +00:00
pierre%netscape.com 8e098f42ee set resourceBase to the magic string "usr/local/netscape/bin/" 1998-09-03 06:19:13 +00:00
rpotts%netscape.com d28b236929 Fixed return value from PerformNastyWindowsAsyncDNSHack(...) 1998-09-02 00:27:54 +00:00
thom%netscape.com bec672263f fixed heap corruption in mac version of the function mangleResourceIntoFileURL. This change ONLY effects macs 1998-08-28 01:33:14 +00:00
cls%seawood.org 9c74df02ff Updates to autoconf files. 1998-08-26 04:04:57 +00:00
rpotts%netscape.com 36e1bfa687 Evil fix for deadlock during synchronous http url loads... 1998-08-25 05:51:40 +00:00
thom%netscape.com defaa3615a fixed mac compile error in the initialization code 1998-08-25 00:04:27 +00:00
rpotts%netscape.com 86ed65ac06 NGLayout only... Added a synchronous command line option for testing synchronous URL fetching. 1998-08-24 20:46:44 +00:00
rpotts%netscape.com 858096eece Added support to shut down netlib and the nsINetService instance... 1998-08-22 00:12:54 +00:00
vidur%netscape.com 49655aa9d6 Fixed build bustage. 1998-08-20 23:07:31 +00:00
vidur%netscape.com 6f24009862 Added nsIConnectionInfo interface. Temporarily special-cased javascript: URLs in URL parsing. 1998-08-20 22:28:09 +00:00
kmcclusk%netscape.com 67de8bdacd 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 bd04b0bff1 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 4fe774fe81 Move resource hack to tip. 1998-08-19 21:38:57 +00:00
cls%seawood.org 90d0af1408 AUTOCONF_1_0 landing. 1998-08-19 20:42:14 +00:00
valeski%netscape.com 22f10c8539 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
valeski%netscape.com 02099d72e5 fixed a memory leak 1998-08-18 22:38:03 +00:00
troy%netscape.com a995892c08 Changed PR_FREEIF to delete[] (call to nsString::ToNewCString) 1998-08-15 01:53:38 +00:00
thom%netscape.com ce45547fa2 added nsIRefreshUrl.h to manifest 1998-08-14 21:35:42 +00:00
valeski%netscape.com d791bc8379 network/module/Makefile -
1. 310133 - Added nsIRefreshUrl.h to the list of exports.

network/module/makefile.win -
1. 310133 - Added nsIRefreshUrl.h to the list of exports.

network/module/nsIHttpUrl.h -
1. 310133 - Extended the nsIHttpUrl interface to include the AddMimeHeader() method which adds an http header to the url.

network/module/nsHttpUrl.cpp -
310133 - 1. Added support for the AddMimeHeader() method so http urls can have headers added outside of the actual data retrieval in netlib. This method calls NET_ParseMimeHeader() directly.
2. Added a public member, a pointer to the netlib URL_Struct that was created for this nsHttpUrlImpl. This pointer is the link between netlib and the outside world; the adhesive agent between url structs and nsURLImpls.

network/module/nsNetStream.h -
1. 310133 - Added a public memeber variable to nsConnectionInfo. It's a bool that tells us whether or not a redirect has occurred.

network/module/nsNetStream.cpp -
1. 310133 - Added initialization (FALSE) of new redirect member.

network/module/nsNetStubs.cpp -
1. 310133 - Implemented FE_SetRefreshURLTimer(). This function is called from NET_GetURL() when we recognize that we have a url to refresh.

network/module/nsStubContext.cpp -
1. 310133 - Added check to see if we're redirecting in stub_complete() which gets called when a stream completes. If we are, we don't want to release/destroy the pConsumer, this will happen in nsNetService's bam_exit_routine().

network/module/nsNetService.cpp -
1. 310133 - added nsConnectionInfo->redirect check in bam_exit_routine() so we give the consumer a successful binding event if the consumer is still around. This is iffy.
1998-08-13 20:10:49 +00:00
valeski%netscape.com d276dc3f47 310133 - Added nsIRefreshUrl.h to the build. This file defines the nsIRefreshUrl interface which simply declares a method that allows a url to be refreshed/reloaded after a given interval. 1998-08-13 20:05:13 +00:00
vidur%netscape.com 87efb86929 Fixed problem with mSpec being allocated with something other than PR_Malloc 1998-08-13 19:05:36 +00:00
rpotts%netscape.com 6d987306b9 Fixed OnDataAvailable(...) to abort the stream if it returns a failure code... 1998-08-13 08:19:49 +00:00
vidur%netscape.com d183e5debb Added better handling of search component of URL. Added GetSearch() method to nsIURL. 1998-08-13 04:35:37 +00:00
michaelp%netscape.com f199e896c4 fixed build. 1998-08-13 00:07:09 +00:00
warren%netscape.com ab6b8457c2 Fixed version umber for js3250.lib. 1998-08-05 01:33:36 +00:00
rpotts%netscape.com 1828fc0787 Disable NET_PollSockets(...) optimization until it works correctly... 1998-08-01 09:13:20 +00:00
scullin%netscape.com a486e293af Safety check our automatic context deleting. (NGLayout only) 1998-07-29 18:44:23 +00:00
rpotts%netscape.com 9db3e077af Removed all calls to NET_PollSockets(...). Netlib now does the polling itself... 1998-07-29 06:01:57 +00:00
rpotts%netscape.com 9f09525795 Removed the need for clients to explicitly call NET_PollSockets(...). This has been replaced with a timer based polling scheme 1998-07-29 06:01:11 +00:00
dcone%netscape.com efe6b8c5c3 defined a mac WH_TempName for modular Netlib. Raptor change. 1998-07-27 19:53:51 +00:00
vidur%netscape.com 556620adc9 Added methods to nsINetService to get and set cookie string for a URL 1998-07-25 00:32:32 +00:00
rpotts%netscape.com 9ede9bad4b Get rid of some unix warnings... 1998-07-24 20:53:38 +00:00
kipp%netscape.com e988af4f91 Handle absolute url's better 1998-07-24 18:16:05 +00:00
rpotts%netscape.com bd11b1339b Added IStreamListener::OnStatus(...)... 1998-07-24 10:02:50 +00:00
michaelp%netscape.com 37a8d1a2cb modified for new streaming APIs. 1998-07-23 20:43:08 +00:00
scullin%netscape.com 6fc4b09559 Fixed build bustage. I can't believe people are still adding context
functions. They should be shot.
1998-07-23 18:31:05 +00:00
kipp%netscape.com 5274ae4d4b Added in parsing for references 1998-07-22 23:38:20 +00:00
jevering%netscape.com 9856195741 Fixed build problem on NT 5.0 with null exports line. 1998-07-22 23:25:35 +00:00
rpotts%netscape.com c2ceac69d9 Allow OnDataAvailable(...) to abort a binding operation by returning an error code... 1998-07-22 11:21:27 +00:00
rpotts%netscape.com 99613a04b7 Removed some signed/unsigned warnings... 1998-07-22 11:20:37 +00:00
scullin%netscape.com 190657d936 Fix crash _and_ memory leak? Is it too much to hope? 1998-07-22 03:48:17 +00:00
scullin%netscape.com b463f1b1f2 Fix crash, leak again. 1998-07-22 02:56:50 +00:00
scullin%netscape.com ca9b7dbb27 Fix context leakage. 1998-07-22 00:16:00 +00:00
scullin%netscape.com dc9bf0a612 Added rules to install/clobber resource gifs. 1998-07-21 21:22:25 +00:00
scullin%netscape.com 31eb618849 Hook up status remarks from netlib, add interface for prompts and alerts. 1998-07-21 20:27:59 +00:00
scullin%netscape.com 219f72200e Icons for ftp/file directories. 1998-07-21 19:35:35 +00:00
scullin%netscape.com b576ffc9bb Allow multipe urls on command line.
NGLayout only.
1998-07-21 18:44:20 +00:00
scullin%netscape.com c855876871 Moved from branch 1998-07-17 18:07:21 +00:00
guha%netscape.com 6b558d9170 Fix for bug reported by Mr. Hickman 1998-07-16 18:22:23 +00:00
guha%netscape.com 316cf197a2 Fix bug in related links 1998-07-16 00:10:48 +00:00
guha%netscape.com 3ddba08d73 Remove duplicates from related links 1998-07-15 23:39:14 +00:00
rpotts%netscape.com 14a8c49f35 Added nsIURL argument to the nsIStreamListener interface 1998-07-15 22:38:01 +00:00
jevering a46743fe6e Related links stuff.. Guha's related links code stolen from 4.5 and
spanked seriously.. then jammed into netlib.  Nice huh?
1998-07-15 18:44:26 +00:00
kipp 7436c02a75 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
scullin 874bc1a1d1 Fix UNIX link problems. 1998-07-14 00:57:49 +00:00
scullin 7e77c0ace3 Fix nglayout UNIX build? 1998-07-14 00:17:00 +00:00
scullin 235eb54976 Fix build? 1998-07-14 00:13:49 +00:00
scullin 7821802134 Re-enable normal netlib stream handling. Caching and chunking should
work now.
1998-07-13 23:43:13 +00:00
rpotts 163d764007 Cause the netlib load to fail if OnStartBinding(...) returns an error. 1998-07-03 06:15:06 +00:00
atotic 913d917e78 Fixed mac build bustage 1998-07-02 22:34:46 +00:00
rpotts c476bb79bf Initialized the file extension to content-type mappings to allow netlib to determine the content-type of a file based on its extension... 1998-07-02 19:44:56 +00:00
vidur d9483e4d15 Fixed casting problems on Linux 1998-07-02 17:46:15 +00:00
vidur 2ed99ee418 Fixed casting problems on Linux 1998-07-02 01:10:21 +00:00
vidur b091a85533 Added nsINetContainerApplication interface and a way to get the user agent, etc. from the containing application 1998-07-01 23:56:20 +00:00
rpotts c2ed0c04eb Fixed up IID for nsIStreamListener 1998-07-01 11:24:10 +00:00
rpotts 701127bf7e Split the nsIStreamListner interface into nsIStreamObserver and nsIStreamListener 1998-07-01 11:23:17 +00:00
rpotts cea04c5729 Changed sprintf(...) to PR_snprintf(...) 1998-07-01 11:22:25 +00:00
kipp 0c5e719917 Fixed memory overwrite bug 1998-06-30 23:37:35 +00:00
vidur 3167fcfa5b Added code to relative->absolute URL conversion path to deal with .. and . in the path 1998-06-26 22:09:18 +00:00
scullin b0aa661860 Memory fixes from my branch. 1998-06-24 17:38:21 +00:00
atotic e9bb3fe74f Fixed the following Mac compile error: Error : inconsistent linkage: 'extern' object redeclared as 'static' nsNetService.cpp line 292 { 1998-06-24 01:17:51 +00:00
atotic fcb81f3583 First Checked In. 1998-06-16 21:39:13 +00:00
rods 949b959091 fixed UNIX resource protocol 1998-06-16 00:04:43 +00:00
kmcclusk 5e0e4dacd0 Added resource protocol support under unix. 1998-06-15 23:42:16 +00:00
spider c466113367 Defining dbopen on Unix too. Reviewed by rpotts. 1998-06-11 23:46:52 +00:00
scullin 8952d819ce Moved xp_reg to network/utils/mkreg. It was only used in netlib, anyway. 1998-06-05 23:45:30 +00:00
scullin 0ed36cea4c Use real implementation of xp_hash for now. 1998-06-05 23:23:24 +00:00
scullin 61cee206b1 Back out dbm use on windows because of lame build order dependency. 1998-06-05 02:23:15 +00:00
scullin 984423c93e Removed libpwcac stubs. 1998-06-05 01:42:15 +00:00
scullin 713012d8d8 Used libdbm and libpwcac instead of stubs. 1998-06-05 01:39:31 +00:00
scullin 2e2870a2ff Start using real dbm and pwcac libraries. 1998-06-05 01:24:59 +00:00
scullin 2218c67ede Stub out NET_NewStream. 1998-06-04 19:54:11 +00:00
scullin 84fa6350fd Add libmimetype.so 1998-06-04 15:23:32 +00:00
scullin 2f7c042490 Re-added LO_getNextTabableElement for UNIX. 1998-06-04 14:35:09 +00:00
rpotts 8023a4d901 Minor changes to nsIStreamListener interface... OnStartBinding(...) now passes out the stream content-type. User visible strings are now nsString arguments (for subsequent i18n) 1998-06-04 05:09:32 +00:00
rpotts 8a7df79468 Turned off the load_background flag when loading URLs... This allows netlib to produce more status information which gets pushed out of nsIStreamListener::OnProgress(...) 1998-06-02 20:17:17 +00:00
scullin dc97719bf7 Added tests sub-directory. 1998-06-02 18:39:17 +00:00
scullin fd795f1c94 Moved from /webshell/tests 1998-06-02 01:27:17 +00:00
scullin f122c938a6 Landing modular netlib on UNIX 1998-06-02 00:23:17 +00:00
kipp fb8881c928 Quiet please 1998-06-01 20:53:01 +00:00
kipp 5ee697f97b Fixed interface decl to be consistent with everything else 1998-06-01 18:37:21 +00:00
scullin 38d31c06b9 Start building mime type routines as separate library. 1998-06-01 18:29:28 +00:00
scullin 6828d6df9b Change XP_IS_ macros to NET_IS_ macros. 1998-05-29 23:04:49 +00:00
rpotts 784dd4feba removed the B1M define... Use MODULAR_NETLIB instead... 1998-05-28 04:56:44 +00:00
rpotts e9e369df70 Added support for XP_FindCOntextOfType(....) This is needed to turn off the poll_netlib_all_the_time flag after a POST has occurred 1998-05-27 23:04:11 +00:00
rpotts 6c92640acb Null terminate the post databuffer... 1998-05-27 23:03:05 +00:00
scullin dffa57fdb6 Enable more protocols 1998-05-27 01:24:22 +00:00
scullin 8767bd8b54 Rebuild when sub-libraries change. 1998-05-27 01:24:05 +00:00
scullin d4dcfbffd0 Landed raptor modular netlib stuff 1998-05-22 23:38:40 +00:00