M webshell/public/nsIDocumentLoader.h

nsIDocumentLoader interface method change to LoadURL() we now accept a local ip address.


M webshell/public/nsIWebShell.h
1. Extended the nsIWebShell LoadURL() method to take an additional PRUint32 parameter which represents an ip address. If specified, this address will be bound to the socket prior to connection as the local/client ip address to be used. The caller is guarantees the validity of this address.
2. Extended the nsReloadType enumeration to allow both proxy and cache bypass.


M webshell/src/nsDocLoader.cpp
1. Extended nsDocumentBindInfo::Bind() to take an additional nsILoadAttribs pointer. (class definitaion change and implementation).

2. Extended nsDocLoaderImpl::LoadURL() to take an additional PRUint32 param which represents an optional local ip address to bind the connecting socket to, prior to connection. (class definitaion change and implementation) The docloader object maintains a pointer to an nsILoadAttribs interface.


M webshell/src/nsWebShell.cpp
Implemented new LoadURL() routine. Simple pass down to doc loader of PRUint32.


M webshell/tests/ComFactory/makefile.win
Added netlib to the list of prerequisites.
This commit is contained in:
valeski@netscape.com
1998-09-16 00:40:20 +00:00
parent ce8839ff66
commit c49b8e6ab0
7 changed files with 97 additions and 22 deletions

View File

@@ -163,7 +163,8 @@ public:
NS_IMETHOD LoadURL(const PRUnichar *aURLSpec,
nsIPostData* aPostData=nsnull,
PRBool aModifyHistory=PR_TRUE,
nsReloadType type = nsReload);
nsReloadType aType = nsReload,
const PRUint32 localIP = 0);
NS_IMETHOD Stop(void);
NS_IMETHOD Reload(nsReloadType aType);
@@ -1033,7 +1034,8 @@ NS_IMETHODIMP
nsWebShell::LoadURL(const PRUnichar *aURLSpec,
nsIPostData* aPostData,
PRBool aModifyHistory,
nsReloadType type)
nsReloadType aType,
const PRUint32 aLocalIP)
{
nsresult rv;
PRInt32 colon, fSlash;
@@ -1106,7 +1108,8 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
aPostData, // Post Data
nsnull, // Extra Info...
this, // Observer
(PRInt32)type); // reload type
(PRInt32)aType, // reload type
aLocalIP); // load attributes.
return rv;