Commit Graph

275 Commits

Author SHA1 Message Date
rpotts%netscape.com
8026dca974 bug #15342 and #15560. Refactored the LoadGroup and DocumentLoader... 1999-11-22 05:46:03 +00:00
dp%netscape.com
c15646baa6 Convering to GenericModule. 1999-11-20 07:28:11 +00:00
mscott%netscape.com
c9f26d5a2e remove two compile warnings to get me off the warnings list... 1999-11-19 03:04:25 +00:00
mcafee%netscape.com
cdd368478b Removing const to match IDL spec, fixes Solaris/CC. r=mscott 1999-11-18 20:47:57 +00:00
warren%netscape.com
59ef7fadbf Removed the nsICapabilities interface in favor of nsIInterfaceRequestor. 1999-11-18 07:36:41 +00:00
mscott%netscape.com
48c40aade9 Bug #14928 --> phase one of uri dispatching landing. IF uri dispatching is turned on,
invoke the uri loader instead of opening the document ourselves.

Various changes for uri dispatching....

r=travis
1999-11-18 07:07:33 +00:00
mscott%netscape.com
bd05feb4cf make this library 8.3 on windows.
(renamed to urildr)
1999-11-18 06:02:00 +00:00
valeski%netscape.com
442edcfdf4 r=rhp. nsDocumentBindInfo was returning NO_INTERFACE when asked for nsISupports. I can't believe we made it this far w/ that object not able to support nsISupports :/ 1999-11-18 02:19:13 +00:00
mscott%netscape.com
0fefbf1cb0 (not part of the seamonkey build)
CanHandleContent now has an out parameter for desired content type.
Minor re-write of uri loder logic to incorporate stream conversion. If the content listener passes back
a desired content type that is different from the content type that we asked it to handle, we'll
automatically invoke a stream converter. This allows a doc shell which wants to handle say message/rfc822
to request that content be in the form of text/xul (i.e. if it was presenting the content).
1999-11-18 01:02:31 +00:00
mscott%netscape.com
7ecbc0a23d (not part of the seamonkey build)
CanHandleContent now has an out parameter for desired content type.
1999-11-18 01:00:56 +00:00
mscott%netscape.com
2d49596d2e First Checked In. 1999-11-17 22:48:42 +00:00
warren%netscape.com
7a6e9a4e4b Fix for bustage due to channel retargeting changes. 1999-11-17 09:17:04 +00:00
warren%netscape.com
34ecf73507 Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott 1999-11-17 08:14:52 +00:00
mscott%netscape.com
a5c1732c80 (not part of the build)
remove obsolete file
1999-11-17 01:46:08 +00:00
mscott%netscape.com
d2b10b5fb2 (not part of the build)
exorcise nsURILoaderCIDs.h
1999-11-17 01:45:25 +00:00
mscott%netscape.com
1a8f61a85d (Not part of the seamonkey build yet)
add manifest idl file for uriloader
1999-11-17 01:43:38 +00:00
mscott%netscape.com
8cc3299e5a I need to add this bogus file to uriloader\macbuild so my mac will pull the directory...
turns out it won't pull empty directories....
1999-11-16 21:16:13 +00:00
tbogard%aol.net
0e82732097 Changed nsDocLoader to get Container by asking nsIWebShell rather than nsIContentViewerContainer. 1999-11-16 01:03:57 +00:00
mscott%netscape.com
3b1f2ae843 (not part of the seamonkey build)
Revamp the uri loader to excusively use AsyncRead instead of AsyncOpen and AsyncRead. With these changes,
we now only need to add the ability to retarget to our protocol channels instead of requiring both
retargeting and AsyncOpen support.

In order to do this, the DocumentOpenInfo object needed to become a nsIStreamListener instead of just
a stream observer.
1999-11-15 21:35:40 +00:00
tbogard%aol.net
2611ac719c Removed temporary QI to nsIContentViewerContainer as nsISupports is what is needed on the parameter anyway. r=pavlov 1999-11-15 07:47:01 +00:00
tbogard%aol.net
c1c0a44226 Changed references to nsIContentViewerContainer to nsISupports in the march to get rid of nsIContentViewerContainer. r=pavlov 1999-11-15 07:29:23 +00:00
mscott%netscape.com
0a37574230 (not part of the seamonkey build...yet!)
Clean up OpenURI api. get rid of the verb, the channel context and the loadgroup as required arguments
to OpenURI.

Add nsUriLoaderEventSinkGetter class. Many method signatures
changed to match the changes to nsIURILoader::OpenURI.
1999-11-10 06:24:40 +00:00
mscott%netscape.com
02db933362 (not part of the build yet!)
Clean up OpenURI api. get rid of the verb, the channel context and the loadgroup as required arguments
to OpenURI.

