aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/ContentHandler.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@src.gnome.org>2004-01-19 08:11:35 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-01-19 08:11:35 +0800
commitbc344d71c648e9985122fad66b6cab941b32f188 (patch)
tree1ceb0dfd2e6cc725894e03502dfea5282388dbb0 /embed/mozilla/ContentHandler.h
parent5532d7831fe768cbf8100c84668291dc707ef1fb (diff)
downloadgsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar
gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar.gz
gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar.bz2
gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar.lz
gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar.xz
gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar.zst
gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.zip
*** empty log message ***
Diffstat (limited to 'embed/mozilla/ContentHandler.h')
-rw-r--r--embed/mozilla/ContentHandler.h29
1 files changed, 20 insertions, 9 deletions
diff --git a/embed/mozilla/ContentHandler.h b/embed/mozilla/ContentHandler.h
index 6234ca584..d07bea0f7 100644
--- a/embed/mozilla/ContentHandler.h
+++ b/embed/mozilla/ContentHandler.h
@@ -40,6 +40,14 @@
#include "nsISupports.h"
#include "nsError.h"
+typedef enum
+{
+ CONTENT_ACTION_OPEN,
+ CONTENT_ACTION_DOWNLOAD,
+ CONTENT_ACTION_SAVEAS,
+ CONTENT_ACTION_NONE
+} ContentAction;
+
#define G_CONTENTHANDLER_CID \
{ /* 16072c4a-23a6-4996-9beb-9335c06bbeae */ \
0x16072c4a, \
@@ -59,18 +67,19 @@ class GContentHandler : public nsIHelperAppLauncherDialog
GContentHandler();
virtual ~GContentHandler();
- NS_METHOD FindHelperApp (void);
- NS_METHOD LaunchHelperApp (void);
+ private:
+
+ NS_METHOD Init ();
+ NS_METHOD ProcessMimeInfo ();
+ NS_METHOD FindHelperApp ();
+ NS_METHOD LaunchHelperApp ();
NS_METHOD GetLauncher (nsIHelperAppLauncher * *_retval);
NS_METHOD SetHelperApp(GnomeVFSMimeApplication *mHelperApp,
PRBool alwaysUse);
- NS_METHOD SynchroniseMIMEInfo (void);
- NS_METHOD MIMEAskAction (void);
- private:
- /* additional members */
- NS_METHOD Init (void);
- NS_METHOD ProcessMimeInfo (void);
+ NS_METHOD SynchroniseMIMEInfo ();
+ NS_METHOD MIMEConfirmAction ();
+ NS_METHOD MIMEDoAction ();
nsCOMPtr<nsIHelperAppLauncher> mLauncher;
@@ -80,7 +89,9 @@ class GContentHandler : public nsIHelperAppLauncherDialog
char *mMimeType;
PRBool mUrlHelper;
GnomeVFSMimeApplication *mHelperApp;
-
+ ContentAction mAction;
+ EphyMimePermission mPermission;
+
nsCString mUrl;
nsCString mScheme;
};