getResourceRequestHandler
Called on the IO thread before a resource request is initiated. The |browser| and |frame| values represent the source of the request. If this callback returns null the same method will be called on the associated CefRequestContextHandler, if any.
Return
A CefResourceRequestHandler instance or null.
Parameters
The corresponding browser.
The frame generating the event. Instance only valid within the scope of this method.
The request itself. Cannot be modified in this callback. Instance only valid within the scope of this method.
True if the resource request is a navigation.
True if the resource request is a download.
The origin (scheme + domain) of the page that initiated the request.
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.