WebStorage.java revision 7df1985e86635af006be3dfa65987d60e290b5de
1/*
2 * Copyright (C) 2009 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.webkit;
18
19/**
20 * Functionality for manipulating the webstorage databases.
21 */
22public final class WebStorage {
23
24    /**
25     * Encapsulates a callback function to be executed when a new quota is made
26     * available. We primarily want this to allow us to call back the sleeping
27     * WebCore thread from outside the WebViewCore class (as the native call
28     * is private). It is imperative that this the setDatabaseQuota method is
29     * executed once a decision to either allow or deny new quota is made,
30     * otherwise the WebCore thread will remain asleep.
31     */
32    public interface QuotaUpdater {
33        public void updateQuota(long newQuota);
34    };
35}
36