From 9fb6164dd427630f8e72d69113c48a78dd449bc8 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 24 Feb 2004 23:44:58 +0000 Subject: Make max size property use long / bytes. 2004-02-25 Marco Pesenti Gritti * 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. --- embed/mozilla/MozDownload.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'embed/mozilla/MozDownload.h') 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 mSource; @@ -121,6 +122,7 @@ protected: PRInt32 mPercentComplete; PRInt32 mTotalProgress; PRInt32 mCurrentProgress; + PRInt32 mMaxSize; bool mGotFirstStateChange, mIsNetworkTransfer; nsresult mStatus; -- cgit v1.2.3