aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozDownload.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-24 18:56:53 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-24 18:56:53 +0800
commit2a93fb20b6618d44c05589bb636fe77b7b04e075 (patch)
tree8291a66e4f65ea6c17c050dc1a066bd7c9a5582c /embed/mozilla/MozDownload.h
parent5767e9aeb78133de615e08087cd96c4beb89f1d7 (diff)
downloadgsoc2013-epiphany-2a93fb20b6618d44c05589bb636fe77b7b04e075.tar
gsoc2013-epiphany-2a93fb20b6618d44c05589bb636fe77b7b04e075.tar.gz
gsoc2013-epiphany-2a93fb20b6618d44c05589bb636fe77b7b04e075.tar.bz2
gsoc2013-epiphany-2a93fb20b6618d44c05589bb636fe77b7b04e075.tar.lz
gsoc2013-epiphany-2a93fb20b6618d44c05589bb636fe77b7b04e075.tar.xz
gsoc2013-epiphany-2a93fb20b6618d44c05589bb636fe77b7b04e075.tar.zst
gsoc2013-epiphany-2a93fb20b6618d44c05589bb636fe77b7b04e075.zip
Add an helper to initialize downloads.
2003-10-24 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: Add an helper to initialize downloads. * embed/ephy-embed-persist.h: Add a flag to ask destination. * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyHeaderSniffer.h: Use the helper. Add code to determine a good filename. * embed/mozilla/mozilla-embed-persist.cpp: Use a MozDownload directly if there is a dest set, it doesnt make sense to use sniffer for favicons.
Diffstat (limited to 'embed/mozilla/MozDownload.h')
-rw-r--r--embed/mozilla/MozDownload.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/embed/mozilla/MozDownload.h b/embed/mozilla/MozDownload.h
index 56b8e16e1..49f0e6cc9 100644
--- a/embed/mozilla/MozDownload.h
+++ b/embed/mozilla/MozDownload.h
@@ -44,7 +44,9 @@
#include "nsIWebProgressListener.h"
#include "nsIHelperAppLauncherDialog.h"
#include "nsIExternalHelperAppService.h"
+#include "nsIDOMDocument.h"
+#include "nsString.h"
#include "nsIURI.h"
#include "nsILocalFile.h"
#include "nsIWebBrowserPersist.h"
@@ -74,6 +76,11 @@
#define MOZ_DOWNLOAD_CLASSNAME "Ephy's Download Progress Dialog"
+nsresult InitiateMozillaDownload (nsIDOMDocument *domDocument, nsIURI *sourceUri,
+ nsILocalFile* inDestFile, const char *contentType,
+ nsIURI* inOriginalURI, MozillaEmbedPersist *embedPersist,
+ PRBool bypassCache, nsIInputStream *postData);
+
class MozDownload : public nsIDownload,
public nsIWebProgressListener
{