public final class WebViewFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebViewFactory.MissingWebViewPackageException |
Modifier and Type | Field and Description |
---|---|
static String |
CHROMIUM_WEBVIEW_VMSIZE_SIZE_PROPERTY |
static int |
LIBLOAD_ADDRESS_SPACE_NOT_RESERVED |
static int |
LIBLOAD_FAILED_JNI_CALL |
static int |
LIBLOAD_FAILED_LISTING_WEBVIEW_PACKAGES |
static int |
LIBLOAD_FAILED_TO_FIND_NAMESPACE |
static int |
LIBLOAD_FAILED_TO_LOAD_LIBRARY |
static int |
LIBLOAD_FAILED_TO_OPEN_RELRO_FILE |
static int |
LIBLOAD_FAILED_WAITING_FOR_RELRO |
static int |
LIBLOAD_FAILED_WAITING_FOR_WEBVIEW_REASON_UNKNOWN |
static int |
LIBLOAD_SUCCESS |
static int |
LIBLOAD_WRONG_PACKAGE_NAME |
Constructor and Description |
---|
WebViewFactory() |
Modifier and Type | Method and Description |
---|---|
static PackageInfo |
getLoadedPackageInfo() |
static IWebViewUpdateService |
getUpdateService() |
static String |
getWebViewLibrary(ApplicationInfo ai) |
static int |
loadWebViewNativeLibraryFromPackage(String packageName,
ClassLoader clazzLoader)
Load the native library for the given package name iff that package
name is the same as the one providing the webview.
|
static int |
onWebViewProviderChanged(PackageInfo packageInfo) |
static void |
prepareWebViewInZygote()
Perform any WebView loading preparations that must happen in the zygote.
|
public static final String CHROMIUM_WEBVIEW_VMSIZE_SIZE_PROPERTY
public static final int LIBLOAD_SUCCESS
public static final int LIBLOAD_WRONG_PACKAGE_NAME
public static final int LIBLOAD_ADDRESS_SPACE_NOT_RESERVED
public static final int LIBLOAD_FAILED_WAITING_FOR_RELRO
public static final int LIBLOAD_FAILED_LISTING_WEBVIEW_PACKAGES
public static final int LIBLOAD_FAILED_TO_OPEN_RELRO_FILE
public static final int LIBLOAD_FAILED_TO_LOAD_LIBRARY
public static final int LIBLOAD_FAILED_JNI_CALL
public static final int LIBLOAD_FAILED_WAITING_FOR_WEBVIEW_REASON_UNKNOWN
public static final int LIBLOAD_FAILED_TO_FIND_NAMESPACE
public static String getWebViewLibrary(ApplicationInfo ai)
public static PackageInfo getLoadedPackageInfo()
public static int loadWebViewNativeLibraryFromPackage(String packageName, ClassLoader clazzLoader)
public static void prepareWebViewInZygote()
public static int onWebViewProviderChanged(PackageInfo packageInfo)
public static IWebViewUpdateService getUpdateService()