Bug 1401379 - Part 7: Make nsBrowserStatusFilter cycle collected, r=smaug

MozReview-Commit-ID: AsyFAgKJkxq
This commit is contained in:
Nika Layzell 2017-10-03 15:25:18 -04:00
parent c2a989268d
commit 76606ba919
2 changed files with 17 additions and 6 deletions

View File

@ -42,11 +42,20 @@ nsBrowserStatusFilter::~nsBrowserStatusFilter()
// nsBrowserStatusFilter::nsISupports
//-----------------------------------------------------------------------------
NS_IMPL_ISUPPORTS(nsBrowserStatusFilter,
nsIWebProgress,
nsIWebProgressListener,
nsIWebProgressListener2,
nsISupportsWeakReference)
NS_IMPL_CYCLE_COLLECTION(nsBrowserStatusFilter,
mListener,
mTarget)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsBrowserStatusFilter)
NS_INTERFACE_MAP_ENTRY(nsIWebProgress)
NS_INTERFACE_MAP_ENTRY(nsIWebProgressListener)
NS_INTERFACE_MAP_ENTRY(nsIWebProgressListener2)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIWebProgress)
NS_INTERFACE_MAP_END
NS_IMPL_CYCLE_COLLECTING_ADDREF(nsBrowserStatusFilter)
NS_IMPL_CYCLE_COLLECTING_RELEASE(nsBrowserStatusFilter)
//-----------------------------------------------------------------------------
// nsBrowserStatusFilter::nsIWebProgress

View File

@ -9,6 +9,7 @@
#include "nsIWebProgressListener2.h"
#include "nsIWebProgress.h"
#include "nsWeakReference.h"
#include "nsCycleCollectionParticipant.h"
#include "nsITimer.h"
#include "nsCOMPtr.h"
#include "nsString.h"
@ -26,7 +27,8 @@ class nsBrowserStatusFilter : public nsIWebProgress
public:
nsBrowserStatusFilter();
NS_DECL_ISUPPORTS
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(nsBrowserStatusFilter, nsIWebProgress)
NS_DECL_NSIWEBPROGRESS
NS_DECL_NSIWEBPROGRESSLISTENER
NS_DECL_NSIWEBPROGRESSLISTENER2