From 850649e3b65a15efa73d5c34b5c14d9b9cf5ef09 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 18 Oct 2003 13:48:17 +0000 Subject: Add nsIAuthPrompt implementation, necessary to make downloads on 2003-10-18 Marco Pesenti Gritti * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyHeaderSniffer.h: Add nsIAuthPrompt implementation, necessary to make downloads on authenticated pages work. --- embed/mozilla/EphyHeaderSniffer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'embed/mozilla/EphyHeaderSniffer.h') 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 mPrompt; }; -- cgit v1.2.3