Add the notion of a open uri context as an in and an out parameter. The open uri context is a cookie which
the caller can later give back to the uri loader when running another url in the same context. It's an ISupports
right now and the type should be opaque to the caller.

Don't require the caller to pass in an event sink getter. We can generate this for them. Do give them the ability
to pass in a nsIProgressEventSink. Note: this parameter is actually going to get changed into a nsIProgressListener
real soon as well. So don't get to used to it.
1999-11-10 06:22:29 +00:00
tbogard%aol.net
764c436e8a Changed the C++ includes to the equivalent of nsIURI and nsIStreamListener IDL versions. I couldn't find them earlier. Thanks to andreas.otte@primus-online.de for pointing the availability of them out to me. 1999-11-06 19:11:09 +00:00
tbogard%aol.net
a2b5afbab9 Changed the some of the forward declared interfaces to be includes of the idl files. This makes the usages of these interfaces easier. Also put in the C++ includes for the nasty dumb interfaces nsIURI and nsIStreamListener which haven't found their homes in IDL yet. 1999-11-06 03:58:15 +00:00
dmose%mozilla.org
142ac52eaf updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
dmose%mozilla.org
5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
mscott%netscape.com
853c7fc3d9 (not part of the build)
GetProtcocolHandler needs to pass in the uri we are trying to open so the
listener can pick an appropriate p.h. based on the protocol of the uri. (if
they so choose).
1999-11-05 23:26:16 +00:00
mscott%netscape.com
57f8b35d82 (not part of the build)
1) add OpenURIVia support.
2) reimplent DispatchContent so we ask the listener if it can handle the content. Then when (if) we find
a content listener that can handle it, call DoContent.
3) if we can't find a content listener, go to the registry and try to find a registered content handler.
This part isn't finished as eventually i need to be going to the category manager instead of forming
the progid for the content handler myself.
1999-11-05 23:06:16 +00:00
mscott%netscape.com
a7b46de416 Add OpenURIVia which takes a static IP address.
(not part of the build)
1999-11-05 23:03:58 +00:00
mscott%netscape.com
bb4a08477e (not part of build)
Add notion of CanHandleContent. This is supposed to be a light weight method for the implementor
such that the uri loader can ask right off the top if the listener can handle a particular content
type. If it can, then later on, the uir loader may call DoContent to actually handle it.
1999-11-05 22:54:53 +00:00
mscott%netscape.com
765b3659fb add a new line at the end of the file
(not part of the seamonkey build)
1999-11-05 22:53:21 +00:00
mscott%netscape.com
d07b92ce56 (not part of the seamonkey build!)
remove CanHandleConent. I don't think we need this. Also remove notion of getting a parent
content handler. This doesn't make sense anymore for how I'm defining a content handler.
Added progid prefix for content handler.
1999-11-05 22:52:35 +00:00
mscott%netscape.com
906c8e3e6a (not part of the seamonkey build)
define and implement nsDocumentOpenInfo. Implement uri loader::OpenURI. This is the first pass at
my implementation it isn't complete and it doesn't use the registry for getting
 protocol handlers and content handlers yet...but it's a start
1999-11-05 06:01:40 +00:00
mscott%netscape.com
c7e6cb57c3 (not part of the seamonkey build)
include nsISupportsUtils.h
1999-11-05 06:01:05 +00:00
mscott%netscape.com
478b1cc912 (not part of the seamonkey build!)
expanded OpenURI interface to take all the required arguments we need in order to really open the uri.
This includes adding the command, window target, event sink getter, load group and channel context.
Added dispatchContent method which is used by the doc open info's to talk back to the uri loader.
DispatchContent takes an opened channel and the uri content listener.
1999-11-05 06:00:36 +00:00
mscott%netscape.com
4f5cae920f (not part of the seamonkey build!)
doContent now returns a boolean called abortProcess. if the listener wants to handle the content without
 returning a stream listener, i.e. it wants the uri loader to stop doing anything else with this content,
