From 2c36f54e776f6663002aef8875ee9d8d7a37666e Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Sun, 28 May 2000 09:25:55 +0000 Subject: [PATCH] Adding support for weak references on docshells. git-svn-id: svn://10.0.0.236/trunk@71024 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 1 + mozilla/docshell/base/nsDocShell.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 30d2a53cbe9..da3f7611fe4 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -137,6 +137,7 @@ NS_INTERFACE_MAP_BEGIN(nsDocShell) NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor) NS_INTERFACE_MAP_ENTRY(nsIScriptGlobalObjectOwner) NS_INTERFACE_MAP_ENTRY(nsIRefreshURI) + NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference) NS_INTERFACE_MAP_END_THREADSAFE ///***************************************************************************** diff --git a/mozilla/docshell/base/nsDocShell.h b/mozilla/docshell/base/nsDocShell.h index fa2dd6a961d..cab2e1c71b1 100644 --- a/mozilla/docshell/base/nsDocShell.h +++ b/mozilla/docshell/base/nsDocShell.h @@ -41,8 +41,7 @@ #include "nsIDocumentLoader.h" #include "nsIDocumentLoaderObserver.h" - - +#include "nsWeakReference.h" // Local Includes #include "nsDSURIContentListener.h" @@ -121,7 +120,8 @@ class nsDocShell : public nsIDocShell, public nsIContentViewerContainer, public nsIInterfaceRequestor, public nsIScriptGlobalObjectOwner, - public nsIRefreshURI + public nsIRefreshURI, + public nsSupportsWeakReference { friend class nsDSURIContentListener; friend class nsDSWebProgressListener;