Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43137e8e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add a method for fetching the WebView classloader."

parents 03e7ec20 265afdb1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -50230,6 +50230,7 @@ package android.webkit {
    method public java.lang.String getTitle();
    method public java.lang.String getUrl();
    method public android.webkit.WebChromeClient getWebChromeClient();
    method public static java.lang.ClassLoader getWebViewClassLoader();
    method public android.webkit.WebViewClient getWebViewClient();
    method public void goBack();
    method public void goBackOrForward(int);
+1 −0
Original line number Diff line number Diff line
@@ -4996,6 +4996,7 @@ package android.webkit {
    method public abstract android.webkit.TracingController getTracingController();
    method public abstract android.webkit.WebIconDatabase getWebIconDatabase();
    method public abstract android.webkit.WebStorage getWebStorage();
    method public abstract java.lang.ClassLoader getWebViewClassLoader();
    method public abstract android.webkit.WebViewDatabase getWebViewDatabase(android.content.Context);
  }

+10 −0
Original line number Diff line number Diff line
@@ -2412,6 +2412,16 @@ public class WebView extends AbsoluteLayout
        return mProvider.getTextClassifier();
    }

    /**
     * Returns the {@link ClassLoader} used to load internal WebView classes.
     * This method is meant for use by the WebView Support Library, there is no reason to use this
     * method otherwise.
     */
    @NonNull
    public static ClassLoader getWebViewClassLoader() {
        return getFactory().getWebViewClassLoader();
    }

    //-------------------------------------------------------------------------
    // Interface for WebView providers
    //-------------------------------------------------------------------------
+6 −0
Original line number Diff line number Diff line
@@ -172,4 +172,10 @@ public interface WebViewFactoryProvider {
     * @return the singleton WebViewDatabase instance
     */
    WebViewDatabase getWebViewDatabase(Context context);

    /**
     * Gets the classloader used to load internal WebView implementation classes. This interface
     * should only be used by the WebView Support Library.
     */
    ClassLoader getWebViewClassLoader();
}