aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/GlobalHistory.cpp
diff options
context:
space:
mode:
authorJean-François Rameau <jframeau@cvs.gnome.org>2006-03-03 21:57:27 +0800
committerJean-François Rameau <jframeau@src.gnome.org>2006-03-03 21:57:27 +0800
commit7bb807425a00d571949c378e8bdf2edcf6ecb40a (patch)
tree9e2b7686dc572e6d96fe2648c76057da609217af /embed/mozilla/GlobalHistory.cpp
parent846c58ecb9f38d453a898749a0eb8e82b27c51bd (diff)
downloadgsoc2013-epiphany-7bb807425a00d571949c378e8bdf2edcf6ecb40a.tar
gsoc2013-epiphany-7bb807425a00d571949c378e8bdf2edcf6ecb40a.tar.gz
gsoc2013-epiphany-7bb807425a00d571949c378e8bdf2edcf6ecb40a.tar.bz2
gsoc2013-epiphany-7bb807425a00d571949c378e8bdf2edcf6ecb40a.tar.lz
gsoc2013-epiphany-7bb807425a00d571949c378e8bdf2edcf6ecb40a.tar.xz
gsoc2013-epiphany-7bb807425a00d571949c378e8bdf2edcf6ecb40a.tar.zst
gsoc2013-epiphany-7bb807425a00d571949c378e8bdf2edcf6ecb40a.zip
Sync Epiphany with new nsIGlobalHistory3 stuff.
2006-03-03 Jean-François Rameau <jframeau@cvs.gnome.org> * configure.ac: * embed/mozilla/GlobalHistory.h: * embed/mozilla/GlobalHistory.cpp: Sync Epiphany with new nsIGlobalHistory3 stuff. * embed/mozilla/EphyContentPolicy.cpp: (GetEmbedFromContext): Fix a missing return.
Diffstat (limited to 'embed/mozilla/GlobalHistory.cpp')
-rw-r--r--embed/mozilla/GlobalHistory.cpp25
1 files changed, 22 insertions, 3 deletions
diff --git a/embed/mozilla/GlobalHistory.cpp b/embed/mozilla/GlobalHistory.cpp
index 841fdf031..257f55506 100644
--- a/embed/mozilla/GlobalHistory.cpp
+++ b/embed/mozilla/GlobalHistory.cpp
@@ -35,7 +35,11 @@
#define MAX_TITLE_LENGTH 2048
#define MAX_URL_LENGTH 16384
-NS_IMPL_ISUPPORTS1 (MozGlobalHistory, nsIGlobalHistory2)
+#ifdef HAVE_NSIGLOBALHISTORY3_H
+NS_IMPL_ISUPPORTS2 (MozGlobalHistory, nsIGlobalHistory2, nsIGlobalHistory3)
+#else
+NS_IMPL_ISUPPORTS2 (MozGlobalHistory, nsIGlobalHistory2)
+#endif /* HAVE_NSIGLOBALHISTORY3_H */
MozGlobalHistory::MozGlobalHistory ()
{
@@ -156,7 +160,7 @@ NS_IMETHODIMP MozGlobalHistory::SetPageTitle(nsIURI *aURI,
return NS_OK;
}
-#ifdef HAVE_GECKO_1_9
+#ifdef HAVE_NSIGLOBALHISTORY3_H
/* unsigned long getURIGeckoFlags(in nsIURI aURI); */
NS_IMETHODIMP
MozGlobalHistory::GetURIGeckoFlags(nsIURI *aURI,
@@ -209,4 +213,19 @@ MozGlobalHistory::SetURIGeckoFlags(nsIURI *aURI,
return NS_ERROR_FAILURE;
}
-#endif /* HAVE_GECKO_1_9 */
+
+/* void addDocumentRedirect (in nsIChannel
+ aOldChannel,
+ in nsIChannel aNewChannel,
+ in PRInt32 aFlags,
+ in boolean aTopLevel); */
+NS_IMETHODIMP
+MozGlobalHistory::AddDocumentRedirect(nsIChannel *aOldChannel,
+ nsIChannel *aNewChannel,
+ PRInt32 aFlags,
+ PRBool aTopLevel)
+{
+ return NS_ERROR_NOT_IMPLEMENTED;
+}
+
+#endif /* HAVE_NSIGLOBALHISTORY3_H */