aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyAboutModule.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-10-13 03:33:48 +0800
committerChristian Persch <chpe@src.gnome.org>2005-10-13 03:33:48 +0800
commit5f02d1125ef8c08ebd3d145565b6f054084f2658 (patch)
treecefc5495f05835cb37a983cebc715769e4c86158 /embed/mozilla/EphyAboutModule.h
parentfefc4bfb69cb7a69c87328c132ed8f38142b6a74 (diff)
downloadgsoc2013-epiphany-5f02d1125ef8c08ebd3d145565b6f054084f2658.tar
gsoc2013-epiphany-5f02d1125ef8c08ebd3d145565b6f054084f2658.tar.gz
gsoc2013-epiphany-5f02d1125ef8c08ebd3d145565b6f054084f2658.tar.bz2
gsoc2013-epiphany-5f02d1125ef8c08ebd3d145565b6f054084f2658.tar.lz
gsoc2013-epiphany-5f02d1125ef8c08ebd3d145565b6f054084f2658.tar.xz
gsoc2013-epiphany-5f02d1125ef8c08ebd3d145565b6f054084f2658.tar.zst
gsoc2013-epiphany-5f02d1125ef8c08ebd3d145565b6f054084f2658.zip
A embed/mozilla/EphyRedirectChannel.cpp: A
2005-10-12 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyAboutModule.cpp: * embed/mozilla/EphyAboutModule.h: A embed/mozilla/EphyRedirectChannel.cpp: A embed/mozilla/EphyRedirectChannel.h: * embed/mozilla/Makefile.am: Implement about:recover. Build the about module on all geckos, and only #ifdef the about:neterror implementation for gecko 1.8. * src/ephy-session.c: (tab_added_cb), (impl_attach_window), (ephy_session_autoresume), (write_tab), (ephy_session_save), (parse_embed), (ephy_session_load): Record the page load status and page title in the session file, and use about:recover when the page was still loading when the browser crashed. 2005-10-10 Christian Persch <chpe@cvs.gnome.org>
Diffstat (limited to 'embed/mozilla/EphyAboutModule.h')
-rw-r--r--embed/mozilla/EphyAboutModule.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/embed/mozilla/EphyAboutModule.h b/embed/mozilla/EphyAboutModule.h
index 7b9f2f0e9..d829d9b0b 100644
--- a/embed/mozilla/EphyAboutModule.h
+++ b/embed/mozilla/EphyAboutModule.h
@@ -31,13 +31,19 @@
{ 0xa9aea13e, 0x21de, 0x4be8, \
{ 0xa0, 0x7e, 0xa0, 0x5f, 0x11, 0x65, 0x8c, 0x55 } }
+#ifdef HAVE_GECKO_1_8
#define EPHY_ABOUT_NETERROR_CONTRACTID NS_ABOUT_MODULE_CONTRACTID_PREFIX "neterror"
#define EPHY_ABOUT_NETERROR_CLASSNAME "Epiphany about:neterror module"
+#endif
+
#define EPHY_ABOUT_EPIPHANY_CONTRACTID NS_ABOUT_MODULE_CONTRACTID_PREFIX "epiphany"
#define EPHY_ABOUT_EPIPHANY_CLASSNAME "Epiphany about:epiphany module"
+#define EPHY_ABOUT_RECOVER_CONTRACTID NS_ABOUT_MODULE_CONTRACTID_PREFIX "recover"
+#define EPHY_ABOUT_RECOVER_CLASSNAME "Epiphany about:recover module"
class nsIChannel;
class nsIOutputStream;
+class nsIInputStreamChannel;
class nsIURI;
class EphyAboutModule : public nsIAboutModule
@@ -51,9 +57,13 @@ class EphyAboutModule : public nsIAboutModule
private:
nsresult Redirect(const nsACString&, nsIChannel**);
- nsresult ParseErrorURL(const char*, nsACString&, nsACString&, nsACString&, nsACString&);
+ nsresult ParseURL(const char*, nsACString&, nsACString&, nsACString&, nsACString&, nsACString&);
+#ifdef HAVE_GECKO_1_8
nsresult GetErrorMessage(nsIURI*, const char*, char**, char**, char**, char**);
nsresult CreateErrorPage(nsIURI*, nsIChannel**);
+#endif
+ nsresult CreateRecoverPage(nsIURI*, nsIChannel**);
+ nsresult WritePage(nsIURI*, nsIURI*, const nsACString&, const char*, const char*, const char*, const char*, const char*, const char*, nsIInputStreamChannel**);
nsresult Write(nsIOutputStream*, const char*);
};