aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozRegisterComponents.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-07-07 03:58:26 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-07-07 03:58:26 +0800
commita93b312b628d02a1366d46380cef5a4aee51aac1 (patch)
tree7b0b8402b3b14b4943d319b341fcedfbf63048e8 /embed/mozilla/MozRegisterComponents.cpp
parentf4199d79aabc830a6747ff8237ce9766002da0ae (diff)
downloadgsoc2013-epiphany-a93b312b628d02a1366d46380cef5a4aee51aac1.tar
gsoc2013-epiphany-a93b312b628d02a1366d46380cef5a4aee51aac1.tar.gz
gsoc2013-epiphany-a93b312b628d02a1366d46380cef5a4aee51aac1.tar.bz2
gsoc2013-epiphany-a93b312b628d02a1366d46380cef5a4aee51aac1.tar.lz
gsoc2013-epiphany-a93b312b628d02a1366d46380cef5a4aee51aac1.tar.xz
gsoc2013-epiphany-a93b312b628d02a1366d46380cef5a4aee51aac1.tar.zst
gsoc2013-epiphany-a93b312b628d02a1366d46380cef5a4aee51aac1.zip
Merge external protocols in one file (implementation is just one macro).
2003-07-06 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/ExternalProtocolHandlers.cpp: * embed/mozilla/ExternalProtocolHandlers.h: * embed/mozilla/FtpProtocolHandler.cpp: * embed/mozilla/FtpProtocolHandler.h: * embed/mozilla/IRCProtocolHandler.cpp: * embed/mozilla/IRCProtocolHandler.h: * embed/mozilla/MailtoProtocolHandler.cpp: * embed/mozilla/MailtoProtocolHandler.h: * embed/mozilla/Makefile.am: * embed/mozilla/MozRegisterComponents.cpp: Merge external protocols in one file (implementation is just one macro). Add a news:// handler.
Diffstat (limited to 'embed/mozilla/MozRegisterComponents.cpp')
-rw-r--r--embed/mozilla/MozRegisterComponents.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/embed/mozilla/MozRegisterComponents.cpp b/embed/mozilla/MozRegisterComponents.cpp
index 5a6c660c5..d6e79f697 100644
--- a/embed/mozilla/MozRegisterComponents.cpp
+++ b/embed/mozilla/MozRegisterComponents.cpp
@@ -22,10 +22,8 @@
#include "ContentHandler.h"
#include "FilePicker.h"
-#include "FtpProtocolHandler.h"
#include "GlobalHistory.h"
-#include "IRCProtocolHandler.h"
-#include "MailtoProtocolHandler.h"
+#include "ExternalProtocolHandlers.h"
#include "PrintingPromptService.h"
#include "ProgressListener.h"
#include "ExternalProtocolService.h"
@@ -46,6 +44,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(MozGlobalHistory)
NS_GENERIC_FACTORY_CONSTRUCTOR(GPrintingPromptService)
NS_GENERIC_FACTORY_CONSTRUCTOR(GIRCProtocolHandler)
NS_GENERIC_FACTORY_CONSTRUCTOR(GFtpProtocolHandler)
+NS_GENERIC_FACTORY_CONSTRUCTOR(GNewsProtocolHandler)
NS_GENERIC_FACTORY_CONSTRUCTOR(GExternalProtocolService)
static const nsModuleComponentInfo sAppComps[] = {
@@ -104,6 +103,18 @@ static const nsModuleComponentInfo sAppComps[] = {
GIRCProtocolHandlerConstructor
},
{
+ G_NEWS_PROTOCOL_CLASSNAME,
+ G_NEWS_PROTOCOL_CID,
+ G_NEWS_PROTOCOL_CONTRACTID,
+ GNewsProtocolHandlerConstructor
+ },
+ {
+ G_NEWS_CONTENT_CLASSNAME,
+ G_NEWS_PROTOCOL_CID,
+ G_NEWS_CONTENT_CONTRACTID,
+ GNewsProtocolHandlerConstructor
+ },
+ {
G_FTP_CONTENT_CLASSNAME,
G_FTP_PROTOCOL_CID,
G_FTP_CONTENT_CONTRACTID,