QString QWebSecurityOriginProto::scheme() const { QWebSecurityOrigin *item = qscriptvalue_cast<QWebSecurityOrigin*>(thisObject()); if (item) return item->scheme(); return QString(); }
int QWebSecurityOriginProto::port() const { QWebSecurityOrigin *item = qscriptvalue_cast<QWebSecurityOrigin*>(thisObject()); if (item) return item->port(); return 0; }
qint64 QWebSecurityOriginProto::databaseUsage() const { QWebSecurityOrigin *item = qscriptvalue_cast<QWebSecurityOrigin*>(thisObject()); if (item) return item->databaseUsage(); 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); }
void QWebSecurityOriginProto::setDatabaseQuota(qint64 quota) { QWebSecurityOrigin *item = qscriptvalue_cast<QWebSecurityOrigin*>(thisObject()); if (item) item->setDatabaseQuota(quota); }
void QWebSecurityOriginProto::removeAccessWhitelistEntry(const QString & scheme, const QString & host, QWebSecurityOrigin::SubdomainSetting subdomainSetting) { QWebSecurityOrigin *item = qscriptvalue_cast<QWebSecurityOrigin*>(thisObject()); if (item) item->removeAccessWhitelistEntry(scheme, host, subdomainSetting); }