aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/ContentHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/ContentHandler.h')
-rw-r--r--embed/mozilla/ContentHandler.h25
1 files changed, 10 insertions, 15 deletions
diff --git a/embed/mozilla/ContentHandler.h b/embed/mozilla/ContentHandler.h
index a66f36b49..df77559d4 100644
--- a/embed/mozilla/ContentHandler.h
+++ b/embed/mozilla/ContentHandler.h
@@ -25,6 +25,7 @@
#include "config.h"
#endif
+#include "mozilla-version.h"
#include "ephy-embed-shell.h"
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
@@ -33,13 +34,9 @@
#include <nsISupports.h>
#include <nsIURI.h>
#include <nsIFile.h>
-
+#include <nsEmbedString.h>
#include <nsIHelperAppLauncherDialog.h>
-#ifdef ALLOW_PRIVATE_STRINGS
-#include <nsString.h>
-#endif
-
typedef enum
{
CONTENT_ACTION_OPEN,
@@ -57,8 +54,6 @@ typedef enum
{0x9b, 0xeb, 0x93, 0x35, 0xc0, 0x6b, 0xbe, 0xae} \
}
-class nsIFactory;
-
class GContentHandler : public nsIHelperAppLauncherDialog
{
public:
@@ -82,18 +77,18 @@ class GContentHandler : public nsIHelperAppLauncherDialog
nsCOMPtr<nsIFile> mTempFile;
nsCOMPtr<nsISupports> mContext;
-#if MOZILLA_SNAPSHOT < 18
- char *mMimeType;
-#else
- nsCString mMimeType;
-#endif
PRBool mAppSupportScheme;
GnomeVFSMimeApplication *mHelperApp;
ContentAction mAction;
EphyMimePermission mPermission;
- nsCString mUrl;
- nsCString mScheme;
+ nsEmbedCString mUrl;
+ nsEmbedCString mScheme;
+#if MOZILLA_CHECK_VERSION4 (1, 8, MOZILLA_ALPHA, 1)
+ nsEmbedCString mMimeType;
+#else
+ char *mMimeType;
+#endif
};
-#endif
+#endif /* __ContentHandler_h */