Home | History | Annotate | Download | only in nullwebview
      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.WebViewFactoryProvider;
     27 import android.webkit.WebViewProvider;
     28 
     29 public class NullWebViewFactoryProvider implements WebViewFactoryProvider {
     30 
     31     public NullWebViewFactoryProvider() {
     32     }
     33 
     34     @Override
     35     public WebViewFactoryProvider.Statics getStatics() {
     36         throw new UnsupportedOperationException();
     37     }
     38 
     39     @Override
     40     public WebViewProvider createWebView(WebView webView, WebView.PrivateAccess privateAccess) {
     41         throw new UnsupportedOperationException();
     42     }
     43 
     44     @Override
     45     public GeolocationPermissions getGeolocationPermissions() {
     46         throw new UnsupportedOperationException();
     47     }
     48 
     49     @Override
     50     public CookieManager getCookieManager() {
     51         throw new UnsupportedOperationException();
     52     }
     53 
     54     @Override
     55     public WebIconDatabase getWebIconDatabase() {
     56         throw new UnsupportedOperationException();
     57     }
     58 
     59     @Override
     60     public WebStorage getWebStorage() {
     61         throw new UnsupportedOperationException();
     62     }
     63 
     64     @Override
     65     public WebViewDatabase getWebViewDatabase(Context context) {
     66         throw new UnsupportedOperationException();
     67     }
     68 }
     69