qint64 QWebSecurityOriginProto::databaseQuota() const { QWebSecurityOrigin *item = qscriptvalue_cast<QWebSecurityOrigin*>(thisObject()); if (item) return item->databaseQuota(); return 0; }
void WebPage::dbQuotaExceeded(QWebFrame* frame) { if (!frame) { return; } const QWebSecurityOrigin origin = frame->securityOrigin(); const qint64 oldQuota = origin.databaseQuota(); frame->securityOrigin().setDatabaseQuota(oldQuota * 2); }