NullWebViewFactoryProvider.java revision fbf9603e725d893f981d348914665670ed91afca
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.TokenBindingService; 23import android.webkit.WebIconDatabase; 24import android.webkit.WebStorage; 25import android.webkit.WebView; 26import android.webkit.WebViewDatabase; 27import android.webkit.WebViewDelegate; 28import android.webkit.WebViewFactoryProvider; 29import android.webkit.WebViewProvider; 30 31public class NullWebViewFactoryProvider implements WebViewFactoryProvider { 32 33 public NullWebViewFactoryProvider(WebViewDelegate delegate) { 34 } 35 36 @Override 37 public WebViewFactoryProvider.Statics getStatics() { 38 throw new UnsupportedOperationException(); 39 } 40 41 @Override 42 public WebViewProvider createWebView(WebView webView, WebView.PrivateAccess privateAccess) { 43 throw new UnsupportedOperationException(); 44 } 45 46 @Override 47 public GeolocationPermissions getGeolocationPermissions() { 48 throw new UnsupportedOperationException(); 49 } 50 51 @Override 52 public CookieManager getCookieManager() { 53 throw new UnsupportedOperationException(); 54 } 55 56 @Override 57 public TokenBindingService getTokenBindingService() { 58 throw new UnsupportedOperationException(); 59 } 60 61 @Override 62 public WebIconDatabase getWebIconDatabase() { 63 throw new UnsupportedOperationException(); 64 } 65 66 @Override 67 public WebStorage getWebStorage() { 68 throw new UnsupportedOperationException(); 69 } 70 71 @Override 72 public WebViewDatabase getWebViewDatabase(Context context) { 73 throw new UnsupportedOperationException(); 74 } 75} 76