Debian Codegraph @

core/java/android/webkit/WebViewRenderProcess.java

raw symbols SCIP
1 /*
2 * Copyright 2019 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 android.webkit;
18
19 /**
20 * WebViewRenderProcess provides an opaque handle to a {@link WebView} renderer.
21 */
22 public abstract class WebViewRenderProcess {
23 /**
24 * Cause this renderer to terminate.
25 *
26 * <p>Calling this on a not yet started, or an already terminated renderer will have no effect.
27 *
28 * <p>Terminating a renderer process may have an effect on multiple {@link WebView} instances.
29 *
30 * <p>Renderer termination must be handled by properly overriding
31 * {@link WebViewClient#onRenderProcessGone} for every WebView that shares this
32 * renderer. If termination is not handled by all associated WebViews, then the application
33 * process will also be terminated.
34 *
35 * @return {@code true} if it was possible to terminate this renderer, {@code false} otherwise.
36 */
37 public abstract boolean terminate();
38
39 public WebViewRenderProcess() {
40 }
41 }