From 6c9506d12f519b416ab8d7b04b7f16799abe595c Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 15 Oct 2005 10:02:04 +0000 Subject: Add EPHY_EMBED_PERSIST_NO_CERTDIALOGS flag. 2005-10-15 Christian Persch * embed/ephy-embed-persist.h: Add EPHY_EMBED_PERSIST_NO_CERTDIALOGS flag. * embed/mozilla/Makefile.am: A embed/mozilla/EphyBadCertRejector.cpp: A embed/mozilla/EphyBadCertRejector.h: A class implementing nsIBadCertListener which always rejects. * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyHeaderSniffer.h: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: For gecko 1.8, implement nsIInterfaceRequestor for EphyHeaderSniffer and MozDownload, and make GetInterface hand out a EphyBadCertRejector if the EPHY_EMBED_PERSIST_NO_CERTDIALOGS flag is set. --- embed/mozilla/MozDownload.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'embed/mozilla/MozDownload.h') diff --git a/embed/mozilla/MozDownload.h b/embed/mozilla/MozDownload.h index 007045564..509b28339 100644 --- a/embed/mozilla/MozDownload.h +++ b/embed/mozilla/MozDownload.h @@ -55,6 +55,7 @@ #ifdef HAVE_GECKO_1_8 #include #include +#include #else #include #endif @@ -98,7 +99,8 @@ nsresult BuildDownloadPath (const char *defaultFileName, nsILocalFile **_retval) class MozDownload : #ifdef HAVE_GECKO_1_8 - public nsITransfer + public nsITransfer, + public nsIInterfaceRequestor #else public nsIDownload, public nsIWebProgressListener @@ -113,6 +115,7 @@ public: #ifdef HAVE_GECKO_1_8 NS_DECL_NSIWEBPROGRESSLISTENER2 NS_DECL_NSITRANSFER + NS_DECL_NSIINTERFACEREQUESTOR nsresult GetMIMEInfo (nsIMIMEInfo **aMIMEInfo); nsresult GetTargetFile (nsILocalFile **aFile); -- cgit