public void onExceededDatabaseQuota(String url,String databaseIdentifier,long currentQuota,long estimatedSize,long totalUsedQuota,WebStorage.QuotaUpdater quotaUpdater){
  if (LOGV_ENABLED) {
    Log.v(LOGTAG,"Received onExceededDatabaseQuota for " + url + ":"+ databaseIdentifier+ "(current quota: "+ currentQuota+ ", total used quota: "+ totalUsedQuota+ ")");
  }
  long totalUnusedQuota=mGlobalLimit - totalUsedQuota - mAppCacheMaxSize;
  if (totalUnusedQuota <= 0) {
    if (totalUsedQuota > 0) {
      scheduleOutOfSpaceNotification();
    }
    quotaUpdater.updateQuota(currentQuota);
    if (LOGV_ENABLED) {
      Log.v(LOGTAG,"onExceededDatabaseQuota: out of space.");
    }
    return;
  }
  long newOriginQuota=currentQuota;
  if (newOriginQuota == 0) {
    if (totalUnusedQuota >= estimatedSize) {
      newOriginQuota=estimatedSize;
    }
 else {
      if (LOGV_ENABLED) {
        Log.v(LOGTAG,"onExceededDatabaseQuota: Unable to satisfy" + " estimatedSize for the new database " + " (estimatedSize: " + estimatedSize + ", unused quota: "+ totalUnusedQuota);
      }
      newOriginQuota=0;
    }
  }
 else {
    long quotaIncrease=estimatedSize == 0 ? Math.min(QUOTA_INCREASE_STEP,totalUnusedQuota) : estimatedSize;
    newOriginQuota+=quotaIncrease;
    if (quotaIncrease > totalUnusedQuota) {
      newOriginQuota=currentQuota;
    }
  }
  quotaUpdater.updateQuota(newOriginQuota);
  if (LOGV_ENABLED) {
    Log.v(LOGTAG,"onExceededDatabaseQuota set new quota to " + newOriginQuota);
  }
}

public void onExceededDatabaseQuota ( String url , String databaseIdentifier , long currentQuota , long estimatedSize , long totalUsedQuota , WebStorage . QuotaUpdater quotaUpdater ) { if ( LOGV_ENABLED ) { Log . v ( LOGTAG , "Received onExceededDatabaseQuota for " + url + ":" + databaseIdentifier + "(current quota: " + currentQuota + ", total used quota: " + totalUsedQuota + ")" ) ; } long totalUnusedQuota = mGlobalLimit - totalUsedQuota - mAppCacheMaxSize ; if ( totalUnusedQuota <= 0 ) { if ( totalUsedQuota > 0 ) { scheduleOutOfSpaceNotification ( ) ; } quotaUpdater . updateQuota ( currentQuota ) ; if ( LOGV_ENABLED ) { Log . v ( LOGTAG , "onExceededDatabaseQuota: out of space." ) ; } return ; } long newOriginQuota = currentQuota ; if ( newOriginQuota == 0 ) { if ( totalUnusedQuota >= estimatedSize ) { newOriginQuota = estimatedSize ; } else { if ( LOGV_ENABLED ) { Log . v ( LOGTAG , "onExceededDatabaseQuota: Unable to satisfy" + " estimatedSize for the new database " + " (estimatedSize: " + estimatedSize + ", unused quota: " + totalUnusedQuota ) ; } newOriginQuota = 0 ; } } else { long quotaIncrease = estimatedSize == 0 ? Math . min ( QUOTA_INCREASE_STEP , totalUnusedQuota ) : estimatedSize ; newOriginQuota += quotaIncrease ; if ( quotaIncrease > totalUnusedQuota ) { newOriginQuota = currentQuota ; } } quotaUpdater . updateQuota ( newOriginQuota ) ; if ( LOGV_ENABLED ) { Log . v ( LOGTAG , "onExceededDatabaseQuota set new quota to " + newOriginQuota ) ; } }
the origin has exceeded its database quota .
