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 17package com.android.webview.nullwebview; 18 19import android.content.Context; 20import android.webkit.CookieManager; 21import android.webkit.GeolocationPermissions; 22import android.webkit.ServiceWorkerController; 23import android.webkit.TokenBindingService; 24import android.webkit.WebIconDatabase; 25import android.webkit.WebStorage; 26import android.webkit.WebView; 27import android.webkit.WebViewDatabase; 28import android.webkit.WebViewDelegate; 29import android.webkit.WebViewFactoryProvider; 30import android.webkit.WebViewProvider; 31 32public class NullWebViewFactoryProvider implements WebViewFactoryProvider { 33 34 public static WebViewFactoryProvider create(WebViewDelegate delegate) { 35 return new NullWebViewFactoryProvider(delegate); 36 } 37 38 public NullWebViewFactoryProvider(WebViewDelegate delegate) { 39 } 40 41 @Override 42 public WebViewFactoryProvider.Statics getStatics() { 43 throw new UnsupportedOperationException(); 44 } 45 46 @Override 47 public WebViewProvider createWebView(WebView webView, WebView.PrivateAccess privateAccess) { 48 throw new UnsupportedOperationException(); 49 } 50 51 @Override 52 public GeolocationPermissions getGeolocationPermissions() { 53 throw new UnsupportedOperationException(); 54 } 55 56 @Override 57 public CookieManager getCookieManager() { 58 throw new UnsupportedOperationException(); 59 } 60 61 @Override 62 public TokenBindingService getTokenBindingService() { 63 throw new UnsupportedOperationException(); 64 } 65 66 @Override 67 public ServiceWorkerController getServiceWorkerController() { 68 throw new UnsupportedOperationException(); 69 } 70 71 @Override 72 public WebIconDatabase getWebIconDatabase() { 73 throw new UnsupportedOperationException(); 74 } 75 76 @Override 77 public WebStorage getWebStorage() { 78 throw new UnsupportedOperationException(); 79 } 80 81 @Override 82 public WebViewDatabase getWebViewDatabase(Context context) { 83 throw new UnsupportedOperationException(); 84 } 85} 86