public interface CefRequestContextHandler
| Modifier and Type | Method and Description |
|---|---|
CefResourceRequestHandler |
getResourceRequestHandler(CefBrowser browser,
CefFrame frame,
CefRequest request,
boolean isNavigation,
boolean isDownload,
java.lang.String requestInitiator,
BoolRef disableDefaultHandling)
Called on the IO thread before a resource request is initiated.
|
CefResourceRequestHandler getResourceRequestHandler(CefBrowser browser, CefFrame frame, CefRequest request, boolean isNavigation, boolean isDownload, java.lang.String requestInitiator, BoolRef disableDefaultHandling)
browser - The corresponding browser.frame - The frame generating the event. Instance only valid within the scope of this
method.request - The request itself. Cannot be modified in this callback. Instance only valid
within the scope of this method.isNavigation - True if the resource request is a navigation.isDownload - True if the resource request is a download.requestInitiator - The origin (scheme + domain) of the page that initiated the request.disableDefaultHandling - Set to true to disable default handling of the request, in
which case it will need to be handled via
CefResourceRequestHandler.getResourceHandler or it will be canceled.