Bug 421202 nsHTTPIndex should be cycle collected r=sayrer a=dsicore

This commit is contained in:
neil@parkwaycc.co.uk 2008-03-08 07:47:34 -08:00
Родитель 69cd4c78dc
Коммит 1172034297
2 изменённых файлов: 17 добавлений и 9 удалений

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

@ -115,14 +115,20 @@ static const char kGopherProtocol[] = "gopher://";
//
#ifdef MOZ_RDF
NS_IMPL_THREADSAFE_ISUPPORTS7(nsHTTPIndex,
nsIHTTPIndex,
nsIRDFDataSource,
nsIStreamListener,
nsIDirIndexListener,
nsIRequestObserver,
nsIInterfaceRequestor,
nsIFTPEventSink)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsHTTPIndex)
NS_INTERFACE_MAP_ENTRY(nsIHTTPIndex)
NS_INTERFACE_MAP_ENTRY(nsIRDFDataSource)
NS_INTERFACE_MAP_ENTRY(nsIStreamListener)
NS_INTERFACE_MAP_ENTRY(nsIDirIndexListener)
NS_INTERFACE_MAP_ENTRY(nsIRequestObserver)
NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor)
NS_INTERFACE_MAP_ENTRY(nsIFTPEventSink)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIHTTPIndex)
NS_INTERFACE_MAP_END
NS_IMPL_CYCLE_COLLECTION_1(nsHTTPIndex, mInner)
NS_IMPL_CYCLE_COLLECTING_ADDREF_AMBIGUOUS(nsHTTPIndex, nsIHttpIndex)
NS_IMPL_CYCLE_COLLECTING_RELEASE_AMBIGUOUS(nsHTTPIndex, nsIHttpIndex)
NS_IMETHODIMP
nsHTTPIndex::GetInterface(const nsIID &anIID, void **aResult )

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

@ -55,6 +55,7 @@
#include "nsXPIDLString.h"
#include "nsIDirIndexListener.h"
#include "nsIFTPChannel.h"
#include "nsCycleCollectionParticipant.h"
class nsDirectoryViewerFactory : public nsIDocumentLoaderFactory
{
@ -145,7 +146,8 @@ public:
NS_DECL_NSIFTPEVENTSINK
// nsISupports interface
NS_DECL_ISUPPORTS
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(nsHTTPIndex, nsIHTTPIndex)
};
#endif