From 9277088086437d210e84ea23213408f6858885ae Mon Sep 17 00:00:00 2001 From: "radha%netscape.com" Date: Tue, 6 Apr 1999 21:00:26 +0000 Subject: [PATCH] Webshell implements the new nsIDocumentLoaderObserver --- webshell/public/nsIDocumentLoaderObserver.h | 4 -- webshell/public/nsIWebShell.h | 59 +++++++++++---------- 2 files changed, 30 insertions(+), 33 deletions(-) diff --git a/webshell/public/nsIDocumentLoaderObserver.h b/webshell/public/nsIDocumentLoaderObserver.h index 19674af4e4c..f020c946b60 100644 --- a/webshell/public/nsIDocumentLoaderObserver.h +++ b/webshell/public/nsIDocumentLoaderObserver.h @@ -78,10 +78,6 @@ public: */ NS_IMETHOD OnEndURLLoad(nsIURL* aURL, PRInt32 aStatus) = 0; - /** - * Notify the observer that all connections are complete - */ - NS_IMETHOD OnConnectionsComplete() = 0; }; diff --git a/webshell/public/nsIWebShell.h b/webshell/public/nsIWebShell.h index 09e050d7664..0d089f4935d 100644 --- a/webshell/public/nsIWebShell.h +++ b/webshell/public/nsIWebShell.h @@ -30,10 +30,10 @@ class nsIFactory; class nsIPostData; class nsIStreamObserver; class nsIDocumentLoader; +class nsIDocumentLoaderObserver; class nsIWebShell; class nsIWebShellContainer; class nsIPref; -class nsIURLListener; // Interface ID for nsIWebShell #define NS_IWEB_SHELL_IID \ @@ -62,24 +62,24 @@ public: static const nsIID& GetIID() { static nsIID iid = NS_IWEB_SHELL_CONTAINER_IID; return iid; } // History control - NS_IMETHOD WillLoadURL(nsIWebShell* aShell, + NS_IMETHOD WillLoadURL(nsIWebShell* aShell, + const PRUnichar* aURL, + nsLoadType aReason) = 0; + + NS_IMETHOD BeginLoadURL(nsIWebShell* aShell, + const PRUnichar* aURL) = 0; + + + NS_IMETHOD ProgressLoadURL(nsIWebShell* aShell, + const PRUnichar* aURL, + PRInt32 aProgress, + PRInt32 aProgressMax) = 0; + + NS_IMETHOD EndLoadURL(nsIWebShell* aShell, const PRUnichar* aURL, - nsLoadType aReason) = 0; - - NS_IMETHOD BeginLoadURL(nsIWebShell* aShell, - const PRUnichar* aURL) = 0; - - // XXX not yet implemented; should we? - NS_IMETHOD ProgressLoadURL(nsIWebShell* aShell, - const PRUnichar* aURL, - PRInt32 aProgress, - PRInt32 aProgressMax) = 0; - - NS_IMETHOD EndLoadURL(nsIWebShell* aShell, - const PRUnichar* aURL, - PRInt32 aStatus) = 0; - - //instances + PRInt32 aStatus) = 0; + + //instances // XXX kipp sez: I don't think that this method should be a part of // this interface. @@ -180,24 +180,14 @@ public: */ NS_IMETHOD SetContainer(nsIWebShellContainer* aContainer) = 0; - /** - * Set the nsIURLListener for the WebShell. - */ - NS_IMETHOD SetURLListener(nsIURLListener* anUrlListener) = 0; - /** * Return the current nsIWebShellContainer. */ NS_IMETHOD GetContainer(nsIWebShellContainer*& aResult) = 0; - /** - * Return the current nsIURLListener. - */ - NS_IMETHOD GetURLListener(nsIURLListener*& aResult) = 0; - /** * Set the nsIStreamObserver which receives all notifications from URLs - * loaded by the document. + * in the old fashion. */ NS_IMETHOD SetObserver(nsIStreamObserver* anObserver) = 0; @@ -206,6 +196,17 @@ public: */ NS_IMETHOD GetObserver(nsIStreamObserver*& aResult) = 0; + /** + * Set the DocLoaderObserver which receives all notifications from URLs + * loaded by the document. + */ + NS_IMETHOD SetDocLoaderObserver(nsIDocumentLoaderObserver* anObserver) = 0; + + /** + * Return the current nsIDocLoadeObserver + */ + NS_IMETHOD GetDocLoaderObserver(nsIDocumentLoaderObserver*& aResult) = 0; + /** * Set the nsIPref used to get/set preference values... */