aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyHeaderSniffer.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-18 21:48:17 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-18 21:48:17 +0800
commit850649e3b65a15efa73d5c34b5c14d9b9cf5ef09 (patch)
tree570b99cba0e3b6cce7b47a85c4b810848a121af6 /embed/mozilla/EphyHeaderSniffer.h
parent8e878e61d90213c812163e1cf5a56381ff8cb641 (diff)
downloadgsoc2013-epiphany-850649e3b65a15efa73d5c34b5c14d9b9cf5ef09.tar
gsoc2013-epiphany-850649e3b65a15efa73d5c34b5c14d9b9cf5ef09.tar.gz
gsoc2013-epiphany-850649e3b65a15efa73d5c34b5c14d9b9cf5ef09.tar.bz2
gsoc2013-epiphany-850649e3b65a15efa73d5c34b5c14d9b9cf5ef09.tar.lz
gsoc2013-epiphany-850649e3b65a15efa73d5c34b5c14d9b9cf5ef09.tar.xz
gsoc2013-epiphany-850649e3b65a15efa73d5c34b5c14d9b9cf5ef09.tar.zst
gsoc2013-epiphany-850649e3b65a15efa73d5c34b5c14d9b9cf5ef09.zip
Add nsIAuthPrompt implementation, necessary to make downloads on
2003-10-18 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyHeaderSniffer.h: Add nsIAuthPrompt implementation, necessary to make downloads on authenticated pages work.
Diffstat (limited to 'embed/mozilla/EphyHeaderSniffer.h')
-rw-r--r--embed/mozilla/EphyHeaderSniffer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/embed/mozilla/EphyHeaderSniffer.h b/embed/mozilla/EphyHeaderSniffer.h
index 9124cfa16..01f5b7bd8 100644
--- a/embed/mozilla/EphyHeaderSniffer.h
+++ b/embed/mozilla/EphyHeaderSniffer.h
@@ -45,9 +45,12 @@
#include "nsILocalFile.h"
#include "nsIInputStream.h"
#include "nsIDOMDocument.h"
+#include "nsIAuthPrompt.h"
+#include "nsIPromptService.h"
// Implementation of a header sniffer class that is used when saving Web pages and images.
-class EphyHeaderSniffer : public nsIWebProgressListener
+class EphyHeaderSniffer : public nsIWebProgressListener,
+ public nsIAuthPrompt
{
public:
EphyHeaderSniffer(nsIWebBrowserPersist* aPersist, MozillaEmbedPersist *aEmbedPersist,
@@ -58,6 +61,7 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWEBPROGRESSLISTENER
+ NS_DECL_NSIAUTHPROMPT
protected:
@@ -76,5 +80,6 @@ private:
PRBool mBypassCache;
nsCString mContentType;
nsCString mContentDisposition;
+ nsCOMPtr<nsIPromptService> mPrompt;
};