Code example for WebStorage.QuotaUpdater

Methods: updateQuota

0
	@Override 
	public void onExceededDatabaseQuota(String url,
			String databaseIdentifier, long quota,
			long estimatedDatabaseSize, long totalQuota,
			QuotaUpdater quotaUpdater) {
		quotaUpdater.updateQuota(totalQuota + estimatedDatabaseSize);
 
	} 
 
	@Override 
	public void onProgressChanged(WebView view, int newProgress) {
		IncognitoModeActivity.onProgressChanged(view.getId(), newProgress);
		super.onProgressChanged(view, newProgress);
	} 
 
	@Override 
	public void onReachedMaxAppCacheSize(long requiredStorage, long quota,
			QuotaUpdater quotaUpdater) {
		quotaUpdater.updateQuota(quota + requiredStorage);
	}