aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-18 21:06:32 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-18 21:06:32 +0800
commit61e750e762ea9112ebfa8339808021ab3c1d2c7e (patch)
tree2478b1f6b2e6d7eace7b8fbbfd2d444d33b9a90f /embed/mozilla/EphyBrowser.h
parent1f04e1b7cf26c0c5f07a785135edae6a4878d321 (diff)
downloadgsoc2013-epiphany-61e750e762ea9112ebfa8339808021ab3c1d2c7e.tar
gsoc2013-epiphany-61e750e762ea9112ebfa8339808021ab3c1d2c7e.tar.gz
gsoc2013-epiphany-61e750e762ea9112ebfa8339808021ab3c1d2c7e.tar.bz2
gsoc2013-epiphany-61e750e762ea9112ebfa8339808021ab3c1d2c7e.tar.lz
gsoc2013-epiphany-61e750e762ea9112ebfa8339808021ab3c1d2c7e.tar.xz
gsoc2013-epiphany-61e750e762ea9112ebfa8339808021ab3c1d2c7e.tar.zst
gsoc2013-epiphany-61e750e762ea9112ebfa8339808021ab3c1d2c7e.zip
Disallow favicon links from subframes.
2004-11-18 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: Disallow favicon links from subframes.
Diffstat (limited to 'embed/mozilla/EphyBrowser.h')
-rw-r--r--embed/mozilla/EphyBrowser.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/embed/mozilla/EphyBrowser.h b/embed/mozilla/EphyBrowser.h
index 4a27ed106..56962d183 100644
--- a/embed/mozilla/EphyBrowser.h
+++ b/embed/mozilla/EphyBrowser.h
@@ -23,8 +23,8 @@
#include "config.h"
-#include "ephy-encodings.h"
#include "ephy-embed.h"
+#include <gtk/gtkwidget.h>
#include <gtkmozembed.h>
#include <nsCOMPtr.h>
@@ -46,13 +46,15 @@
#include <nsISecureBrowserUI.h>
#endif
+class EphyBrowser;
+
class EphyEventListener : public nsIDOMEventListener
{
public:
EphyEventListener();
virtual ~EphyEventListener();
- nsresult Init(EphyEmbed *aOwner);
+ nsresult Init (EphyBrowser *aOwner);
NS_DECL_ISUPPORTS
@@ -61,7 +63,7 @@ public:
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) = 0;
protected:
- EphyEmbed *mOwner;
+ EphyBrowser *mOwner;
};
class EphyFaviconEventListener : public EphyEventListener
@@ -84,6 +86,10 @@ public:
class EphyBrowser
{
+friend class EphyEventListener;
+friend class EphyFaviconEventListener;
+friend class EphyPopupBlockEventListener;
+friend class EphyModalAlertEventListener;
public:
EphyBrowser();
~EphyBrowser();
@@ -142,8 +148,9 @@ public:
nsresult ShowCertificate ();
nsCOMPtr<nsIWebBrowser> mWebBrowser;
-
private:
+ GtkWidget *mEmbed;
+
nsCOMPtr<nsIDOMDocument> mTargetDocument;
nsCOMPtr<nsIDOMEventTarget> mEventTarget;
nsCOMPtr<nsIDOMWindow> mDOMWindow;