aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyAboutModule.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-18 00:06:04 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-18 00:06:04 +0800
commit056e78ca2904f2a8f7eaa200098f36f0029c4425 (patch)
treef470b02bc5cd83049fee08d65b6f5f37e13bd344 /embed/mozilla/EphyAboutModule.h
parent23c1956430766dd72294ca2ca5f79e199ad7ed3b (diff)
downloadgsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar.gz
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar.bz2
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar.lz
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar.xz
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar.zst
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.zip
A embed/mozilla/EphyAboutModule.cpp: A embed/mozilla/EphyAboutModule.h: R
2005-07-17 Christian Persch <chpe@cvs.gnome.org> A embed/mozilla/EphyAboutModule.cpp: A embed/mozilla/EphyAboutModule.h: R embed/mozilla/EphyProtocolHandler.cpp: R embed/mozilla/EphyProtocolHandler.h: * embed/mozilla/Makefile.am: * embed/mozilla/MozRegisterComponents.cpp: * po/POTFILES.in: Yet another mozilla API change. * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_get_smart_bookmark_width): Remove stray g_print, and clamp entry width to sane values.
Diffstat (limited to 'embed/mozilla/EphyAboutModule.h')
-rw-r--r--embed/mozilla/EphyAboutModule.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/embed/mozilla/EphyAboutModule.h b/embed/mozilla/EphyAboutModule.h
new file mode 100644
index 000000000..7b9f2f0e9
--- /dev/null
+++ b/embed/mozilla/EphyAboutModule.h
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2001 Matt Aubury, Philip Langdale
+ * Copyright (C) 2004 Crispin Flowerday
+ * Copyright (C) 2005 Christian Persch
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
+ */
+
+#ifndef EPHY_PROTOCOL_HANDLER_H
+#define EPHY_PROTOCOL_HANDLER_H
+
+#include <nsError.h>
+#include <nsIAboutModule.h>
+
+/* a9aea13e-21de-4be8-a07e-a05f11658c55 */
+#define EPHY_ABOUT_MODULE_CID \
+{ 0xa9aea13e, 0x21de, 0x4be8, \
+ { 0xa0, 0x7e, 0xa0, 0x5f, 0x11, 0x65, 0x8c, 0x55 } }
+
+#define EPHY_ABOUT_NETERROR_CONTRACTID NS_ABOUT_MODULE_CONTRACTID_PREFIX "neterror"
+#define EPHY_ABOUT_NETERROR_CLASSNAME "Epiphany about:neterror module"
+#define EPHY_ABOUT_EPIPHANY_CONTRACTID NS_ABOUT_MODULE_CONTRACTID_PREFIX "epiphany"
+#define EPHY_ABOUT_EPIPHANY_CLASSNAME "Epiphany about:epiphany module"
+
+class nsIChannel;
+class nsIOutputStream;
+class nsIURI;
+
+class EphyAboutModule : public nsIAboutModule
+{
+ public:
+ NS_DECL_ISUPPORTS
+ NS_DECL_NSIABOUTMODULE
+
+ EphyAboutModule();
+ virtual ~EphyAboutModule();
+
+ private:
+ nsresult Redirect(const nsACString&, nsIChannel**);
+ nsresult ParseErrorURL(const char*, nsACString&, nsACString&, nsACString&, nsACString&);
+ nsresult GetErrorMessage(nsIURI*, const char*, char**, char**, char**, char**);
+ nsresult CreateErrorPage(nsIURI*, nsIChannel**);
+ nsresult Write(nsIOutputStream*, const char*);
+};
+
+#endif /* EPHY_PROTOCOL_HANDLER_H */