From c951555722d4933277a1d468c6508f5ad34711b1 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 25 May 2005 22:08:01 +0000 Subject: Add protocol handler, which I'll use for our custom error pages. Since 2005-05-26 Christian Persch * embed/mozilla/ContentHandler.cpp: * embed/mozilla/EphyProtocolHandler.cpp: * embed/mozilla/EphyProtocolHandler.h: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EphyUtils.h: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/Makefile.am: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozRegisterComponents.cpp: Add protocol handler, which I'll use for our custom error pages. Since it's almost gratis, add about:epiphany back. --- embed/mozilla/MozRegisterComponents.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'embed/mozilla/MozRegisterComponents.cpp') diff --git a/embed/mozilla/MozRegisterComponents.cpp b/embed/mozilla/MozRegisterComponents.cpp index d6f83da95..f52226616 100644 --- a/embed/mozilla/MozRegisterComponents.cpp +++ b/embed/mozilla/MozRegisterComponents.cpp @@ -42,6 +42,10 @@ #include #endif +#ifdef HAVE_GECKO_1_8 +#include "EphyProtocolHandler.h" +#endif + #include #include #include @@ -71,6 +75,10 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(GtkNSSKeyPairDialogs) NS_GENERIC_FACTORY_CONSTRUCTOR(GtkNSSSecurityWarningDialogs) #endif +#ifdef HAVE_GECKO_1_8 +NS_GENERIC_FACTORY_CONSTRUCTOR(EphyProtocolHandler) +#endif + /* class information */ NS_DECL_CLASSINFO(EphySidebar) @@ -197,6 +205,20 @@ static const nsModuleComponentInfo sAppComps[] = { &NS_CLASSINFO_NAME(EphySidebar), nsIClassInfo::DOM_OBJECT }, +#ifdef HAVE_GECKO_1_8 +{ + EPHY_ABOUT_CLASSNAME, + EPHY_PROTOCOL_HANDLER_CID, + EPHY_ABOUT_CONTRACTID, + EphyProtocolHandlerConstructor +}, +{ + EPHY_PROTOCOL_HANDLER_CLASSNAME, + EPHY_PROTOCOL_HANDLER_CID, + EPHY_PROTOCOL_HANDLER_CONTRACTID, + EphyProtocolHandlerConstructor +}, +#endif }; #if defined(HAVE_MOZILLA_PSM) && !defined(HAVE_GECKO_1_8) -- cgit v1.2.3