From e85dbd531380b080154fc79d89b2553858e8cf15 Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Sat, 1 Apr 2000 00:29:36 +0000 Subject: [PATCH] Removed all the LoadURL methods from the webshell API. Added a new API to allow loading for the old session history. This is needed until the new session history is online. git-svn-id: svn://10.0.0.236/trunk@64819 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsWebShell.cpp | 10 +++++++ mozilla/webshell/public/nsIWebShell.h | 42 +++------------------------ mozilla/webshell/src/nsWebShell.cpp | 10 +++++++ 3 files changed, 24 insertions(+), 38 deletions(-) diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 3d5b4c17f87..d3e25f91953 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -252,6 +252,10 @@ public: const PRUnichar* aReferrer=nsnull, const char * aWindowTarget = nsnull); + NS_IMETHOD SessionHistoryInternalLoadURL(const PRUnichar *aURLSpec, + nsLoadFlags aType, nsISupports * aHistoryState, const PRUnichar* aReferrer); + + NS_IMETHOD GetCanGoBack(PRBool* aCanGoBack); NS_IMETHOD GetCanGoForward(PRBool* aCanGoForward); NS_IMETHOD GoBack(); @@ -1812,6 +1816,12 @@ NS_IMETHODIMP nsWebShell::Stop(void) //---------------------------------------- +NS_IMETHODIMP nsWebShell::SessionHistoryInternalLoadURL(const PRUnichar *aURLSpec, + nsLoadFlags aType, nsISupports * aHistoryState, const PRUnichar* aReferrer) +{ + return LoadURL(aURLSpec, nsnull, PR_FALSE, aType, 0, aHistoryState, aReferrer); +} + // History methods NS_IMETHODIMP diff --git a/mozilla/webshell/public/nsIWebShell.h b/mozilla/webshell/public/nsIWebShell.h index 15a66492b43..e3cc9572691 100644 --- a/mozilla/webshell/public/nsIWebShell.h +++ b/mozilla/webshell/public/nsIWebShell.h @@ -147,44 +147,10 @@ public: */ NS_IMETHOD GetDocumentLoader(nsIDocumentLoader*& aResult) = 0; - /** - * Load the document associated with the specified URL into the WebShell. - */ - NS_IMETHOD LoadURL(const PRUnichar *aURLSpec, - nsIInputStream* aPostDataStream=nsnull, - PRBool aModifyHistory=PR_TRUE, - nsLoadFlags aType = nsIChannel::LOAD_NORMAL, - const PRUint32 aLocalIP=0, - nsISupports * aHistoryState=nsnull, - const PRUnichar* aReferrer=nsnull) = 0; - - /** - * Load the document associated with the specified URL into the WebShell. - */ - NS_IMETHOD LoadURL(const PRUnichar *aURLSpec, - const char* aCommand, - nsIInputStream* aPostDataStream=nsnull, - PRBool aModifyHistory=PR_TRUE, - nsLoadFlags aType = nsIChannel::LOAD_NORMAL, - const PRUint32 aLocalIP=0, - nsISupports * aHistoryState=nsnull, - const PRUnichar* aReferrer=nsnull, - const char * aWindowTarget = nsnull) = 0; - - /** - * Load the document with the specified URI into the WebShell. Assuming you have - * an nsIURI instead of a PRUnichar string, this is the preferred way to load a url. - */ - NS_IMETHOD LoadURI(nsIURI * aUri, - const char * aCommand, - nsIInputStream* aPostDataStream=nsnull, - PRBool aModifyHistory=PR_TRUE, - nsLoadFlags aType = nsIChannel::LOAD_NORMAL, - const PRUint32 aLocalIP=0, - nsISupports * aHistoryState=nsnull, - const PRUnichar* aReferrer=nsnull, - const char * aWindowTarget = nsnull) = 0; - + NS_IMETHOD SessionHistoryInternalLoadURL(const PRUnichar *aURLSpec, + nsLoadFlags aType, + nsISupports * aHistoryState, + const PRUnichar* aReferrer) = 0; // // History api's // diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 3d5b4c17f87..d3e25f91953 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -252,6 +252,10 @@ public: const PRUnichar* aReferrer=nsnull, const char * aWindowTarget = nsnull); + NS_IMETHOD SessionHistoryInternalLoadURL(const PRUnichar *aURLSpec, + nsLoadFlags aType, nsISupports * aHistoryState, const PRUnichar* aReferrer); + + NS_IMETHOD GetCanGoBack(PRBool* aCanGoBack); NS_IMETHOD GetCanGoForward(PRBool* aCanGoForward); NS_IMETHOD GoBack(); @@ -1812,6 +1816,12 @@ NS_IMETHODIMP nsWebShell::Stop(void) //---------------------------------------- +NS_IMETHODIMP nsWebShell::SessionHistoryInternalLoadURL(const PRUnichar *aURLSpec, + nsLoadFlags aType, nsISupports * aHistoryState, const PRUnichar* aReferrer) +{ + return LoadURL(aURLSpec, nsnull, PR_FALSE, aType, 0, aHistoryState, aReferrer); +} + // History methods NS_IMETHODIMP