public abstract class CefRequestHandlerAdapter extends Object implements CefRequestHandler
CefRequestHandler.TerminationStatus| 构造器和说明 |
|---|
CefRequestHandlerAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public boolean onBeforeBrowse(CefBrowser browser, CefRequest request, boolean is_redirect)
CefRequestHandleronBeforeBrowse 在接口中 CefRequestHandlerbrowser - The corresponding browser.request - The request itself. Can't be modified.is_redirect - true if the request was redirected.public boolean onBeforeResourceLoad(CefBrowser browser, CefRequest request)
CefRequestHandleronBeforeResourceLoad 在接口中 CefRequestHandlerbrowser - The corresponding browser.request - The request object may be modified.public CefResourceHandler getResourceHandler(CefBrowser browser, CefRequest request)
CefRequestHandlergetResourceHandler 在接口中 CefRequestHandlerbrowser - The corresponding browser.request - The request itself. Should not be modified in this callback.public void onResourceRedirect(CefBrowser browser, CefRequest request, StringRef new_url)
CefRequestHandleronResourceRedirect 在接口中 CefRequestHandlerbrowser - 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.public boolean getAuthCredentials(CefBrowser browser, boolean isProxy, String host, int port, String realm, String scheme, CefAuthCallback callback)
CefRequestHandlergetAuthCredentials 在接口中 CefRequestHandlerbrowser - 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.public boolean onQuotaRequest(CefBrowser browser, String origin_url, long new_size, CefRequestCallback callback)
CefRequestHandleronQuotaRequest 在接口中 CefRequestHandlerbrowser - 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.public void onProtocolExecution(CefBrowser browser, String url, BoolRef allow_os_execution)
CefRequestHandleronProtocolExecution 在接口中 CefRequestHandlerpublic boolean onCertificateError(CefBrowser browser, CefLoadHandler.ErrorCode cert_error, String request_url, CefRequestCallback callback)
CefRequestHandleronCertificateError 在接口中 CefRequestHandlerbrowser - 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.public void onPluginCrashed(CefBrowser browser, String pluginPath)
CefRequestHandleronPluginCrashed 在接口中 CefRequestHandlerbrowser - The corresponding browser.pluginPath - the path of the plugin that crashed.public void onRenderProcessTerminated(CefBrowser browser, CefRequestHandler.TerminationStatus status)
CefRequestHandleronRenderProcessTerminated 在接口中 CefRequestHandlerCopyright © 2017. All rights reserved.