[Webkit-unassigned] [Bug 48194] New: [Qt] Add API for managing origin quotas in appcache
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Oct 23 13:42:49 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=48194
Summary: [Qt] Add API for managing origin quotas in appcache
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: NEW
Keywords: Qt, QtTriaged
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: robert at webkit.org
Add the following API for managing cases where the application cache quota is exceeded in total or per origin.
+ \fn void QWebPage::applicationCacheQuotaExceeded(qint64 spaceNeeded);
+ \since 4.5
+
+ This signal is emitted whenever a web site is asking to store data
+ to the application cache and the maximum size allocated to the cache is exceeded.
+ A slot connected to this signal can decide whether to increase the maximum size
+ of the application cache with QWebSettings::setOfflineWebApplicationCacheQuota(qint64 maximumSize)
+ to prevent future failures.
+
+ \sa QWebDatabase
+*/
+
+/*!
+ \fn void QWebPage::applicationCacheQuotaPerOriginExceeded(QWebSecurityOrigin* origin);
+ \since 4.8
+
+ This signal is emitted whenever the web site from \a origin is asking to store data
+ to the application cache and the quota allocated to that \a origin is exceeded.
+ A slot connected to this signal can decide whether to increase the quota allocated
+ to the application cache for the \a origin with
+ QWebSecurityOrigin::setOfflineWebApplicationCacheQuota(qint64 quota).
+
+ \sa QWebDatabase
+*/
+
+ Sets the quota for the application cache in the security origin to \a quota bytes.
+
+ If the quota is set to a value less than the current usage, the quota will remain
+ and no data will be purged to meet the new quota. However, no new data can be added
+ to application caches with this origin.
+*/
+void QWebSecurityOrigin::setOfflineWebApplicationCacheQuota(qint64 quota)
+ \since 4.8
+
+ Sets the default maximum size of the cache for an offline web application
+ used by any given QWebSecurityOrigin to \a maximumSize.
+*/
+void QWebSettings::setOfflineWebApplicationCacheQuotaPerOrigin(qint64 maximumSize)
+
+/*!
+ \since 4.8
+
+ Returns the default maximum size of the cache for an offline web application
+ used by any given QWebSecurityOrigin.
+*/
+qint64 QWebSettings::offlineWebApplicationCacheQuotaPerOrigin()
Unskip http/tests/appcache/origin-quota.html
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list