diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-10-13 03:33:48 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-10-13 03:33:48 +0800 |
commit | 5f02d1125ef8c08ebd3d145565b6f054084f2658 (patch) | |
tree | cefc5495f05835cb37a983cebc715769e4c86158 /embed/mozilla/EphyRedirectChannel.h | |
parent | fefc4bfb69cb7a69c87328c132ed8f38142b6a74 (diff) | |
download | gsoc2013-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/EphyRedirectChannel.h')
-rw-r--r-- | embed/mozilla/EphyRedirectChannel.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/embed/mozilla/EphyRedirectChannel.h b/embed/mozilla/EphyRedirectChannel.h new file mode 100644 index 000000000..e5c378d0b --- /dev/null +++ b/embed/mozilla/EphyRedirectChannel.h @@ -0,0 +1,50 @@ +/* + * 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_REDIRECT_CHANNEL_H +#define EPHY_REDIRECT_CHANNEL_H + +#include <nsCOMPtr.h> +#include <nsIChannel.h> + +class EphyWrappedChannel : public nsIChannel +{ + public: + NS_DECL_ISUPPORTS + NS_FORWARD_NSIREQUEST (mChannel->) + NS_FORWARD_NSICHANNEL (mChannel->) + + EphyWrappedChannel (nsIChannel *aChannel) : mChannel (aChannel) { } + virtual ~EphyWrappedChannel () { } + + protected: + nsCOMPtr<nsIChannel> mChannel; +}; + +class EphyRedirectChannel : public EphyWrappedChannel +{ + public: + EphyRedirectChannel (nsIChannel *aChannel) : EphyWrappedChannel (aChannel) { } + virtual ~EphyRedirectChannel () { } + + NS_IMETHOD SetLoadFlags (nsLoadFlags aFlags); +}; + +#endif /* !EPHY_REDIRECT_CHANNEL_H */ |