Make pipnss's version of nsSecureBrowserUIImpl support weak refs, as was already done to psm-glue. r=thayes.

This commit is contained in:
bryner%uiuc.edu 2001-02-01 03:25:48 +00:00
Родитель db74b1ba8a
Коммит 3505933119
2 изменённых файлов: 7 добавлений и 11 удалений

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

@ -27,6 +27,7 @@
#include "nspr.h"
#include "prlog.h"
#include "prmem.h"
#include "nsISecureBrowserUI.h"
#include "nsSecureBrowserUIImpl.h"
@ -34,7 +35,6 @@
#include "nsCOMPtr.h"
#include "nsIInterfaceRequestor.h"
#include "nsIServiceManager.h"
#include "nsIScriptGlobalObject.h"
#include "nsIObserverService.h"
#include "nsIDocumentLoader.h"
@ -51,17 +51,10 @@
#include "nsIWebProgress.h"
#include "nsIChannel.h"
#include "nsIChannelSecurityInfo.h"
#include "nsIURI.h"
#include "prmem.h"
#include "nsISecurityEventSink.h"
#include "nsINetSupportDialogService.h"
#include "nsIPrompt.h"
#include "nsIPref.h"
#include "nsIFormSubmitObserver.h"
static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
@ -104,11 +97,12 @@ nsSecureBrowserUIImpl::~nsSecureBrowserUIImpl()
{
}
NS_IMPL_ISUPPORTS4(nsSecureBrowserUIImpl,
NS_IMPL_ISUPPORTS5(nsSecureBrowserUIImpl,
nsSecureBrowserUI,
nsIWebProgressListener,
nsIFormSubmitObserver,
nsIObserver);
nsIObserver,
nsISupportsWeakReference);
NS_IMETHODIMP

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

@ -41,6 +41,7 @@
#include "nsIFormSubmitObserver.h"
#include "nsIURI.h"
#include "nsISecurityEventSink.h"
#include "nsWeakReference.h"
#define NS_SECURE_BROWSER_DOCOBSERVER_CLASSNAME "Mozilla Secure Browser Doc Observer"
@ -54,7 +55,8 @@
class nsSecureBrowserUIImpl : public nsSecureBrowserUI,
public nsIWebProgressListener,
public nsIFormSubmitObserver,
public nsIObserver
public nsIObserver,
public nsSupportsWeakReference
{
public: