diff options
| author | Ben Murdoch <benm@google.com> | 2009-04-22 13:07:58 +0100 |
|---|---|---|
| committer | Ben Murdoch <benm@google.com> | 2009-04-30 13:46:01 +0100 |
| commit | 7df1985e86635af006be3dfa65987d60e290b5de (patch) | |
| tree | 523127ee23b8271ca389f1df146a2e9643521181 /core/java/android/webkit/WebChromeClient.java | |
| parent | 4ed7c18f9170c6c8e0af910ae34a798e654b9e27 (diff) | |
Merges p9 CLs 144856 and 145055 to GIT to enable the Database API in the browser.
Diffstat (limited to 'core/java/android/webkit/WebChromeClient.java')
| -rw-r--r-- | core/java/android/webkit/WebChromeClient.java | 17 |
1 files changed, 17 insertions, 0 deletions
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); + } } |
