1/*
2 * Copyright (C) 2008 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
19import android.webkit.CacheManager.CacheResult;
20import android.webkit.PluginData;
21import java.util.Map;
22
23/**
24 * @hide
25 * @deprecated This interface was inteded to be used by Gears. Since Gears was
26 * deprecated, so is this class.
27 */
28@Deprecated
29public interface UrlInterceptHandler {
30
31    /**
32     * Given an URL, returns the CacheResult which contains the
33     * surrogate response for the request, or null if the handler is
34     * not interested.
35     *
36     * @param url URL string.
37     * @param headers The headers associated with the request. May be null.
38     * @return The CacheResult containing the surrogate response.
39     *
40     * @hide
41     * @deprecated Do not use, this interface is deprecated.
42     */
43    @Deprecated
44    public CacheResult service(String url, Map<String, String> headers);
45
46    /**
47     * Given an URL, returns the PluginData which contains the
48     * surrogate response for the request, or null if the handler is
49     * not interested.
50     *
51     * @param url URL string.
52     * @param headers The headers associated with the request. May be null.
53     * @return The PluginData containing the surrogate response.
54     *
55     * @hide
56     * @deprecated Do not use, this interface is deprecated.
57     */
58    @Deprecated
59    public PluginData getPluginData(String url, Map<String, String> headers);
60}
61