From 7df1985e86635af006be3dfa65987d60e290b5de Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Wed, 22 Apr 2009 13:07:58 +0100 Subject: Merges p9 CLs 144856 and 145055 to GIT to enable the Database API in the browser. --- core/java/android/webkit/WebChromeClient.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'core/java/android/webkit/WebChromeClient.java') diff --git a/core/java/android/webkit/WebChromeClient.java b/core/java/android/webkit/WebChromeClient.java index f9400061190b..0b874fad5352 100644 --- a/core/java/android/webkit/WebChromeClient.java +++ b/core/java/android/webkit/WebChromeClient.java @@ -157,4 +157,21 @@ public class WebChromeClient { JsResult result) { return false; } + + /** + * Tell the client that the database quota for the origin has been exceeded. + * @param url The URL that triggered the notification + * @param databaseIdentifier The identifier of the database that caused the + * quota overflow. + * @param currentQuota The current quota for the origin. + * @param quotaUpdater A callback to inform the WebCore thread that a new + * quota is available. This callback must always be executed at some + * point to ensure that the sleeping WebCore thread is woken up. + */ + public void onExceededDatabaseQuota(String url, String databaseIdentifier, + long currentQuota, WebStorage.QuotaUpdater quotaUpdater) { + // This default implementation passes the current quota back to WebCore. + // WebCore will interpret this that new quota was declined. + quotaUpdater.updateQuota(currentQuota); + } } -- cgit v1.2.3