aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozDownload.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-02-25 07:44:58 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-02-25 07:44:58 +0800
commit9fb6164dd427630f8e72d69113c48a78dd449bc8 (patch)
treebb8614a2c6a04bbcb05be59c1ed525abc77d9f83 /embed/mozilla/MozDownload.h
parentd055989e9fc45f0849de45ec00e02802e6769dc0 (diff)
downloadgsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar.gz
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar.bz2
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar.lz
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar.xz
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar.zst
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.zip
Make max size property use long / bytes.
2004-02-25 Marco Pesenti Gritti <marco@gnome.org> * embed/ephy-embed-persist.c: (ephy_embed_persist_set_max_size), (ephy_embed_persist_set_property), (ephy_embed_persist_get_property), (ephy_embed_persist_init), (ephy_embed_persist_class_init): * embed/ephy-embed-persist.h: Make max size property use long / bytes. * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): Correct to use bytes. * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-embed-persist.cpp: Actually respect the max_size property.
Diffstat (limited to 'embed/mozilla/MozDownload.h')
-rw-r--r--embed/mozilla/MozDownload.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/embed/mozilla/MozDownload.h b/embed/mozilla/MozDownload.h
index f6c82705e..e7f51b2e0 100644
--- a/embed/mozilla/MozDownload.h
+++ b/embed/mozilla/MozDownload.h
@@ -83,7 +83,8 @@
nsresult InitiateMozillaDownload (nsIDOMDocument *domDocument, nsIURI *sourceUri,
nsILocalFile* inDestFile, const char *contentType,
nsIURI* inOriginalURI, MozillaEmbedPersist *embedPersist,
- nsIInputStream *postData, nsISupports *aCacheKey);
+ nsIInputStream *postData, nsISupports *aCacheKey,
+ PRInt32 aMaxSize);
nsresult BuildDownloadPath (const char *defaultFileName, nsILocalFile **_retval);
class MozDownload : public nsIDownload,
@@ -108,7 +109,7 @@ public:
nsresult InitForEmbed (nsIURI *aSource, nsILocalFile *aTarget,
const PRUnichar *aDisplayName, nsIMIMEInfo *aMIMEInfo,
PRInt64 startTime, nsIWebBrowserPersist *aPersist,
- MozillaEmbedPersist *aEmbedPersist);
+ MozillaEmbedPersist *aEmbedPersist, PRInt32 aMaxSize);
protected:
nsCOMPtr<nsIURI> mSource;
@@ -121,6 +122,7 @@ protected:
PRInt32 mPercentComplete;
PRInt32 mTotalProgress;
PRInt32 mCurrentProgress;
+ PRInt32 mMaxSize;
bool mGotFirstStateChange, mIsNetworkTransfer;
nsresult mStatus;