diff options
Diffstat (limited to 'embed/mozilla/FtpProtocolHandler.cpp')
-rw-r--r-- | embed/mozilla/FtpProtocolHandler.cpp | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/embed/mozilla/FtpProtocolHandler.cpp b/embed/mozilla/FtpProtocolHandler.cpp index a9b299095..267bf695b 100644 --- a/embed/mozilla/FtpProtocolHandler.cpp +++ b/embed/mozilla/FtpProtocolHandler.cpp @@ -16,43 +16,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "nsIFactory.h" -#include "nsXPComFactory.h" - -#include "BaseProtocolContentHandler.h" - -class GFtpProtocolHandler : public GBaseProtocolContentHandler -{ - public: - NS_DECL_ISUPPORTS - GFtpProtocolHandler() : GBaseProtocolContentHandler("ftp") - {NS_INIT_ISUPPORTS();}; - virtual ~GFtpProtocolHandler() {}; - /* additional members */ -}; +#include "FtpProtocolHandler.h" /* Implementation file */ NS_IMPL_ISUPPORTS2 (GFtpProtocolHandler, nsIProtocolHandler, nsIContentHandler) -NS_DEF_FACTORY (GFtpProtocolHandler, GFtpProtocolHandler); - -/** - * NS_NewFtpHandlerFactory: - */ -nsresult NS_NewFtpHandlerFactory(nsIFactory** aFactory) -{ - NS_ENSURE_ARG_POINTER(aFactory); - *aFactory = nsnull; - - nsGFtpProtocolHandlerFactory *result = - new nsGFtpProtocolHandlerFactory; - if (result == NULL) - { - return NS_ERROR_OUT_OF_MEMORY; - } - - NS_ADDREF(result); - *aFactory = result; - - return NS_OK; -} |