blob: 59fc0cba1fd38e40de573b3e6c084e5f79729914 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001/*
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;
The Android Open Source Project4df24232009-03-05 14:34:35 -080020import android.webkit.PluginData;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080021import java.util.Map;
22
Andrei Popescu385df692009-08-13 11:59:57 +010023/**
Kristian Monsenf0d97312011-01-12 19:15:35 +000024 * @hide
Andrei Popescu385df692009-08-13 11:59:57 +010025 * @deprecated This interface was inteded to be used by Gears. Since Gears was
26 * deprecated, so is this class.
27 */
28@Deprecated
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080029public 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.
Andrei Popescu385df692009-08-13 11:59:57 +010039 *
Kristian Monsenf0d97312011-01-12 19:15:35 +000040 * @hide
Andrei Popescu385df692009-08-13 11:59:57 +010041 * @deprecated Do not use, this interface is deprecated.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080042 */
The Android Open Source Project4df24232009-03-05 14:34:35 -080043 @Deprecated
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080044 public CacheResult service(String url, Map<String, String> headers);
The Android Open Source Project4df24232009-03-05 14:34:35 -080045
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.
Andrei Popescu385df692009-08-13 11:59:57 +010054 *
Kristian Monsenf0d97312011-01-12 19:15:35 +000055 * @hide
Andrei Popescu385df692009-08-13 11:59:57 +010056 * @deprecated Do not use, this interface is deprecated.
The Android Open Source Project4df24232009-03-05 14:34:35 -080057 */
Andrei Popescu385df692009-08-13 11:59:57 +010058 @Deprecated
The Android Open Source Project4df24232009-03-05 14:34:35 -080059 public PluginData getPluginData(String url, Map<String, String> headers);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080060}