then it returns true for abort process.
1999-11-05 05:59:42 +00:00
mscott%netscape.com
cb664d08ae (not part of the seamonkey build!!)
no longer need nsURILoaderCIDs.h
1999-11-03 03:55:39 +00:00
mscott%netscape.com
193a76f8ba (not part of the seamonkey build!!!!)
name change of nsURIDispatcher to nsIURILoader
1999-11-03 03:53:33 +00:00
tbogard%aol.net
f9e320efbe Changed URIDispatcher to URILoader throughout. 1999-11-02 19:36:43 +00:00
mscott%netscape.com
7463fbd7a6 Add cvsignore file for uriloader\build 1999-11-02 19:21:49 +00:00
mscott%netscape.com
bfccd253b0 (not part of the build!)
add .cvsignore file
1999-11-02 19:21:01 +00:00
mscott%netscape.com
d91dc55b6c this directory is not part of the build!!!
add .cvsignore file
1999-11-02 19:18:04 +00:00
mscott%netscape.com
8ee1bef6d7 this directory isn't part of the build!!!!
add a Makefile for uriloader\build
1999-11-02 19:09:50 +00:00
mscott%netscape.com
3000fd0ba1 (This directory isn't part of the build!!)
Add a Makefile for the uriloader base directory.
1999-11-02 19:09:15 +00:00
mscott%netscape.com
fb292bbb38 (not part of the seamonkey build)
top level Makefile for uriloader
1999-11-01 19:56:25 +00:00
mscott%netscape.com
f12b862bb4 not part of the seamonkey build
add makefile for the uriloader\build directory.
1999-11-01 19:52:49 +00:00
mscott%netscape.com
c12b868552 not part of the seamonkey build
add CID header file and uri loader module class.
1999-11-01 19:52:25 +00:00
mscott%netscape.com
ea478acb6e not part of the seamonkey build.
add top level makefile.win for uriloader.
1999-11-01 19:51:45 +00:00
mscott%netscape.com
09892cb026 not part of the seamonkey build
remove class id and progid from the interface
1999-11-01 19:51:05 +00:00
mscott%netscape.com
a57216e267 (not part of the seamonkey build!)
export nsURIDispatcher.h
1999-11-01 19:49:09 +00:00
mscott%netscape.com
4ab7b6d370 first created. 1999-10-29 21:49:19 +00:00
mscott%netscape.com
0069fa11da Moving URI dispatching code into its new home in mozilla\uriloader. I'll be removing
the existing files that I put in netwerk very soon.
1999-10-29 21:46:18 +00:00
bienvenu%netscape.com
7a53af86e4 add accessor for load group on doc loader r=rpotts 1999-10-27 04:44:42 +00:00
rpotts%netscape.com
08c8e88004 bug #15560. Changed the LoadGroup to fire notifications via PLEvents to stop reenterency. 1999-10-19 19:42:55 +00:00
gagan%netscape.com
19e35c44ca Removed an unneccesary include statement. No bug number. 1999-10-13 10:28:10 +00:00
rpotts%netscape.com
8bd067892e Removed dead code inside of #if 0 blocks... 1999-10-06 21:43:21 +00:00
warren%netscape.com
8603974025 Added AsyncOpen to nsIChannel for URL dispatching. Added ContentLength to InputStreamChannel. (r=rpotts,valeski) 1999-10-06 08:26:01 +00:00
kipp%netscape.com
dd815430d4 Work around a flaw in the doc-loader not handling a RemoveObserver call during an observer notification 1999-10-05 23:57:20 +00:00
rpotts%netscape.com
89f54ea1ae bug #15341 and bug #15344. Use the documentloader observer instead of a stream observer. 1999-10-05 04:04:16 +00:00
rpotts%netscape.com
e0096d3c31 bug #14457. Getting the webcrawler working again for QA... 1999-09-22 22:58:29 +00:00
scc%netscape.com
a1ff4d8cc5 take action to prevent re-entering the destructor 1999-09-21 21:10:22 +00:00
mscott%netscape.com
9f4482f2c5 The doc loader should release the underlying channel once the channel issues a OnStopRequest. This allows the
channel to go away after we load the url instead of making it stick around until the next url comes in (that's
when we used to get rid of the previous channel).
r=rpotts.
1999-09-21 05:36:49 +00:00
bienvenu%netscape.com
9f48620357 fix listener leak r+a=mscott,valeski 1999-09-20 21:10:46 +00:00
warren%netscape.com
bde1055a86 Fixed warnings. 1999-09-20 20:57:21 +00:00
mccabe%netscape.com
4f7990cd94 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
rpotts%netscape.com
eae00c990c DocLoader cleanup... Also trying to get the notifications correct :-) 1999-09-17 07:56:03 +00:00
vidur%netscape.com
21477c4cd3 Document referrer propagation through webshell and docloader. 1999-09-17 04:26:02 +00:00
warren%netscape.com
7d5e565fd5 Factored file transport service out of file: protocol. 1999-09-16 01:16:22 +00:00
vidur%netscape.com
56c104a8a3 Fixed circular references. nsDocLoader now supports weak references to it. Init() method moves out of constructor. nsDocLoader now has Destroy() method to start breakdown process. 1999-09-09 23:53:55 +00:00
mscott%netscape.com
f5609d9205 LoadDocument and LoadSubDocument now take an nsIURI instead of a unicode string. This is part of a webshell optimization
to cut down on the number of nsIURI objects which we currently create in order to run a url in the webshell.
1999-09-08 03:58:57 +00:00
mscott%netscape.com
0cc0bf5862 If the to content type is message/rfc822 then we need to call into the stream converter service to find an appropriate
converter.
1999-09-05 19:54:28 +00:00
valeski%netscape.com
f7e8b6cd05 changed nsCOMTypeInfo<> template to NS_GET_IID macro 1999-09-03 23:51:14 +00:00
kipp%netscape.com
78bace2449 Use nsAutoString instead of nsString for temps 1999-09-02 18:13:07 +00:00
valeski%netscape.com
02f3298de1 added a context param to the stream converter service 1999-09-02 02:18:28 +00:00
beard%netscape.com
4dbb793c3e fixed a memory leak (was leaking the strdup("?"), landed stream converter stuff on Mac. 1999-09-01 21:50:32 +00:00
danm%netscape.com
51ba321184 removing groady hack from rev 3.140, unnecessary since yesterday's changes in security (caps) 1999-09-01 20:26:04 +00:00
danm%netscape.com
6d1e456319 temporary groady hack to fix breakage in NS_OpenURI 1999-08-31 06:49:26 +00:00
rickg%netscape.com
f06b290a9b enlarged the buffer size used for logging 1999-08-30 05:54:37 +00:00
valeski%netscape.com
53c1a87a7b added stream converter functionality to the doc loader. also initialize/register the multipartmixedreplace stream converter in the webshell 1999-08-29 14:31:08 +00:00
sspitzer%netscape.com
d60eff6c76 fix warning 1999-08-28 17:32:51 +00:00
rpotts%netscape.com
0085d83ab0 M9 BRANCH landing... 1999-08-26 22:45:55 +00:00
mccabe%netscape.com
a900e17559 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
mccabe%netscape.com
17cdc659d1 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
nisheeth%netscape.com
10dd3815f7 Fix for bug 7401. We now print out error messages for failed url loads. 1999-08-06 21:54:25 +00:00
rpotts%netscape.com
7b95979c70 Removed an *extra* release of the PostData stream... This was causing random crashes... 1999-08-06 21:38:09 +00:00
valeski%netscape.com
0efb259cfa api change to nsIWebShell and nsIDocumentLoaderObserver. I've replaced all the old method delarations with the new versions. We now pass 'nsresult' types into the On*() methods instead of PRInt32. The PRInt32 arg type was causing data loss.
I also checked in a fix for bug 10848 (which prompted the api change), and 10549 (these changes were in nsWebShell.cpp).
1999-08-05 01:28:30 +00:00
gagan%netscape.com
265933872a POST requests for HTTP work now! Go file bugs using apprunner now... 1999-08-04 15:06:51 +00:00
mcafee%netscape.com
6da92dc13c Converting to stream implementation of HTTP posting, this obsoletes nsIPostData and nsIPostToServer. a=warren 1999-08-03 20:51:41 +00:00
valeski%netscape.com
99a28ebe09 factored repeated mime type retrieval implementations into mime mapping service methods 1999-08-01 16:42:25 +00:00
warren%netscape.com
ec70a82de6 Reverted yesterday's change to solve the timing/perf measurement problem. Now I think the main problem was caused by the fact that redirects weren't getting inserted into the group, causing the load to terminate prematurely. That's now solved in the http protocol code. 1999-07-31 06:33:50 +00:00
warren%netscape.com
abb94bdcc3 Fixes for the 'timing' problem, where load time is reported incorrectly. Things seem to work now, except the very first load. 1999-07-30 07:50:35 +00:00
warren%netscape.com
4863d69146 Clean up of nsDocumentBindInfo::OnStopRequest. Debug error messages for necko failure. 1999-07-30 04:20:34 +00:00
warren%netscape.com
7b13572242 Fixed UMR / refcounting problem (purify). 1999-07-28 04:02:07 +00:00
valeski%netscape.com
1d79ac4dce necko - had to turn off www.*.com trick until we can identify dns failures 1999-07-21 16:41:07 +00:00
valeski%netscape.com
951e14a6a2 necko www.*.com trick 1999-07-21 14:54:45 +00:00
warren%netscape.com
bf8423a769 Changed around load group insertion/removal to happen on mozilla thread. 1999-07-20 08:46:33 +00:00
beard%netscape.com
06085c800b added <iostream.h> 1999-07-17 01:58:38 +00:00
sspitzer%netscape.com
fb5fa96ffe warren blew away my DEBUG_pnunn changes. Adding it back. 1999-07-17 01:51:27 +00:00
valeski%netscape.com
998b3f60b0 changed mime map service to use nsHashtabel 1999-07-16 21:56:54 +00:00