android.webkit.WebStorage.QuotaUpdater Java Examples
The following examples show how to use
android.webkit.WebStorage.QuotaUpdater.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CBrowserMainFrame7.java From appcan-android with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize, long totalUsedQuota, QuotaUpdater quotaUpdater) { if (estimatedSize < MAX_QUOTA) { long newQuota = estimatedSize; quotaUpdater.updateQuota(newQuota * 2); } else { quotaUpdater.updateQuota(currentQuota); } }
Example #2
Source File: CompatWebChromeClient.java From Android_Skin_2.0 with Apache License 2.0 | 4 votes |
@Override public void onExceededDatabaseQuota(String url, String databaseIdentifier, long quota, long estimatedDatabaseSize, long totalQuota, QuotaUpdater quotaUpdater) { // super.onExceededDatabaseQuota(url, databaseIdentifier, quota, estimatedDatabaseSize, totalQuota, quotaUpdater); // 扩充数据库的容量(在WebChromeClinet中实现) quotaUpdater.updateQuota(estimatedDatabaseSize * 2); }