IWebViewUpdateService.aidl revision 6258dcd7ea5450726bc7bcb1fbd50e99f62f38fb
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 android.webkit; 18 19import android.content.pm.PackageInfo; 20import android.webkit.WebViewProviderInfo; 21import android.webkit.WebViewProviderResponse; 22 23/** 24 * Private service to wait for the updatable WebView to be ready for use. 25 * @hide 26 */ 27interface IWebViewUpdateService { 28 29 /** 30 * Used by the relro file creator to notify the service that it's done. 31 */ 32 void notifyRelroCreationCompleted(); 33 34 /** 35 * Used by WebViewFactory to block loading of WebView code until 36 * preparations are complete. Returns the package used as WebView provider. 37 */ 38 WebViewProviderResponse waitForAndGetProvider(); 39 40 /** 41 * DevelopmentSettings uses this to notify WebViewUpdateService that a 42 * new provider has been selected by the user. 43 */ 44 void changeProviderAndSetting(String newProvider); 45 46 /** 47 * DevelopmentSettings uses this to get the current available WebView 48 * providers (to display as choices to the user). 49 */ 50 WebViewProviderInfo[] getValidWebViewPackages(); 51 52 /** 53 * Used by DevelopmentSetting to get the name of the WebView provider currently in use. 54 */ 55 String getCurrentWebViewPackageName(); 56} 57