public interface CefRequestHandler
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
CefRequestHandler.TerminationStatus
Process termination status values.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
getAuthCredentials(CefBrowser browser,
boolean isProxy,
String host,
int port,
String realm,
String scheme,
CefAuthCallback callback)
Called on the IO thread when the browser needs credentials from the user.
|
CefResourceHandler |
getResourceHandler(CefBrowser browser,
CefRequest request)
Called on the IO thread before a resource is loaded.
|
boolean |
onBeforeBrowse(CefBrowser browser,
CefRequest request,
boolean is_redirect)
Called on the UI thread before browser navigation.
|
boolean |
onBeforeResourceLoad(CefBrowser browser,
CefRequest request)
Called on the IO thread before a resource request is loaded.
|
boolean |
onCertificateError(CefBrowser browser,
CefLoadHandler.ErrorCode cert_error,
String request_url,
CefRequestCallback callback)
Called on the UI thread to handle requests for URLs with an invalid
SSL certificate.
|
void |
onPluginCrashed(CefBrowser browser,
String pluginPath)
Called on the browser process UI thread when a plugin has crashed.
|
void |
onProtocolExecution(CefBrowser browser,
String url,
BoolRef allow_os_execution)
Called on the UI thread to handle requests for URLs with an unknown
protocol component.
|
boolean |
onQuotaRequest(CefBrowser browser,
String origin_url,
long new_size,
CefRequestCallback callback)
Called on the IO thread when JavaScript requests a specific storage quota
size via the webkitStorageInfo.requestQuota function.
|
void |
onRenderProcessTerminated(CefBrowser browser,
CefRequestHandler.TerminationStatus status)
Called on the browser process UI thread when the render process
terminates unexpectedly.
|
void |
onResourceRedirect(CefBrowser browser,
CefRequest request,
StringRef new_url)
Called on the IO thread when a resource load is redirected.
|
boolean onBeforeBrowse(CefBrowser browser, CefRequest request, boolean is_redirect)
browser - The corresponding browser.request - The request itself. Can't be modified.is_redirect - true if the request was redirected.boolean onBeforeResourceLoad(CefBrowser browser, CefRequest request)
browser - The corresponding browser.request - The request object may be modified.callback - The request object may be modified.CefResourceHandler getResourceHandler(CefBrowser browser, CefRequest request)
browser - The corresponding browser.request - The request itself. Should not be modified in this callback.void onResourceRedirect(CefBrowser browser, CefRequest request, StringRef new_url)
browser - The corresponding browser.request - The request itself. Should not be modified in this callback.new_url - Contains the new URL and can be changed if desired.boolean getAuthCredentials(CefBrowser browser, boolean isProxy, String host, int port, String realm, String scheme, CefAuthCallback callback)
browser - The corresponding browser.isProxy - indicates whether the host is a proxy server.host - contains the hostname.port - contains the port number.realm - The realm of the request.scheme - The scheme of the request.callback - call CefAuthCallback::Continue() when the authentication
information is available.boolean onQuotaRequest(CefBrowser browser, String origin_url, long new_size, CefRequestCallback callback)
browser - The corresponding browser.origin_url - is the origin of the page making the request.new_size - is the requested quota size in bytes.callback - call CefRequestCallback::Continue() either in this method or
at a later time to grant or deny the request.void onProtocolExecution(CefBrowser browser, String url, BoolRef allow_os_execution)
boolean onCertificateError(CefBrowser browser, CefLoadHandler.ErrorCode cert_error, String request_url, CefRequestCallback callback)
browser - The corresponding browser.cert_error - Error code describing the error.request_url - The requesting URL.callback - call CefRequestCallback::Continue() to continue
or cancel the request.void onPluginCrashed(CefBrowser browser, String pluginPath)
browser - The corresponding browser.pluginPath - the path of the plugin that crashed.void onRenderProcessTerminated(CefBrowser browser, CefRequestHandler.TerminationStatus status)
Copyright © 2017. All rights reserved.