aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyHeaderSniffer.h
diff options
context:
space:
mode:
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;
};