Removed references to the old session history code. Replace setNetworkActive and setWindowActive by just passing up the status in the new onStatusChange method. onLocationChange now fires at the right time. BrowserInstance now implements nsIWebProgressListener. The class is now completely named nsBrowserInstance with out that ugly #define to convert nsBrowserAppCore. Reorganized much of the file to be in the order it is in it's declaration.

This commit is contained in:
tbogard%aol.net 2000-04-16 11:19:18 +00:00
Родитель 3601d309e9
Коммит 61b4c6f8bb
2 изменённых файлов: 1046 добавлений и 1376 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -22,27 +22,29 @@
#ifndef nsBrowserInstance_h___ #ifndef nsBrowserInstance_h___
#define nsBrowserInstance_h___ #define nsBrowserInstance_h___
// Helper Classes
#include "nsCOMPtr.h"
#include "nsWeakReference.h"
// Interfaces Needed
#include "nsIBrowserInstance.h" #include "nsIBrowserInstance.h"
#include "nsIURIContentListener.h"
#include "nsIDocumentLoaderObserver.h"
#include "nsIAppShellComponentImpl.h" #include "nsIAppShellComponentImpl.h"
#include "nscore.h" #include "nscore.h"
#include "nsCOMPtr.h"
#include "nsWeakReference.h"
#include "nsString.h" #include "nsString.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "nsIStreamObserver.h" #include "nsIStreamObserver.h"
#include "nsIDocumentLoaderObserver.h"
#include "nsIObserver.h" #include "nsIObserver.h"
#include "nsISessionHistory.h"
#include "nsIURIContentListener.h"
#include "nsICmdLineHandler.h" #include "nsICmdLineHandler.h"
#include "nsIXULBrowserWindow.h" #include "nsIXULBrowserWindow.h"
#include "nsIWebProgressListener.h"
#ifdef DEBUG_radha #include "nsIWebShell.h"
#include "nsISHistory.h"
#endif
class nsIDocShell; class nsIDocShell;
class nsIScriptContext; class nsIScriptContext;
@ -61,9 +63,10 @@ class nsIFindComponent;
class nsBrowserInstance : public nsIBrowserInstance, class nsBrowserInstance : public nsIBrowserInstance,
public nsIDocumentLoaderObserver, public nsIDocumentLoaderObserver,
public nsISessionHistory,
public nsIURIContentListener, public nsIURIContentListener,
public nsSupportsWeakReference { public nsIWebProgressListener,
public nsSupportsWeakReference
{
public: public:
nsBrowserInstance(); nsBrowserInstance();
@ -78,11 +81,11 @@ class nsBrowserInstance : public nsIBrowserInstance,
// nsIDocumentLoaderObserver // nsIDocumentLoaderObserver
NS_DECL_NSIDOCUMENTLOADEROBSERVER NS_DECL_NSIDOCUMENTLOADEROBSERVER
// nsISessionHistory
NS_DECL_NSISESSIONHISTORY
// URI Content listener // URI Content listener
NS_DECL_NSIURICONTENTLISTENER NS_DECL_NSIURICONTENTLISTENER
NS_DECL_NSIWEBPROGRESSLISTENER
protected: protected:
nsresult InitializeSearch(nsIFindComponent*); nsresult InitializeSearch(nsIFindComponent*);
NS_IMETHOD CreateMenuItem(nsIDOMNode * , PRInt32,const PRUnichar * ); NS_IMETHOD CreateMenuItem(nsIDOMNode * , PRInt32,const PRUnichar * );
@ -103,17 +106,11 @@ class nsBrowserInstance : public nsIBrowserInstance,
nsIWebShellWindow *mWebShellWin; // weak reference nsIWebShellWindow *mWebShellWin; // weak reference
nsIDocShell * mDocShell; // weak reference nsIDocShell * mDocShell; // weak reference
nsIDOMWindow* mDOMWindow; // weak reference nsIDOMWindow* mDOMWindow; // weak reference
nsIWebShell * mContentAreaWebShell; // weak reference nsIDocShell * mContentAreaDocShell; // weak reference
nsIDocumentLoader * mContentAreaDocLoader; // weak reference nsIDocumentLoader * mContentAreaDocLoader; // weak reference
nsISessionHistory* mSHistory; // this is a service
nsCOMPtr<nsISupports> mSearchContext; // at last, something we really own nsCOMPtr<nsISupports> mSearchContext; // at last, something we really own
nsInstanceCounter mInstanceCounter; nsInstanceCounter mInstanceCounter;
#ifdef DEBUG_radha
nsISHistory * mNewSHistory;
#endif /* DEBUG_radha */
PRBool mIsLoadingHistory;
#ifdef DEBUG_warren #ifdef DEBUG_warren
PRIntervalTime mLoadStartTime; PRIntervalTime mLoadStartTime;
#endif #endif