1 /*
2  * Copyright (C) 2014 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 
17 package com.android.webview.nullwebview;
18 
19 import android.content.Context;
20 import android.webkit.CookieManager;
21 import android.webkit.GeolocationPermissions;
22 import android.webkit.WebIconDatabase;
23 import android.webkit.WebStorage;
24 import android.webkit.WebView;
25 import android.webkit.WebViewDatabase;
26 import android.webkit.WebViewDelegate;
27 import android.webkit.WebViewFactoryProvider;
28 import android.webkit.WebViewProvider;
29 
30 public class NullWebViewFactoryProvider implements WebViewFactoryProvider {
31 
NullWebViewFactoryProvider(WebViewDelegate delegate)32     public NullWebViewFactoryProvider(WebViewDelegate delegate) {
33     }
34 
35     @Override
getStatics()36     public WebViewFactoryProvider.Statics getStatics() {
37         throw new UnsupportedOperationException();
38     }
39 
40     @Override
createWebView(WebView webView, WebView.PrivateAccess privateAccess)41     public WebViewProvider createWebView(WebView webView, WebView.PrivateAccess privateAccess) {
42         throw new UnsupportedOperationException();
43     }
44 
45     @Override
getGeolocationPermissions()46     public GeolocationPermissions getGeolocationPermissions() {
47         throw new UnsupportedOperationException();
48     }
49 
50     @Override
getCookieManager()51     public CookieManager getCookieManager() {
52         throw new UnsupportedOperationException();
53     }
54 
55     @Override
getWebIconDatabase()56     public WebIconDatabase getWebIconDatabase() {
57         throw new UnsupportedOperationException();
58     }
59 
60     @Override
getWebStorage()61     public WebStorage getWebStorage() {
62         throw new UnsupportedOperationException();
63     }
64 
65     @Override
getWebViewDatabase(Context context)66     public WebViewDatabase getWebViewDatabase(Context context) {
67         throw new UnsupportedOperationException();
68     }
69 }
70